diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2010-10-27 16:09:07 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2010-10-27 16:09:07 +0000 |
commit | ca4a6cc93318a5aa22584599a9d2fc3d5df21bfc (patch) | |
tree | e30b85af7b2f20f9ea2a7da3b602aededac96a66 /pkgs/misc | |
parent | 8223f8016db6d6f964925696691057d936a5ce2e (diff) | |
download | nixlib-ca4a6cc93318a5aa22584599a9d2fc3d5df21bfc.tar nixlib-ca4a6cc93318a5aa22584599a9d2fc3d5df21bfc.tar.gz nixlib-ca4a6cc93318a5aa22584599a9d2fc3d5df21bfc.tar.bz2 nixlib-ca4a6cc93318a5aa22584599a9d2fc3d5df21bfc.tar.lz nixlib-ca4a6cc93318a5aa22584599a9d2fc3d5df21bfc.tar.xz nixlib-ca4a6cc93318a5aa22584599a9d2fc3d5df21bfc.tar.zst nixlib-ca4a6cc93318a5aa22584599a9d2fc3d5df21bfc.zip |
* Hack to handle PGF/TikZ constructs that require an additional run.
svn path=/nixpkgs/trunk/; revision=24505
Diffstat (limited to 'pkgs/misc')
-rw-r--r-- | pkgs/misc/tex/nix/run-latex.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/misc/tex/nix/run-latex.sh b/pkgs/misc/tex/nix/run-latex.sh index 1db41f3c336f..58c7cac302f0 100644 --- a/pkgs/misc/tex/nix/run-latex.sh +++ b/pkgs/misc/tex/nix/run-latex.sh @@ -64,9 +64,9 @@ runLaTeX echo -# Run bibtex to process all bibliographies. There may be several when -# we're using the multibib package. for auxFile in $(find . -name "*.aux"); do + # Run bibtex to process all bibliographies. There may be several + # when we're using the multibib package. if grep -q '\\citation' $auxFile; then echo "RUNNING BIBTEX ON $auxFile..." auxBase=$(basename $auxFile .aux) @@ -75,6 +75,12 @@ for auxFile in $(find . -name "*.aux"); do runNeeded=1 echo fi + + # "\pgfsyspdfmark" in the aux file seems to indicate that PGF/TikZ + # requires a second run (e.g. to resolve arrows between pictures). + if grep -q pgfsyspdfmark $auxFile; then + runNeeded=1 + fi done |