Template
mirror of
https://github.com/kenryuS/report-temp.git
synced 2026-10-16 23:45:27 +09:00
update
This commit is contained in:
1 parent
101067a32e
commit
5cd42a0a7b
3 files changed
+28
-7
No files matched your search
@@ -1 +1,22 @@
|
|||||||
# Report Template
|
# Report Template + Custom Vim Nix Flake
|
||||||
|
|
||||||
|
This templates are designed to be able to summon with single Nix command.
|
||||||
|
|
||||||
|
This flake includes three templates, two devShells, and two packages.
|
||||||
|
|
||||||
|
## Templates
|
||||||
|
|
||||||
|
* `latex` - "Generic" LaTeX report, customized for my Kosen
|
||||||
|
* `pandoc` - Single file markdown report, pandoc for LaTeX/PDF output
|
||||||
|
* `pandoc-multi` - Same as `pandoc`, but configured for multi file
|
||||||
|
|
||||||
|
## DevShells
|
||||||
|
|
||||||
|
* `latex` - The default devShell, includes custom TeX environment and pre-configured vim
|
||||||
|
* `pandoc` - pandoc with custom TeX environment
|
||||||
|
|
||||||
|
## Packages
|
||||||
|
|
||||||
|
* `texEnv` - Custom TeX environment with packages, fonts, and tools all in one
|
||||||
|
* `vimWithTeX` - Pre-configured vim with `vim-eskk` as in-place Japanese input method and `vim-tex` for TeX support
|
||||||
|
|
||||||
Generated
+3
-3
@@ -36,11 +36,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1784497964,
|
"lastModified": 1788614874,
|
||||||
"narHash": "sha256-vlHUuqAcbcH2RKmHbPiuQzbv1pnzzavXnI62RD0bqCU=",
|
"narHash": "sha256-7QYjT2vHLuX9Z1pdxHXDKCbh1CR3D/2rywB9Tx0MPRg=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "241313f4e8e508cb9b13278c2b0fa25b9ca27163",
|
"rev": "c043004d1c6985732bcc1cbc5a9c9aecbbb4e0f0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
overlays = import ./nix/overlay.nix { inherit pkgs; eskk-vim-src = eskk-vim; };
|
overlays = import ./nix/overlay.nix { inherit pkgs; eskk-vim-src = eskk-vim; };
|
||||||
};
|
};
|
||||||
|
|
||||||
vimWithTex = import ./nix/vim.nix { inherit pkgs; lib = pkgs.lib; };
|
vimWithTeX = import ./nix/vim.nix { inherit pkgs; lib = pkgs.lib; };
|
||||||
texEnv = import ./nix/latex.nix { inherit pkgs; };
|
texEnv = import ./nix/latex.nix { inherit pkgs; };
|
||||||
|
|
||||||
basePackages = [
|
basePackages = [
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
packages = {
|
packages = {
|
||||||
inherit texEnv vimWithTex;
|
inherit texEnv vimWithTeX;
|
||||||
};
|
};
|
||||||
devShells.default = self.devShells.${system}.latex;
|
devShells.default = self.devShells.${system}.latex;
|
||||||
devShells.latex = pkgs.stdenv.mkDerivation {
|
devShells.latex = pkgs.stdenv.mkDerivation {
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
export FONTCONFIG_FILE="${pkgs.fontconfig.out}/etc/fonts/fonts.conf"
|
export FONTCONFIG_FILE="${pkgs.fontconfig.out}/etc/fonts/fonts.conf"
|
||||||
'';
|
'';
|
||||||
buildInputs = basePackages ++ [
|
buildInputs = basePackages ++ [
|
||||||
vimWithTex
|
vimWithTeX
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
devShells.pandoc = pkgs.stdenv.mkDerivation {
|
devShells.pandoc = pkgs.stdenv.mkDerivation {
|
||||||
|
|||||||
Reference in new issue
Block a user