diff --git a/README.md b/README.md index ebd019f..070c2d7 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` (the small scheme should be sufficient). +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`. Clone the repository: diff --git a/flake.nix b/flake.nix index 578ba89..17e5699 100644 --- a/flake.nix +++ b/flake.nix @@ -11,7 +11,7 @@ in { packages.${system} = { pdf-annotator = let - texlive = pkgs.texlive.combined.scheme-small; + texlive = pkgs.texlive.combined.scheme-full; script = "run.sh"; tex = "numbered.tex"; in pkgs.stdenv.mkDerivation rec { @@ -23,7 +23,6 @@ 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 7383fb6..bda7ed5 100644 --- a/numbered.tex +++ b/numbered.tex @@ -1,5 +1,6 @@ \documentclass[letterpaper, 12pt]{article} \usepackage{pdfpages} +\usepackage{changepage} \usepackage{fancyhdr} \setlength\topmargin{-0.675in} @@ -8,6 +9,8 @@ \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 9737364..904a547 100755 --- a/run.sh +++ b/run.sh @@ -1,3 +1,2 @@ #!/usr/bin/env bash -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 +pdflatex "\newcommand{\vartitle}{${1}}\newcommand{\varinput}{${2}}\input{numbered.tex}" && mv numbered.pdf ${3} &> /dev/null \ No newline at end of file