From 1e029c2f731ab036dd2025b818960893124ac5ef Mon Sep 17 00:00:00 2001 From: Dennis Frieberg Date: Fri, 17 Jun 2022 15:44:01 +0200 Subject: [PATCH] support for texstudio and texmaker --- .gitignore | 6 +++--- flake.nix | 22 ++++++++++++++++------ 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 4414d18..00ce78d 100644 --- a/.gitignore +++ b/.gitignore @@ -18,9 +18,9 @@ *.xdv *-converted-to.* # these rules might exclude image files for figures etc. -# *.ps -# *.eps -# *.pdf +*.ps +*.eps +*.pdf ## Generated if empty string is given at "Please type another file name for output:" .pdf diff --git a/flake.nix b/flake.nix index 36dd25b..2f6ddd0 100644 --- a/flake.nix +++ b/flake.nix @@ -56,8 +56,9 @@ latex = pkgs.texlive.combine latexdeps; latexrun = pkgs.latexrun; - in { - default = + in ( rec { + default = kakoune; + kakoune = let texlab = pkgs.texlab; myKakoune = @@ -93,15 +94,24 @@ }; in pkgs.mkShellNoCC { - packages = [myKakoune texlab pkgs.git latex latexrun]; + packages = [myKakoune texlab pkgs.git latex latexrun pkgs.zathura]; shellHook = '' alias ..="cd .." - export KAKOUNE_CONFIG_DIR="/this/does/not/exist" + export KAKOUNE_CONFIG_DIR="/your/user/config/directory" kak -d -s latexPackage & alias vim="kak -c latexPackage" ''; - }; - } + }; + texstudio = + pkgs.mkShellNoCC { + packages = [pkgs.texstudio pkgs.git latex latexrun]; + }; + + texmaker = + pkgs.mkShellNoCC { + packages = [pkgs.texmaker pkgs.git latex latexrun]; + }; + }) ); }; }