48 lines
1.0 KiB
Nix
48 lines
1.0 KiB
Nix
with import <nixpkgs> {}; let
|
|
fonts = [
|
|
times-newer-roman
|
|
];
|
|
# This is not reccocgnised by latexmk, so we will have to put our
|
|
# font files in ~/.local/share/fonts
|
|
# fontsConf = makeFontsConf {
|
|
# fontDirectories = fonts;
|
|
# };
|
|
# export FONTCONFIG_FILE="${fontsConf}"
|
|
in
|
|
mkShell {
|
|
nativeBuildInputs = fonts;
|
|
packages = [
|
|
latexrun
|
|
mermaid-cli
|
|
times-newer-roman
|
|
(texlive.withPackages (ps:
|
|
with ps; [
|
|
transparent
|
|
times
|
|
hyphenat
|
|
changepage
|
|
biblatex
|
|
listings
|
|
minted
|
|
upquote
|
|
biber
|
|
fontaxes
|
|
newtxtt
|
|
newtx
|
|
newtxsf
|
|
csquotes
|
|
enumitem
|
|
titlesec
|
|
latexmk
|
|
scheme-medium
|
|
textpos
|
|
]))
|
|
];
|
|
shellHook = ''
|
|
# install fonts
|
|
DEST=~/.local/share/fonts/TimesNewerRoman
|
|
mkdir -p $DEST
|
|
cp -r ${toString times-newer-roman}/share/fonts/opentype "$DEST"
|
|
'';
|
|
}
|