Compare commits
No commits in common. "19be2c363586433d770f306225399fa48bdbc0a8" and "ba18e9727759a87b7bee8a382103deebfe482874" have entirely different histories.
19be2c3635
...
ba18e97277
2 changed files with 2 additions and 38 deletions
30
README.md
30
README.md
|
@ -1,31 +1,3 @@
|
||||||
# texTemplate
|
# texTemplate
|
||||||
This is a nix flake that can reproducible build your tex document
|
|
||||||
and configures some environments to write texfiles as nix devShells
|
|
||||||
|
|
||||||
## Name
|
a latex template
|
||||||
There is a comment `# name to be used as indentifier for editor environments and such`
|
|
||||||
Set the `name` parameter below to something sensible.
|
|
||||||
|
|
||||||
## Dependencies
|
|
||||||
There is a line with a comment above called `# LaTex package dependencies`.
|
|
||||||
Here you put your latex package depencies (see the `nixpkgs.texlive` for working
|
|
||||||
values.
|
|
||||||
|
|
||||||
## devShells
|
|
||||||
There is a `default` devShell you can set it to something different right now it is kakoune.
|
|
||||||
|
|
||||||
### kakoune
|
|
||||||
The default devShell gives you a kakoune with configured texlab lsp, and a zathura viewer
|
|
||||||
with configured auto build and forwardSearch on save. Backward search is not configured right now.
|
|
||||||
The relevant config files are completly contained in the flake, you can edit them to your liking.
|
|
||||||
|
|
||||||
It starts kakoune as a background server. It is your job to clean it up afterwards. Also if
|
|
||||||
you want to use the fzf plugin you should be in some environment that can handle shell windows
|
|
||||||
(like kitty or tmux). And because of my old habit to start my editor as `vim` there is a alias
|
|
||||||
that you should use called `vim` to access the started kakoune session.
|
|
||||||
|
|
||||||
### texStudio
|
|
||||||
This is what it sounds, it is a shell with texStudio available, it should autostart
|
|
||||||
|
|
||||||
### texMaker
|
|
||||||
The same as texStudion just with texMaker
|
|
10
flake.nix
10
flake.nix
|
@ -52,7 +52,6 @@
|
||||||
let
|
let
|
||||||
pkgs = nixpkgsFor.${system};
|
pkgs = nixpkgsFor.${system};
|
||||||
in ( rec {
|
in ( rec {
|
||||||
# This sets the default devShell
|
|
||||||
default = kakoune;
|
default = kakoune;
|
||||||
kakoune =
|
kakoune =
|
||||||
let
|
let
|
||||||
|
@ -108,11 +107,10 @@
|
||||||
pkgs.mkShellNoCC {
|
pkgs.mkShellNoCC {
|
||||||
inputsFrom = [self.outputs.packages.${system}.default];
|
inputsFrom = [self.outputs.packages.${system}.default];
|
||||||
packages = [myKakoune texlab pkgs.git pkgs.zathura pkgs.fzf];
|
packages = [myKakoune texlab pkgs.git pkgs.zathura pkgs.fzf];
|
||||||
# TODO only try to start the kakoune session if no session with that
|
|
||||||
# name exists
|
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
alias ..="cd .."
|
alias ..="cd .."
|
||||||
mkdir -p ${latexTmpDir}
|
mkdir -p ${latexTmpDir}
|
||||||
|
touch /tmp/texlabLog
|
||||||
export KAKOUNE_CONFIG_DIR="/dev/null/"
|
export KAKOUNE_CONFIG_DIR="/dev/null/"
|
||||||
kak -d -s ${name} &
|
kak -d -s ${name} &
|
||||||
alias vim="kak -c ${name}"
|
alias vim="kak -c ${name}"
|
||||||
|
@ -122,18 +120,12 @@
|
||||||
pkgs.mkShellNoCC {
|
pkgs.mkShellNoCC {
|
||||||
inputsFrom = [self.outputs.packages.${system}.default];
|
inputsFrom = [self.outputs.packages.${system}.default];
|
||||||
packages = [pkgs.texstudio pkgs.git];
|
packages = [pkgs.texstudio pkgs.git];
|
||||||
shellHook = ''
|
|
||||||
texstudio
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
texmaker =
|
texmaker =
|
||||||
pkgs.mkShellNoCC {
|
pkgs.mkShellNoCC {
|
||||||
inputsFrom = [self.outputs.packages.${system}.default];
|
inputsFrom = [self.outputs.packages.${system}.default];
|
||||||
packages = [pkgs.texmaker pkgs.git];
|
packages = [pkgs.texmaker pkgs.git];
|
||||||
shellHook = ''
|
|
||||||
texmaker
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue