diff --git a/README.md b/README.md index 070c2d7..ebd019f 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ nix run git+https://git.elnu.com/ElnuDev/pdf-annotator -- "The header goes here. ### Usage without Nix -If you have the misfortune of not having [Nix](https://nixos.org/) available, ensure that the `pdflatex` command is available, which should be installed alongside `texlive-full`. +If you have the misfortune of not having [Nix](https://nixos.org/) available, ensure that the `pdflatex` command is available, which should be installed alongside `texlive-full` (the small scheme should be sufficient). Clone the repository: diff --git a/flake.nix b/flake.nix index 17e5699..578ba89 100644 --- a/flake.nix +++ b/flake.nix @@ -11,7 +11,7 @@ in { packages.${system} = { pdf-annotator = let - texlive = pkgs.texlive.combined.scheme-full; + texlive = pkgs.texlive.combined.scheme-small; script = "run.sh"; tex = "numbered.tex"; in pkgs.stdenv.mkDerivation rec { @@ -23,6 +23,7 @@ postPatch = '' substituteInPlace run.sh \ --replace pdflatex ${texlive}/bin/pdflatex \ + --replace latexmk ${texlive}/bin/latexmk \ --replace ${tex} $out/share/${tex} ''; installPhase = '' diff --git a/numbered.tex b/numbered.tex index bda7ed5..7383fb6 100644 --- a/numbered.tex +++ b/numbered.tex @@ -1,6 +1,5 @@ \documentclass[letterpaper, 12pt]{article} \usepackage{pdfpages} -\usepackage{changepage} \usepackage{fancyhdr} \setlength\topmargin{-0.675in} @@ -9,8 +8,6 @@ \setlength\oddsidemargin{-0.25in} \setlength\evensidemargin{-0.25in} -\strictpagecheck - \thispagestyle{empty} \fancypagestyle{mystyle}{ % hide any background elements in source PDF with \colorbox{white} % diff --git a/run.sh b/run.sh index 904a547..9737364 100755 --- a/run.sh +++ b/run.sh @@ -1,2 +1,3 @@ #!/usr/bin/env bash -pdflatex "\newcommand{\vartitle}{${1}}\newcommand{\varinput}{${2}}\input{numbered.tex}" && mv numbered.pdf ${3} &> /dev/null \ No newline at end of file +pdflatex "\newcommand{\vartitle}{${1}}\newcommand{\varinput}{${2}}\input{numbered.tex}" && mv numbered.pdf ${3} &> /dev/null +latexmk -c &> /dev/null \ No newline at end of file