This is the minimal requirements with home manager.
packages = with pkgs; [
xournalpp
(texlive.combine {
inherit (texlive) scheme-basic standalone
varwidth scontents xcolor;
})
]
Try these latex to make matrix
\begin{bmatrix}
a & b \\
c & d
\end{bmatrix}
1 Like
It should be noted, that xouranlpp saves in ~/.config/xournalpp/settings.xml
the path to the default_template.tex
resource file that was detected from the installation when it first launched. The problem is that if xournalpp is acquiring a new nix store hash, and that store path is being garbage collected, then that path will become invalid, and it will be impossible to write LaTeX with it.
The solution is to manually insert the following in the settings.xml
file:
<property name="latexSettings.globalTemplatePath" value="/run/current-system/sw/share/xournalpp/resources/default_template.tex"/>
Or use that path in the settings. A different but constant path might be needed if you install xournalpp with home-manager or others…