├── util ├── __init__.py ├── ensure_version.py └── testing.py ├── oldtest ├── test._nobuild_.tex.sh ├── test2._include_.tex ├── test3._include_.tex ├── test-script.tex.sh ├── test1.dat ├── test4.pdf ├── test3.eps.gz ├── scripted-include-file.nobuild.tex.sh ├── test me.tex ├── test1.gpi ├── test-scripted-include.tex ├── test-error._nobuild_.tex ├── test1._include_.tex ├── test-missing-cls.tex ├── test-missing-package.tex ├── test-bib2.bib ├── test2.fig ├── test-simple.tex ├── test-pstex.fig ├── test-pstex.tex ├── test-pstex2.fig ├── test-pstex3.fig ├── test-index.tex ├── test-bib.bib ├── test-index-error.tex ├── test.tex ├── graph.dot └── convert.sh ├── .gitignore ├── test ├── missing-cls │ ├── golden.run_sed__get-graphics__log.test--latex │ ├── golden.run_sed__get-log-index__log.test--latex │ ├── golden.run_sed__get-fls-fullpath__log.test--latex │ ├── golden.run_sed__get-fls-fullpath__log.test--xelatex │ ├── golden.run_sed__get-graphics__log.test--pdflatex │ ├── golden.run_sed__get-graphics__log.test--xelatex │ ├── golden.run_sed__get-log-index__log.test--pdflatex │ ├── golden.run_sed__get-log-index__log.test--xelatex │ ├── golden.run_sed__get-fls-fullpath__log.test--pdflatex │ ├── golden.run_sed__color-tex__log.test--latex │ ├── golden.run_sed__color-tex__log.test--pdflatex │ ├── golden.run_sed__color-tex__log.test--xelatex │ ├── golden.run_sed__colorize-latex-errors__log.test--latex │ ├── golden.run_sed__colorize-latex-errors__log.test--xelatex │ ├── test.tex │ ├── golden.run_sed__get-missing-inputs__log.test--latex │ ├── golden.run_sed__get-missing-inputs__log.test--xelatex │ ├── golden.run_sed__get-missing-inputs__log.test--pdflatex │ ├── golden.run_sed__colorize-latex-errors__log.test--pdflatex │ ├── log.test--latex │ ├── log.test--xelatex │ └── log.test--pdflatex ├── no-document │ ├── golden.run_sed__get-graphics__log.test--latex │ ├── golden.run_sed__get-log-index__log.test--latex │ ├── golden.run_sed__get-fls-fullpath__log.test--latex │ ├── golden.run_sed__get-fls-fullpath__log.test--xelatex │ ├── golden.run_sed__get-graphics__log.test--pdflatex │ ├── golden.run_sed__get-graphics__log.test--xelatex │ ├── golden.run_sed__get-log-index__log.test--pdflatex │ ├── golden.run_sed__get-log-index__log.test--xelatex │ ├── golden.run_sed__get-missing-inputs__log.test--latex │ ├── golden.run_sed__get-fls-fullpath__log.test--pdflatex │ ├── golden.run_sed__get-missing-inputs__log.test--pdflatex │ ├── golden.run_sed__get-missing-inputs__log.test--xelatex │ ├── golden.run_sed__color-tex__log.test--latex │ ├── golden.run_sed__color-tex__log.test--pdflatex │ ├── golden.run_sed__color-tex__log.test--xelatex │ ├── test.tex │ ├── golden.run_sed__colorize-latex-errors__log.test--latex │ ├── golden.run_sed__colorize-latex-errors__log.test--pdflatex │ └── golden.run_sed__colorize-latex-errors__log.test--xelatex ├── runaway-caption │ ├── golden.run_sed__color-tex__log.test--latex │ ├── golden.run_sed__color-tex__log.test--pdflatex │ ├── golden.run_sed__color-tex__log.test--xelatex │ ├── golden.run_sed__get-graphics__log.test--latex │ ├── golden.run_sed__get-graphics__log.test--xelatex │ ├── golden.run_sed__get-log-index__log.test--latex │ ├── golden.run_sed__get-graphics__log.test--pdflatex │ ├── golden.run_sed__get-log-index__log.test--pdflatex │ ├── golden.run_sed__get-log-index__log.test--xelatex │ ├── golden.run_sed__get-missing-inputs__log.test--latex │ ├── golden.run_sed__get-missing-inputs__log.test--pdflatex │ ├── golden.run_sed__get-missing-inputs__log.test--xelatex │ ├── test.tex │ ├── golden.run_sed__colorize-latex-errors__log.test--latex │ ├── golden.run_sed__colorize-latex-errors__log.test--pdflatex │ ├── golden.run_sed__colorize-latex-errors__log.test--xelatex │ ├── fls.test--latex │ ├── fls.test--xelatex │ ├── fls.test--pdflatex │ ├── log.test--latex │ ├── log.test--xelatex │ └── log.test--pdflatex ├── graphic-in-style │ ├── golden.run_sed__get-log-index__log.doc--latex │ ├── golden.run_sed__get-log-index__log.doc--pdflatex │ ├── golden.run_sed__get-log-index__log.doc--xelatex │ ├── golden.run_sed__get-missing-inputs__log.doc--latex │ ├── golden.run_sed__colorize-latex-errors__log.doc--latex │ ├── golden.run_sed__colorize-latex-errors__log.doc--pdflatex │ ├── golden.run_sed__colorize-latex-errors__log.doc--xelatex │ ├── golden.run_sed__get-missing-inputs__log.doc--pdflatex │ ├── golden.run_sed__get-missing-inputs__log.doc--xelatex │ ├── golden.run_sed__color-tex__log.doc--xelatex │ ├── texmf │ │ ├── graphic.pdf │ │ ├── ls-R │ │ └── myclass.cls │ ├── golden.run_sed__color-tex__log.doc--pdflatex │ ├── doc.tex │ ├── golden.run_sed__color-tex__log.doc--latex │ ├── golden.run_sed__get-graphics__log.doc--pdflatex │ ├── golden.run_sed__get-graphics__log.doc--xelatex │ ├── golden.run_sed__get-graphics__log.doc--latex │ ├── README │ ├── fls.doc--latex │ ├── fls.doc--xelatex │ └── log.doc--xelatex ├── hyperref-wrong │ ├── golden.run_sed__get-graphics__log.test--latex │ ├── golden.run_sed__get-graphics__log.test--pdflatex │ ├── golden.run_sed__get-graphics__log.test--xelatex │ ├── golden.run_sed__get-log-index__log.test--latex │ ├── golden.run_sed__get-log-index__log.test--xelatex │ ├── golden.run_sed__get-fls-fullpath__log.test--latex │ ├── golden.run_sed__get-fls-fullpath__log.test--pdflatex │ ├── golden.run_sed__get-fls-fullpath__log.test--xelatex │ ├── golden.run_sed__get-log-index__log.test--pdflatex │ ├── golden.run_sed__get-missing-inputs__log.test--latex │ ├── golden.run_sed__get-missing-inputs__log.test--xelatex │ ├── golden.run_sed__colorize-latex-errors__log.test--latex │ ├── golden.run_sed__get-missing-inputs__log.test--pdflatex │ ├── test.tex │ ├── golden.run_sed__colorize-latex-errors__log.test--xelatex │ ├── golden.run_sed__colorize-latex-errors__log.test--pdflatex │ ├── golden.run_sed__color-tex__log.test--xelatex │ ├── golden.run_sed__color-tex__log.test--latex │ └── golden.run_sed__color-tex__log.test--pdflatex ├── missing-dollar │ ├── golden.run_sed__get-graphics__log.test--latex │ ├── golden.run_sed__get-graphics__log.test--pdflatex │ ├── golden.run_sed__get-graphics__log.test--xelatex │ ├── golden.run_sed__get-log-index__log.test--latex │ ├── golden.run_sed__get-log-index__log.test--xelatex │ ├── golden.run_sed__get-fls-fullpath__log.test--latex │ ├── golden.run_sed__get-fls-fullpath__log.test--pdflatex │ ├── golden.run_sed__get-fls-fullpath__log.test--xelatex │ ├── golden.run_sed__get-log-index__log.test--pdflatex │ ├── golden.run_sed__get-missing-inputs__log.test--latex │ ├── golden.run_sed__get-missing-inputs__log.test--xelatex │ ├── golden.run_sed__colorize-latex-errors__log.test--xelatex │ ├── golden.run_sed__get-missing-inputs__log.test--pdflatex │ ├── golden.run_sed__color-tex__log.test--xelatex │ ├── test.tex │ ├── golden.run_sed__color-tex__log.test--latex │ ├── golden.run_sed__color-tex__log.test--pdflatex │ ├── golden.run_sed__colorize-latex-errors__log.test--latex │ ├── golden.run_sed__colorize-latex-errors__log.test--pdflatex │ ├── log.test--xelatex │ └── log.test--latex ├── missing-graphic │ ├── golden.run_sed__get-log-index__log.test--latex │ ├── golden.run_sed__get-fls-fullpath__log.test--latex │ ├── golden.run_sed__get-fls-fullpath__log.test--pdflatex │ ├── golden.run_sed__get-fls-fullpath__log.test--xelatex │ ├── golden.run_sed__get-log-index__log.test--pdflatex │ ├── golden.run_sed__get-log-index__log.test--xelatex │ ├── golden.run_sed__get-missing-inputs__log.test--latex │ ├── golden.run_sed__colorize-latex-errors__log.test--latex │ ├── golden.run_sed__colorize-latex-errors__log.test--pdflatex │ ├── golden.run_sed__colorize-latex-errors__log.test--xelatex │ ├── golden.run_sed__get-missing-inputs__log.test--pdflatex │ ├── golden.run_sed__get-missing-inputs__log.test--xelatex │ ├── test.tex │ ├── golden.run_sed__color-tex__log.test--xelatex │ ├── golden.run_sed__color-tex__log.test--latex │ ├── golden.run_sed__color-tex__log.test--pdflatex │ ├── golden.run_sed__get-graphics__log.test--latex │ ├── golden.run_sed__get-graphics__log.test--xelatex │ └── golden.run_sed__get-graphics__log.test--pdflatex ├── missing-input │ ├── golden.run_sed__get-fls-fullpath__log.test--latex │ ├── golden.run_sed__get-graphics__log.test--latex │ ├── golden.run_sed__get-graphics__log.test--pdflatex │ ├── golden.run_sed__get-graphics__log.test--xelatex │ ├── golden.run_sed__get-log-index__log.test--latex │ ├── golden.run_sed__get-log-index__log.test--pdflatex │ ├── golden.run_sed__get-log-index__log.test--xelatex │ ├── golden.run_sed__get-fls-fullpath__log.test--pdflatex │ ├── golden.run_sed__get-fls-fullpath__log.test--xelatex │ ├── test.tex │ ├── golden.run_sed__color-tex__log.test--latex │ ├── golden.run_sed__color-tex__log.test--pdflatex │ ├── golden.run_sed__color-tex__log.test--xelatex │ ├── golden.run_sed__colorize-latex-errors__log.test--latex │ ├── golden.run_sed__colorize-latex-errors__log.test--xelatex │ ├── golden.run_sed__get-missing-inputs__log.test--latex │ ├── golden.run_sed__get-missing-inputs__log.test--pdflatex │ ├── golden.run_sed__get-missing-inputs__log.test--xelatex │ ├── golden.run_sed__colorize-latex-errors__log.test--pdflatex │ ├── log.test--latex │ ├── log.test--xelatex │ └── log.test--pdflatex ├── missing-package │ ├── golden.run_sed__get-graphics__log.test--latex │ ├── golden.run_sed__get-graphics__log.test--xelatex │ ├── golden.run_sed__get-log-index__log.test--latex │ ├── golden.run_sed__get-fls-fullpath__log.test--latex │ ├── golden.run_sed__get-fls-fullpath__log.test--pdflatex │ ├── golden.run_sed__get-fls-fullpath__log.test--xelatex │ ├── golden.run_sed__get-graphics__log.test--pdflatex │ ├── golden.run_sed__get-log-index__log.test--pdflatex │ ├── golden.run_sed__get-log-index__log.test--xelatex │ ├── golden.run_sed__color-tex__log.test--latex │ ├── golden.run_sed__color-tex__log.test--pdflatex │ ├── golden.run_sed__color-tex__log.test--xelatex │ ├── golden.run_sed__colorize-latex-errors__log.test--latex │ ├── golden.run_sed__colorize-latex-errors__log.test--xelatex │ ├── golden.run_sed__get-missing-inputs__log.test--latex │ ├── golden.run_sed__get-missing-inputs__log.test--pdflatex │ ├── golden.run_sed__get-missing-inputs__log.test--xelatex │ ├── test.tex │ ├── golden.run_sed__colorize-latex-errors__log.test--pdflatex │ ├── log.test--latex │ ├── log.test--xelatex │ └── log.test--pdflatex ├── unknown-size │ ├── golden.run_sed__get-fls-fullpath__log.test--latex │ ├── golden.run_sed__get-graphics__log.test--pdflatex │ ├── golden.run_sed__get-log-index__log.test--latex │ ├── golden.run_sed__get-log-index__log.test--pdflatex │ ├── golden.run_sed__get-log-index__log.test--xelatex │ ├── golden.run_sed__colorize-latex-errors__log.test--latex │ ├── golden.run_sed__get-fls-fullpath__log.test--pdflatex │ ├── golden.run_sed__get-fls-fullpath__log.test--xelatex │ ├── golden.run_sed__get-missing-inputs__log.test--latex │ ├── golden.run_sed__get-missing-inputs__log.test--pdflatex │ ├── golden.run_sed__get-missing-inputs__log.test--xelatex │ ├── golden.run_sed__colorize-latex-errors__log.test--xelatex │ ├── golden.run_sed__colorize-latex-errors__log.test--pdflatex │ ├── golden.run_sed__color-tex__log.test--pdflatex │ ├── test.tex │ ├── golden.run_sed__color-tex__log.test--xelatex │ ├── golden.run_sed__color-tex__log.test--latex │ ├── golden.run_sed__get-graphics__log.test--latex │ └── golden.run_sed__get-graphics__log.test--xelatex ├── existing-graphics │ ├── golden.run_sed__get-fls-fullpath__log.test--latex │ ├── golden.run_sed__get-log-index__log.test--latex │ ├── golden.run_sed__get-log-index__log.test--pdflatex │ ├── golden.run_sed__get-log-index__log.test--xelatex │ ├── golden.run_sed__colorize-latex-errors__log.test--latex │ ├── golden.run_sed__get-fls-fullpath__log.test--pdflatex │ ├── golden.run_sed__get-fls-fullpath__log.test--xelatex │ ├── golden.run_sed__get-missing-inputs__log.test--latex │ ├── golden.run_sed__get-missing-inputs__log.test--pdflatex │ ├── golden.run_sed__get-missing-inputs__log.test--xelatex │ ├── golden.run_sed__colorize-latex-errors__log.test--pdflatex │ ├── golden.run_sed__colorize-latex-errors__log.test--xelatex │ ├── g1.pdf │ ├── g2.pdf │ ├── g3.pdf │ ├── g4.pdf │ ├── golden.run_sed__color-tex__log.test--xelatex │ ├── golden.run_sed__color-tex__log.test--pdflatex │ ├── golden.run_sed__color-tex__log.test--latex │ ├── test.tex │ ├── golden.run_sed__get-graphics__log.test--xelatex │ ├── golden.run_sed__get-graphics__log.test--pdflatex │ ├── golden.run_sed__get-graphics__log.test--latex │ └── log.test--xelatex ├── long-missing-graphic │ ├── golden.run_sed__get-log-index__log.test--latex │ ├── golden.run_sed__get-fls-fullpath__log.test--latex │ ├── golden.run_sed__get-fls-fullpath__log.test--pdflatex │ ├── golden.run_sed__get-fls-fullpath__log.test--xelatex │ ├── golden.run_sed__get-log-index__log.test--pdflatex │ ├── golden.run_sed__get-log-index__log.test--xelatex │ ├── golden.run_sed__get-missing-inputs__log.test--latex │ ├── golden.run_sed__colorize-latex-errors__log.test--latex │ ├── golden.run_sed__colorize-latex-errors__log.test--pdflatex │ ├── golden.run_sed__colorize-latex-errors__log.test--xelatex │ ├── golden.run_sed__get-missing-inputs__log.test--pdflatex │ ├── golden.run_sed__get-missing-inputs__log.test--xelatex │ ├── golden.run_sed__color-tex__log.test--latex │ ├── golden.run_sed__color-tex__log.test--pdflatex │ ├── golden.run_sed__color-tex__log.test--xelatex │ ├── test.tex │ ├── golden.run_sed__get-graphics__log.test--latex │ ├── golden.run_sed__get-graphics__log.test--xelatex │ └── golden.run_sed__get-graphics__log.test--pdflatex ├── long-missing-input │ ├── golden.run_sed__get-fls-fullpath__log.test--latex │ ├── golden.run_sed__get-graphics__log.test--latex │ ├── golden.run_sed__get-graphics__log.test--pdflatex │ ├── golden.run_sed__get-graphics__log.test--xelatex │ ├── golden.run_sed__get-log-index__log.test--latex │ ├── golden.run_sed__get-log-index__log.test--pdflatex │ ├── golden.run_sed__get-log-index__log.test--xelatex │ ├── golden.run_sed__get-fls-fullpath__log.test--pdflatex │ ├── golden.run_sed__get-fls-fullpath__log.test--xelatex │ ├── golden.run_sed__color-tex__log.test--latex │ ├── golden.run_sed__color-tex__log.test--pdflatex │ ├── golden.run_sed__color-tex__log.test--xelatex │ ├── test.tex │ ├── golden.run_sed__colorize-latex-errors__log.test--latex │ ├── golden.run_sed__colorize-latex-errors__log.test--xelatex │ ├── golden.run_sed__colorize-latex-errors__log.test--pdflatex │ ├── golden.run_sed__get-missing-inputs__log.test--latex │ ├── golden.run_sed__get-missing-inputs__log.test--pdflatex │ ├── golden.run_sed__get-missing-inputs__log.test--xelatex │ ├── log.test--latex │ ├── log.test--xelatex │ └── log.test--pdflatex ├── undefined-sequence │ ├── golden.run_sed__get-fls-fullpath__log.test--latex │ ├── golden.run_sed__get-graphics__log.test--latex │ ├── golden.run_sed__get-graphics__log.test--pdflatex │ ├── golden.run_sed__get-graphics__log.test--xelatex │ ├── golden.run_sed__get-log-index__log.test--latex │ ├── golden.run_sed__get-log-index__log.test--pdflatex │ ├── golden.run_sed__get-log-index__log.test--xelatex │ ├── golden.run_sed__get-fls-fullpath__log.test--pdflatex │ ├── golden.run_sed__get-fls-fullpath__log.test--xelatex │ ├── golden.run_sed__get-missing-inputs__log.test--latex │ ├── golden.run_sed__get-missing-inputs__log.test--pdflatex │ ├── golden.run_sed__get-missing-inputs__log.test--xelatex │ ├── test.tex │ ├── golden.run_sed__color-tex__log.test--xelatex │ ├── golden.run_sed__color-tex__log.test--latex │ ├── golden.run_sed__color-tex__log.test--pdflatex │ ├── golden.run_sed__colorize-latex-errors__log.test--latex │ ├── golden.run_sed__colorize-latex-errors__log.test--pdflatex │ ├── golden.run_sed__colorize-latex-errors__log.test--xelatex │ ├── log.test--xelatex │ └── log.test--latex ├── unknown-extension │ ├── golden.run_sed__get-fls-fullpath__log.test--latex │ ├── golden.run_sed__get-graphics__log.test--pdflatex │ ├── golden.run_sed__get-log-index__log.test--latex │ ├── golden.run_sed__get-log-index__log.test--pdflatex │ ├── golden.run_sed__get-log-index__log.test--xelatex │ ├── golden.run_sed__get-fls-fullpath__log.test--pdflatex │ ├── golden.run_sed__get-fls-fullpath__log.test--xelatex │ ├── golden.run_sed__get-missing-inputs__log.test--latex │ ├── golden.run_sed__get-missing-inputs__log.test--pdflatex │ ├── golden.run_sed__get-missing-inputs__log.test--xelatex │ ├── golden.run_sed__colorize-latex-errors__log.test--latex │ ├── golden.run_sed__colorize-latex-errors__log.test--pdflatex │ ├── golden.run_sed__color-tex__log.test--pdflatex │ ├── golden.run_sed__get-graphics__log.test--xelatex │ ├── test.tex │ ├── golden.run_sed__color-tex__log.test--latex │ ├── golden.run_sed__get-graphics__log.test--latex │ ├── golden.run_sed__color-tex__log.test--xelatex │ └── golden.run_sed__colorize-latex-errors__log.test--xelatex ├── graphic-extension-specified │ ├── golden.run_sed__get-fls-fullpath__log.test--latex │ ├── golden.run_sed__get-graphics__log.test--pdflatex │ ├── golden.run_sed__get-log-index__log.test--latex │ ├── golden.run_sed__get-log-index__log.test--pdflatex │ ├── golden.run_sed__get-log-index__log.test--xelatex │ ├── golden.run_sed__colorize-latex-errors__log.test--latex │ ├── golden.run_sed__get-fls-fullpath__log.test--pdflatex │ ├── golden.run_sed__get-fls-fullpath__log.test--xelatex │ ├── golden.run_sed__get-missing-inputs__log.test--latex │ ├── golden.run_sed__get-missing-inputs__log.test--pdflatex │ ├── golden.run_sed__get-missing-inputs__log.test--xelatex │ ├── golden.run_sed__colorize-latex-errors__log.test--xelatex │ ├── test.tex │ ├── golden.run_sed__colorize-latex-errors__log.test--pdflatex │ ├── golden.run_sed__color-tex__log.test--pdflatex │ ├── golden.run_sed__color-tex__log.test--xelatex │ ├── golden.run_sed__color-tex__log.test--latex │ ├── golden.run_sed__get-graphics__log.test--latex │ └── golden.run_sed__get-graphics__log.test--xelatex ├── transcript │ ├── stub.tex │ ├── packages │ │ ├── biblatex │ │ │ ├── stub.tex │ │ │ ├── references.bib │ │ │ └── simple.tex │ │ └── filecontents │ │ │ ├── include-file.tex │ │ │ └── references.tex │ ├── references.bib │ └── references-stub.tex └── shell-escape │ └── test.tex ├── sedtest └── bcf-parse │ ├── golden.run_sed__get-bcf-bibs__main.bcf │ └── test.sh ├── flat-aux-clean.sed ├── Downloads ├── latex-makefile-2.2.0.tar.gz ├── latex-makefile-2.1.20.tar.gz ├── latex-makefile-2.1.21.tar.gz ├── latex-makefile-2.1.23.tar.gz ├── latex-makefile-2.1.24.tar.gz ├── latex-makefile-2.1.25.tar.gz ├── latex-makefile-2.1.26.tar.gz ├── latex-makefile-2.1.27.tar.gz ├── latex-makefile-2.1.31.tar.gz ├── latex-makefile-2.1.32.tar.gz ├── latex-makefile-2.1.34.tar.gz ├── latex-makefile-2.1.35.tar.gz ├── latex-makefile-2.1.36.tar.gz ├── latex-makefile-2.1.37.tar.gz ├── latex-makefile-2.1.39.tar.gz ├── latex-makefile-2.1.40.tar.gz ├── latex-makefile-2.1.41.tar.gz ├── latex-makefile-2.1.42.tar.gz ├── latex-makefile-2.2.0-rc1.tar.gz ├── latex-makefile-2.2.0-rc10.tar.gz ├── latex-makefile-2.2.0-rc11.tar.gz ├── latex-makefile-2.2.0-rc13.tar.gz ├── latex-makefile-2.2.0-rc14.tar.gz ├── latex-makefile-2.2.0-rc15.tar.gz ├── latex-makefile-2.2.0-rc2.tar.gz ├── latex-makefile-2.2.0-rc3.tar.gz ├── latex-makefile-2.2.0-rc5.tar.gz ├── latex-makefile-2.2.0-rc6.tar.gz ├── latex-makefile-2.2.0-rc7.tar.gz ├── latex-makefile-2.2.0-rc8.tar.gz ├── latex-makefile-2.2.0-rc9.tar.gz ├── latex-makefile-2.2.0-alpha1.tar.gz ├── latex-makefile-2.2.0-alpha2.tar.gz ├── latex-makefile-2.2.0-alpha3.tar.gz ├── latex-makefile-2.2.0-beta1.tar.gz ├── latex-makefile-2.2.0-beta2.tar.gz ├── latex-makefile-2.2.0-beta3.tar.gz ├── latex-makefile-2.2.0-beta4.tar.gz ├── latex-makefile-2.2.0-beta5.tar.gz ├── latex-makefile-2.2.0-beta6.tar.gz ├── latex-makefile-2.2.0-beta7.tar.gz ├── latex-makefile-2.2.0-beta8.tar.gz ├── latex-makefile-2.2.1-alpha4.tar.gz ├── latex-makefile-2.2.1-alpha5.tar.gz ├── latex-makefile-2.2.1-alpha6.tar.gz ├── latex-makefile-2.2.1-alpha8.tar.gz └── latex-makefile-2.2.1-alpha9.tar.gz ├── eps-bb.sed ├── colorize-makeindex-errors.sed ├── colorize-epstopdf-errors.sed ├── README ├── colorize-dot-errors.sed ├── test-cases-needed ├── hyperref-rerun.txt └── command-not-found.txt ├── color-bib.sed ├── get-bcf-bibs.sed ├── get-format.sed ├── flatten-aux-script.sed ├── gpi-deps.sed ├── get-bibs.sed ├── colorize-gnuplot-errors.sed ├── get-log-index.sed ├── README.md ├── get-fls-fullpath.sed ├── get-inputs.sed ├── known-issues ├── get-missing-inputs.sed ├── copyright ├── test-gen-goldens.py ├── get-source-specials.sed ├── run_sed ├── paragraphs.sed ├── color-tex.sed ├── test-gen-logs.py ├── dependency-chart.dot └── get-graphics.sed /util/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /oldtest/test._nobuild_.tex.sh: -------------------------------------------------------------------------------- 1 | cp test.tex $1 2 | -------------------------------------------------------------------------------- /oldtest/test2._include_.tex: -------------------------------------------------------------------------------- 1 | This is test 2 2 | -------------------------------------------------------------------------------- /oldtest/test3._include_.tex: -------------------------------------------------------------------------------- 1 | This is test 3 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .*.sw? 2 | *.py[oc] 3 | *~ 4 | _test 5 | -------------------------------------------------------------------------------- /oldtest/test-script.tex.sh: -------------------------------------------------------------------------------- 1 | cp test-scripted-include.tex $1 2 | -------------------------------------------------------------------------------- /test/missing-cls/golden.run_sed__get-graphics__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-cls/golden.run_sed__get-log-index__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/no-document/golden.run_sed__get-graphics__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/no-document/golden.run_sed__get-log-index__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/runaway-caption/golden.run_sed__color-tex__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/graphic-in-style/golden.run_sed__get-log-index__log.doc--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/hyperref-wrong/golden.run_sed__get-graphics__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/hyperref-wrong/golden.run_sed__get-graphics__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/hyperref-wrong/golden.run_sed__get-graphics__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/hyperref-wrong/golden.run_sed__get-log-index__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/hyperref-wrong/golden.run_sed__get-log-index__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-cls/golden.run_sed__get-fls-fullpath__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-cls/golden.run_sed__get-fls-fullpath__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-cls/golden.run_sed__get-graphics__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-cls/golden.run_sed__get-graphics__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-cls/golden.run_sed__get-log-index__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-cls/golden.run_sed__get-log-index__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-dollar/golden.run_sed__get-graphics__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-dollar/golden.run_sed__get-graphics__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-dollar/golden.run_sed__get-graphics__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-dollar/golden.run_sed__get-log-index__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-dollar/golden.run_sed__get-log-index__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-graphic/golden.run_sed__get-log-index__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-input/golden.run_sed__get-fls-fullpath__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-input/golden.run_sed__get-graphics__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-input/golden.run_sed__get-graphics__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-input/golden.run_sed__get-graphics__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-input/golden.run_sed__get-log-index__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-input/golden.run_sed__get-log-index__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-input/golden.run_sed__get-log-index__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-package/golden.run_sed__get-graphics__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-package/golden.run_sed__get-graphics__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-package/golden.run_sed__get-log-index__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/no-document/golden.run_sed__get-fls-fullpath__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/no-document/golden.run_sed__get-fls-fullpath__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/no-document/golden.run_sed__get-graphics__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/no-document/golden.run_sed__get-graphics__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/no-document/golden.run_sed__get-log-index__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/no-document/golden.run_sed__get-log-index__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/no-document/golden.run_sed__get-missing-inputs__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/runaway-caption/golden.run_sed__color-tex__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/runaway-caption/golden.run_sed__color-tex__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/runaway-caption/golden.run_sed__get-graphics__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/runaway-caption/golden.run_sed__get-graphics__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/runaway-caption/golden.run_sed__get-log-index__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/unknown-size/golden.run_sed__get-fls-fullpath__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/unknown-size/golden.run_sed__get-graphics__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/unknown-size/golden.run_sed__get-log-index__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/unknown-size/golden.run_sed__get-log-index__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/unknown-size/golden.run_sed__get-log-index__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /oldtest/test1.dat: -------------------------------------------------------------------------------- 1 | 0 10 2 | 1 5 3 | 2 3 4 | 3 2 5 | 4 3 6 | 5 5 7 | 6 10 8 | -------------------------------------------------------------------------------- /test/existing-graphics/golden.run_sed__get-fls-fullpath__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/existing-graphics/golden.run_sed__get-log-index__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/existing-graphics/golden.run_sed__get-log-index__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/existing-graphics/golden.run_sed__get-log-index__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/graphic-in-style/golden.run_sed__get-log-index__log.doc--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/graphic-in-style/golden.run_sed__get-log-index__log.doc--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/graphic-in-style/golden.run_sed__get-missing-inputs__log.doc--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/hyperref-wrong/golden.run_sed__get-fls-fullpath__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/hyperref-wrong/golden.run_sed__get-fls-fullpath__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/hyperref-wrong/golden.run_sed__get-fls-fullpath__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/hyperref-wrong/golden.run_sed__get-log-index__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/hyperref-wrong/golden.run_sed__get-missing-inputs__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/hyperref-wrong/golden.run_sed__get-missing-inputs__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/long-missing-graphic/golden.run_sed__get-log-index__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/long-missing-input/golden.run_sed__get-fls-fullpath__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/long-missing-input/golden.run_sed__get-graphics__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/long-missing-input/golden.run_sed__get-graphics__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/long-missing-input/golden.run_sed__get-graphics__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/long-missing-input/golden.run_sed__get-log-index__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/long-missing-input/golden.run_sed__get-log-index__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/long-missing-input/golden.run_sed__get-log-index__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-cls/golden.run_sed__get-fls-fullpath__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-dollar/golden.run_sed__get-fls-fullpath__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-dollar/golden.run_sed__get-fls-fullpath__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-dollar/golden.run_sed__get-fls-fullpath__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-dollar/golden.run_sed__get-log-index__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-dollar/golden.run_sed__get-missing-inputs__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-dollar/golden.run_sed__get-missing-inputs__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-graphic/golden.run_sed__get-fls-fullpath__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-graphic/golden.run_sed__get-fls-fullpath__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-graphic/golden.run_sed__get-fls-fullpath__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-graphic/golden.run_sed__get-log-index__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-graphic/golden.run_sed__get-log-index__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-graphic/golden.run_sed__get-missing-inputs__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-input/golden.run_sed__get-fls-fullpath__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-input/golden.run_sed__get-fls-fullpath__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-package/golden.run_sed__get-fls-fullpath__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-package/golden.run_sed__get-fls-fullpath__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-package/golden.run_sed__get-fls-fullpath__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-package/golden.run_sed__get-graphics__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-package/golden.run_sed__get-log-index__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-package/golden.run_sed__get-log-index__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/no-document/golden.run_sed__get-fls-fullpath__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/no-document/golden.run_sed__get-missing-inputs__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/no-document/golden.run_sed__get-missing-inputs__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/runaway-caption/golden.run_sed__get-graphics__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/runaway-caption/golden.run_sed__get-log-index__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/runaway-caption/golden.run_sed__get-log-index__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/runaway-caption/golden.run_sed__get-missing-inputs__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/undefined-sequence/golden.run_sed__get-fls-fullpath__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/undefined-sequence/golden.run_sed__get-graphics__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/undefined-sequence/golden.run_sed__get-graphics__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/undefined-sequence/golden.run_sed__get-graphics__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/undefined-sequence/golden.run_sed__get-log-index__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/undefined-sequence/golden.run_sed__get-log-index__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/undefined-sequence/golden.run_sed__get-log-index__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/unknown-extension/golden.run_sed__get-fls-fullpath__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/unknown-extension/golden.run_sed__get-graphics__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/unknown-extension/golden.run_sed__get-log-index__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/unknown-extension/golden.run_sed__get-log-index__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/unknown-extension/golden.run_sed__get-log-index__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/unknown-size/golden.run_sed__colorize-latex-errors__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/unknown-size/golden.run_sed__get-fls-fullpath__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/unknown-size/golden.run_sed__get-fls-fullpath__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/unknown-size/golden.run_sed__get-missing-inputs__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/unknown-size/golden.run_sed__get-missing-inputs__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/unknown-size/golden.run_sed__get-missing-inputs__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/existing-graphics/golden.run_sed__colorize-latex-errors__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/existing-graphics/golden.run_sed__get-fls-fullpath__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/existing-graphics/golden.run_sed__get-fls-fullpath__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/existing-graphics/golden.run_sed__get-missing-inputs__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/existing-graphics/golden.run_sed__get-missing-inputs__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/existing-graphics/golden.run_sed__get-missing-inputs__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/graphic-in-style/golden.run_sed__colorize-latex-errors__log.doc--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/graphic-in-style/golden.run_sed__colorize-latex-errors__log.doc--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/graphic-in-style/golden.run_sed__colorize-latex-errors__log.doc--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/graphic-in-style/golden.run_sed__get-missing-inputs__log.doc--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/graphic-in-style/golden.run_sed__get-missing-inputs__log.doc--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/hyperref-wrong/golden.run_sed__colorize-latex-errors__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/hyperref-wrong/golden.run_sed__get-missing-inputs__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/long-missing-graphic/golden.run_sed__get-fls-fullpath__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/long-missing-graphic/golden.run_sed__get-fls-fullpath__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/long-missing-graphic/golden.run_sed__get-fls-fullpath__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/long-missing-graphic/golden.run_sed__get-log-index__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/long-missing-graphic/golden.run_sed__get-log-index__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/long-missing-graphic/golden.run_sed__get-missing-inputs__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/long-missing-input/golden.run_sed__get-fls-fullpath__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/long-missing-input/golden.run_sed__get-fls-fullpath__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-dollar/golden.run_sed__colorize-latex-errors__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-dollar/golden.run_sed__get-missing-inputs__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-graphic/golden.run_sed__colorize-latex-errors__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-graphic/golden.run_sed__colorize-latex-errors__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-graphic/golden.run_sed__colorize-latex-errors__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-graphic/golden.run_sed__get-missing-inputs__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/missing-graphic/golden.run_sed__get-missing-inputs__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/runaway-caption/golden.run_sed__get-missing-inputs__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/runaway-caption/golden.run_sed__get-missing-inputs__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/undefined-sequence/golden.run_sed__get-fls-fullpath__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/undefined-sequence/golden.run_sed__get-fls-fullpath__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/undefined-sequence/golden.run_sed__get-missing-inputs__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/undefined-sequence/golden.run_sed__get-missing-inputs__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/undefined-sequence/golden.run_sed__get-missing-inputs__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/unknown-extension/golden.run_sed__get-fls-fullpath__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/unknown-extension/golden.run_sed__get-fls-fullpath__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/unknown-extension/golden.run_sed__get-missing-inputs__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/unknown-extension/golden.run_sed__get-missing-inputs__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/unknown-extension/golden.run_sed__get-missing-inputs__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/unknown-size/golden.run_sed__colorize-latex-errors__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/existing-graphics/golden.run_sed__colorize-latex-errors__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/existing-graphics/golden.run_sed__colorize-latex-errors__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/graphic-extension-specified/golden.run_sed__get-fls-fullpath__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/graphic-extension-specified/golden.run_sed__get-graphics__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/graphic-extension-specified/golden.run_sed__get-log-index__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/graphic-extension-specified/golden.run_sed__get-log-index__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/graphic-extension-specified/golden.run_sed__get-log-index__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/long-missing-graphic/golden.run_sed__colorize-latex-errors__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/long-missing-graphic/golden.run_sed__colorize-latex-errors__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/long-missing-graphic/golden.run_sed__colorize-latex-errors__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/long-missing-graphic/golden.run_sed__get-missing-inputs__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/long-missing-graphic/golden.run_sed__get-missing-inputs__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /oldtest/test4.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/oldtest/test4.pdf -------------------------------------------------------------------------------- /test/graphic-extension-specified/golden.run_sed__colorize-latex-errors__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/graphic-extension-specified/golden.run_sed__get-fls-fullpath__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/graphic-extension-specified/golden.run_sed__get-fls-fullpath__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/graphic-extension-specified/golden.run_sed__get-missing-inputs__log.test--latex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/graphic-extension-specified/golden.run_sed__get-missing-inputs__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/graphic-extension-specified/golden.run_sed__get-missing-inputs__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /oldtest/test3.eps.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/oldtest/test3.eps.gz -------------------------------------------------------------------------------- /sedtest/bcf-parse/golden.run_sed__get-bcf-bibs__main.bcf: -------------------------------------------------------------------------------- 1 | TARGET_FILES: references.bib 2 | 3 | -------------------------------------------------------------------------------- /test/graphic-extension-specified/golden.run_sed__colorize-latex-errors__log.test--xelatex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /oldtest/scripted-include-file.nobuild.tex.sh: -------------------------------------------------------------------------------- 1 | echo 'Hey there - I'"'"'m a scripted include!' > $1 2 | -------------------------------------------------------------------------------- /oldtest/test me.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \begin{document} 4 | hi 5 | \end{document} 6 | -------------------------------------------------------------------------------- /test/existing-graphics/g1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/test/existing-graphics/g1.pdf -------------------------------------------------------------------------------- /test/existing-graphics/g2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/test/existing-graphics/g2.pdf -------------------------------------------------------------------------------- /test/existing-graphics/g3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/test/existing-graphics/g3.pdf -------------------------------------------------------------------------------- /test/existing-graphics/g4.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/test/existing-graphics/g4.pdf -------------------------------------------------------------------------------- /test/missing-input/test.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \input{not-here} 3 | \begin{document} 4 | \end{document} 5 | -------------------------------------------------------------------------------- /test/no-document/golden.run_sed__color-tex__log.test--latex: -------------------------------------------------------------------------------- 1 | LaTeX Error: Missing \begin{document}. 2 | 3 | 4 | -------------------------------------------------------------------------------- /flat-aux-clean.sed: -------------------------------------------------------------------------------- 1 | #(##defaults() ##) 2 | 3 | /^\\relax/d 4 | /^\\bibcite/d 5 | s/^\(\\newlabel{[^}]\{1,\}}\).*/\1/ 6 | -------------------------------------------------------------------------------- /test/missing-cls/golden.run_sed__color-tex__log.test--latex: -------------------------------------------------------------------------------- 1 | LaTeX Error: File `missing.cls' not found. 2 | 3 | 4 | -------------------------------------------------------------------------------- /test/no-document/golden.run_sed__color-tex__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | LaTeX Error: Missing \begin{document}. 2 | 3 | 4 | -------------------------------------------------------------------------------- /test/no-document/golden.run_sed__color-tex__log.test--xelatex: -------------------------------------------------------------------------------- 1 | LaTeX Error: Missing \begin{document}. 2 | 3 | 4 | -------------------------------------------------------------------------------- /test/missing-cls/golden.run_sed__color-tex__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | LaTeX Error: File `missing.cls' not found. 2 | 3 | 4 | -------------------------------------------------------------------------------- /test/missing-cls/golden.run_sed__color-tex__log.test--xelatex: -------------------------------------------------------------------------------- 1 | LaTeX Error: File `missing.cls' not found. 2 | 3 | 4 | -------------------------------------------------------------------------------- /test/missing-input/golden.run_sed__color-tex__log.test--latex: -------------------------------------------------------------------------------- 1 | LaTeX Error: File `not-here.tex' not found. 2 | 3 | 4 | -------------------------------------------------------------------------------- /test/missing-input/golden.run_sed__color-tex__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | LaTeX Error: File `not-here.tex' not found. 2 | 3 | 4 | -------------------------------------------------------------------------------- /test/missing-input/golden.run_sed__color-tex__log.test--xelatex: -------------------------------------------------------------------------------- 1 | LaTeX Error: File `not-here.tex' not found. 2 | 3 | 4 | -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.2.0.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.2.0.tar.gz -------------------------------------------------------------------------------- /test/graphic-in-style/golden.run_sed__color-tex__log.doc--xelatex: -------------------------------------------------------------------------------- 1 | Success! Wrote

1 page to doc.pdf 2 | 3 | 4 | -------------------------------------------------------------------------------- /test/missing-dollar/golden.run_sed__color-tex__log.test--xelatex: -------------------------------------------------------------------------------- 1 | Success! Wrote

1 page to test.pdf 2 | 3 | 4 | -------------------------------------------------------------------------------- /test/missing-package/golden.run_sed__color-tex__log.test--latex: -------------------------------------------------------------------------------- 1 | LaTeX Error: File `nonexistent.sty' not found. 2 | 3 | 4 | -------------------------------------------------------------------------------- /test/missing-package/golden.run_sed__color-tex__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | LaTeX Error: File `nonexistent.sty' not found. 2 | 3 | 4 | -------------------------------------------------------------------------------- /test/missing-package/golden.run_sed__color-tex__log.test--xelatex: -------------------------------------------------------------------------------- 1 | LaTeX Error: File `nonexistent.sty' not found. 2 | 3 | 4 | -------------------------------------------------------------------------------- /test/transcript/stub.tex: -------------------------------------------------------------------------------- 1 | % Expected transcript: latex 2 | \documentclass{article} 3 | \begin{document} 4 | Aa 5 | \end{document} 6 | -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.1.20.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.1.20.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.1.21.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.1.21.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.1.23.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.1.23.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.1.24.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.1.24.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.1.25.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.1.25.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.1.26.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.1.26.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.1.27.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.1.27.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.1.31.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.1.31.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.1.32.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.1.32.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.1.34.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.1.34.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.1.35.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.1.35.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.1.36.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.1.36.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.1.37.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.1.37.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.1.39.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.1.39.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.1.40.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.1.40.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.1.41.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.1.41.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.1.42.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.1.42.tar.gz -------------------------------------------------------------------------------- /oldtest/test1.gpi: -------------------------------------------------------------------------------- 1 | ##FONTSIZE=15 2 | #load 'global.gpi' 3 | plot x**2 lw 5.0, \ 4 | 'test1.dat', \ 5 | '-' 6 | 1,6.39 7 | e 8 | -------------------------------------------------------------------------------- /test/graphic-in-style/texmf/graphic.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/test/graphic-in-style/texmf/graphic.pdf -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.2.0-rc1.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.2.0-rc1.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.2.0-rc10.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.2.0-rc10.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.2.0-rc11.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.2.0-rc11.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.2.0-rc13.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.2.0-rc13.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.2.0-rc14.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.2.0-rc14.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.2.0-rc15.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.2.0-rc15.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.2.0-rc2.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.2.0-rc2.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.2.0-rc3.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.2.0-rc3.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.2.0-rc5.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.2.0-rc5.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.2.0-rc6.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.2.0-rc6.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.2.0-rc7.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.2.0-rc7.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.2.0-rc8.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.2.0-rc8.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.2.0-rc9.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.2.0-rc9.tar.gz -------------------------------------------------------------------------------- /test/missing-cls/golden.run_sed__colorize-latex-errors__log.test--latex: -------------------------------------------------------------------------------- 1 | ./test.tex:2: LaTeX Error: File `missing.cls' not found. 2 | 3 | -------------------------------------------------------------------------------- /test/no-document/test.tex: -------------------------------------------------------------------------------- 1 | This has no "begin{document}" command, so it is more like an include file. Building it will produce an error. 2 | -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.2.0-alpha1.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.2.0-alpha1.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.2.0-alpha2.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.2.0-alpha2.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.2.0-alpha3.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.2.0-alpha3.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.2.0-beta1.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.2.0-beta1.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.2.0-beta2.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.2.0-beta2.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.2.0-beta3.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.2.0-beta3.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.2.0-beta4.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.2.0-beta4.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.2.0-beta5.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.2.0-beta5.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.2.0-beta6.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.2.0-beta6.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.2.0-beta7.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.2.0-beta7.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.2.0-beta8.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.2.0-beta8.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.2.1-alpha4.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.2.1-alpha4.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.2.1-alpha5.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.2.1-alpha5.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.2.1-alpha6.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.2.1-alpha6.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.2.1-alpha8.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.2.1-alpha8.tar.gz -------------------------------------------------------------------------------- /Downloads/latex-makefile-2.2.1-alpha9.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiblon/latex-makefile/HEAD/Downloads/latex-makefile-2.2.1-alpha9.tar.gz -------------------------------------------------------------------------------- /test/missing-cls/golden.run_sed__colorize-latex-errors__log.test--xelatex: -------------------------------------------------------------------------------- 1 | ./test.tex:2: LaTeX Error: File `missing.cls' not found. 2 | 3 | -------------------------------------------------------------------------------- /test/missing-input/golden.run_sed__colorize-latex-errors__log.test--latex: -------------------------------------------------------------------------------- 1 | ./test.tex:2: LaTeX Error: File `not-here.tex' not found. 2 | 3 | -------------------------------------------------------------------------------- /test/missing-input/golden.run_sed__colorize-latex-errors__log.test--xelatex: -------------------------------------------------------------------------------- 1 | ./test.tex:2: LaTeX Error: File `not-here.tex' not found. 2 | 3 | -------------------------------------------------------------------------------- /eps-bb.sed: -------------------------------------------------------------------------------- 1 | /^%%Title:/p 2 | /^%%Creator:/p 3 | /^%%BoundingBox:/p 4 | /^%%CreationDate:/p 5 | /^%%EndComments/{ 6 | d 7 | q 8 | } 9 | d 10 | -------------------------------------------------------------------------------- /oldtest/test-scripted-include.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \begin{document} 4 | \include{scripted-include-file.nobuild} 5 | \end{document} 6 | -------------------------------------------------------------------------------- /test/graphic-in-style/golden.run_sed__color-tex__log.doc--pdflatex: -------------------------------------------------------------------------------- 1 | Success! Wrote

1 page,

16063 bytes to doc.pdf 2 | 3 | 4 | -------------------------------------------------------------------------------- /test/missing-package/golden.run_sed__colorize-latex-errors__log.test--latex: -------------------------------------------------------------------------------- 1 | ./test.tex:4: LaTeX Error: File `nonexistent.sty' not found. 2 | 3 | -------------------------------------------------------------------------------- /test/missing-package/golden.run_sed__colorize-latex-errors__log.test--xelatex: -------------------------------------------------------------------------------- 1 | ./test.tex:4: LaTeX Error: File `nonexistent.sty' not found. 2 | 3 | -------------------------------------------------------------------------------- /test/unknown-size/golden.run_sed__colorize-latex-errors__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | ./test.tex:8: LaTeX Error: Unknown graphics extension: .ps. 2 | 3 | -------------------------------------------------------------------------------- /test/graphic-in-style/texmf/ls-R: -------------------------------------------------------------------------------- 1 | % ls-R -- filename database for kpathsea; do not change this line. 2 | ./: 3 | graphic.pdf 4 | ls-R 5 | myclass.cls 6 | 7 | -------------------------------------------------------------------------------- /test/unknown-extension/golden.run_sed__colorize-latex-errors__log.test--latex: -------------------------------------------------------------------------------- 1 | ./test.tex:8: LaTeX Error: File `badextension.epp' not found. 2 | 3 | -------------------------------------------------------------------------------- /test/unknown-extension/golden.run_sed__colorize-latex-errors__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | ./test.tex:8: LaTeX Error: Unknown graphics extension: .epp. 2 | 3 | -------------------------------------------------------------------------------- /oldtest/test-error._nobuild_.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \usepaccage{amsmath} 4 | 5 | \begin{document} 6 | 7 | \hello}{ 8 | 9 | \end{document} 10 | -------------------------------------------------------------------------------- /colorize-makeindex-errors.sed: -------------------------------------------------------------------------------- 1 | #(##defaults(color_error="", color_reset="") ##) 2 | /^!! /{ 3 | N 4 | s/^.*$/(##color_error##)&(##color_reset##)/ 5 | p 6 | } 7 | d 8 | -------------------------------------------------------------------------------- /test/undefined-sequence/test.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \titl{broken control sequence (misspelled `title')} 4 | 5 | \begin{document} 6 | \halp 7 | \end{document} 8 | -------------------------------------------------------------------------------- /oldtest/test1._include_.tex: -------------------------------------------------------------------------------- 1 | This is test 1 2 | \includegraphics[width=0.6\textwidth]{test3} 3 | 4 | \cite{testentry2} 5 | \cite{testentry4} 6 | \bibliography{test-bib,test-bib2} 7 | -------------------------------------------------------------------------------- /test/graphic-in-style/doc.tex: -------------------------------------------------------------------------------- 1 | \documentclass{myclass} 2 | 3 | \begin{document} 4 | 5 | \maketitle 6 | 7 | Hi there - should be a graphic above this point. 8 | \end{document} 9 | -------------------------------------------------------------------------------- /test/no-document/golden.run_sed__colorize-latex-errors__log.test--latex: -------------------------------------------------------------------------------- 1 | ./test.tex:1: LaTeX Error: Missing \begin{document}. --- Are you trying to build an include file? 2 | 3 | -------------------------------------------------------------------------------- /test/no-document/golden.run_sed__colorize-latex-errors__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | ./test.tex:1: LaTeX Error: Missing \begin{document}. --- Are you trying to build an include file? 2 | 3 | -------------------------------------------------------------------------------- /test/no-document/golden.run_sed__colorize-latex-errors__log.test--xelatex: -------------------------------------------------------------------------------- 1 | ./test.tex:1: LaTeX Error: Missing \begin{document}. --- Are you trying to build an include file? 2 | 3 | -------------------------------------------------------------------------------- /test/graphic-extension-specified/test.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{graphicx} 3 | 4 | \begin{document} 5 | 6 | \includegraphics{badextension.eps} 7 | 8 | \end{document} 9 | -------------------------------------------------------------------------------- /test/runaway-caption/test.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \begin{document} 3 | \begin{figure} 4 | \caption{We forgot the closing brace on this caption! 5 | \end{figure} 6 | \end{document} 7 | -------------------------------------------------------------------------------- /test/transcript/packages/biblatex/stub.tex: -------------------------------------------------------------------------------- 1 | % Expected transcript: latex bibtex latex 2 | \documentclass{article} 3 | \usepackage{biblatex} 4 | \begin{document} 5 | Aa 6 | \end{document} 7 | -------------------------------------------------------------------------------- /test/undefined-sequence/golden.run_sed__color-tex__log.test--xelatex: -------------------------------------------------------------------------------- 1 | LaTeX Error: Missing \begin{document}. 2 | 3 | Success! Wrote

1 page to test.pdf 4 | 5 | 6 | -------------------------------------------------------------------------------- /test/graphic-extension-specified/golden.run_sed__colorize-latex-errors__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | ./test.tex:6: Package pdftex.def Error: File `badextension-eps-converted-to.pdf' not found. 2 | 3 | -------------------------------------------------------------------------------- /test/missing-cls/test.tex: -------------------------------------------------------------------------------- 1 | \documentclass{missing} 2 | 3 | \begin{document} 4 | Hi there! Make should error out gracefully, indicating that `missing.cls' could not be found. 5 | \end{document} 6 | -------------------------------------------------------------------------------- /test/missing-input/golden.run_sed__get-missing-inputs__log.test--latex: -------------------------------------------------------------------------------- 1 | # MISSING input "not-here.tex" - (presence of comment affects build) 2 | TARGET_FILES: $(call path-norm,not-here.tex) 3 | 4 | -------------------------------------------------------------------------------- /oldtest/test-missing-cls.tex: -------------------------------------------------------------------------------- 1 | \documentclass{missing} 2 | 3 | \begin{document} 4 | Hi there! Make should error out gracefully, indicating that `missing.cls' could not be found. 5 | \end{document} 6 | -------------------------------------------------------------------------------- /test/graphic-in-style/golden.run_sed__color-tex__log.doc--latex: -------------------------------------------------------------------------------- 1 | LaTeX Error: File `graphic' not found. 2 | 3 | Success! Wrote

1 page,

304 bytes to doc.dvi 4 | 5 | 6 | -------------------------------------------------------------------------------- /test/long-missing-input/golden.run_sed__color-tex__log.test--latex: -------------------------------------------------------------------------------- 1 | LaTeX Error: File `results/pecfp_smt_disp_iss_prof_fifo_4_uops_ready_disp_iss 2 | ued_less_ctr123.tex' not found. 3 | 4 | 5 | -------------------------------------------------------------------------------- /test/long-missing-input/golden.run_sed__color-tex__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | LaTeX Error: File `results/pecfp_smt_disp_iss_prof_fifo_4_uops_ready_disp_iss 2 | ued_less_ctr123.tex' not found. 3 | 4 | 5 | -------------------------------------------------------------------------------- /test/long-missing-input/golden.run_sed__color-tex__log.test--xelatex: -------------------------------------------------------------------------------- 1 | LaTeX Error: File `results/pecfp_smt_disp_iss_prof_fifo_4_uops_ready_disp_iss 2 | ued_less_ctr123.tex' not found. 3 | 4 | 5 | -------------------------------------------------------------------------------- /test/missing-cls/golden.run_sed__get-missing-inputs__log.test--latex: -------------------------------------------------------------------------------- 1 | # MISSING input "missing.cls.tex" - (presence of comment affects build) 2 | TARGET_FILES: $(call path-norm,missing.cls.tex) 3 | 4 | -------------------------------------------------------------------------------- /test/missing-cls/golden.run_sed__get-missing-inputs__log.test--xelatex: -------------------------------------------------------------------------------- 1 | # MISSING input "missing.cls.tex" - (presence of comment affects build) 2 | TARGET_FILES: $(call path-norm,missing.cls.tex) 3 | 4 | -------------------------------------------------------------------------------- /test/missing-input/golden.run_sed__get-missing-inputs__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | # MISSING input "not-here.tex" - (presence of comment affects build) 2 | TARGET_FILES: $(call path-norm,not-here.tex) 3 | 4 | -------------------------------------------------------------------------------- /test/missing-input/golden.run_sed__get-missing-inputs__log.test--xelatex: -------------------------------------------------------------------------------- 1 | # MISSING input "not-here.tex" - (presence of comment affects build) 2 | TARGET_FILES: $(call path-norm,not-here.tex) 3 | 4 | -------------------------------------------------------------------------------- /test/transcript/references.bib: -------------------------------------------------------------------------------- 1 | @article{somearticle, 2 | author={John Doe}, 3 | title={Some Article}, 4 | year={1902}, 5 | journal={Some Journal}, 6 | number={3}, 7 | volume={4} 8 | } 9 | -------------------------------------------------------------------------------- /test/hyperref-wrong/test.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | % Compile using pdflatex to get an error 3 | \usepackage[dvips]{hyperref} 4 | 5 | \begin{document} 6 | 7 | Hi 8 | 9 | \end{document} 10 | -------------------------------------------------------------------------------- /test/long-missing-input/test.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \begin{document} 4 | 5 | \input{results/pecfp_smt_disp_iss_prof_fifo_4_uops_ready_disp_issued_less_ctr123.tex} 6 | 7 | \end{document} 8 | -------------------------------------------------------------------------------- /test/missing-cls/golden.run_sed__get-missing-inputs__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | # MISSING input "missing.cls.tex" - (presence of comment affects build) 2 | TARGET_FILES: $(call path-norm,missing.cls.tex) 3 | 4 | -------------------------------------------------------------------------------- /test/undefined-sequence/golden.run_sed__color-tex__log.test--latex: -------------------------------------------------------------------------------- 1 | LaTeX Error: Missing \begin{document}. 2 | 3 | Success! Wrote

1 page,

268 bytes to test.dvi 4 | 5 | 6 | -------------------------------------------------------------------------------- /colorize-epstopdf-errors.sed: -------------------------------------------------------------------------------- 1 | #(##defaults(color_error="", color_reset="") ##) 2 | /^Error:/,/^Execution stack:/{ 3 | /^Execution stack:/d 4 | s/.*/(##color_error##)&(##color_reset##)/ 5 | p 6 | } 7 | d 8 | -------------------------------------------------------------------------------- /test/missing-package/golden.run_sed__get-missing-inputs__log.test--latex: -------------------------------------------------------------------------------- 1 | # MISSING input "nonexistent.sty.tex" - (presence of comment affects build) 2 | TARGET_FILES: $(call path-norm,nonexistent.sty.tex) 3 | 4 | -------------------------------------------------------------------------------- /test/undefined-sequence/golden.run_sed__color-tex__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | LaTeX Error: Missing \begin{document}. 2 | 3 | Success! Wrote

1 page,

14206 bytes to test.pdf 4 | 5 | 6 | -------------------------------------------------------------------------------- /test/unknown-size/golden.run_sed__color-tex__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | LaTeX Warning: File `badextension.ps' not found on input line 8. 2 | 3 | LaTeX Error: Unknown graphics extension: .ps. 4 | 5 | 6 | -------------------------------------------------------------------------------- /test/long-missing-input/golden.run_sed__colorize-latex-errors__log.test--latex: -------------------------------------------------------------------------------- 1 | ./test.tex:5: LaTeX Error: File `results/pecfp_smt_disp_iss_prof_fifo_4_uops_ready_disp_issued_less_ctr123.tex' not found. 2 | 3 | -------------------------------------------------------------------------------- /test/long-missing-input/golden.run_sed__colorize-latex-errors__log.test--xelatex: -------------------------------------------------------------------------------- 1 | ./test.tex:5: LaTeX Error: File `results/pecfp_smt_disp_iss_prof_fifo_4_uops_ready_disp_issued_less_ctr123.tex' not found. 2 | 3 | -------------------------------------------------------------------------------- /test/missing-package/golden.run_sed__get-missing-inputs__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | # MISSING input "nonexistent.sty.tex" - (presence of comment affects build) 2 | TARGET_FILES: $(call path-norm,nonexistent.sty.tex) 3 | 4 | -------------------------------------------------------------------------------- /test/missing-package/golden.run_sed__get-missing-inputs__log.test--xelatex: -------------------------------------------------------------------------------- 1 | # MISSING input "nonexistent.sty.tex" - (presence of comment affects build) 2 | TARGET_FILES: $(call path-norm,nonexistent.sty.tex) 3 | 4 | -------------------------------------------------------------------------------- /test/transcript/packages/biblatex/references.bib: -------------------------------------------------------------------------------- 1 | @article{somearticle, 2 | author={John Doe}, 3 | title={Some Article}, 4 | year={1902}, 5 | journal={Some Journal}, 6 | number={3}, 7 | volume={4} 8 | } 9 | -------------------------------------------------------------------------------- /test/unknown-extension/golden.run_sed__color-tex__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | LaTeX Warning: File `badextension.epp' not found on input line 8. 2 | 3 | LaTeX Error: Unknown graphics extension: .epp. 4 | 5 | 6 | -------------------------------------------------------------------------------- /test/missing-cls/golden.run_sed__colorize-latex-errors__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | ./test.tex:2: LaTeX Error: File `missing.cls' not found. 2 | ./test.tex:2: ==> Fatal error occurred, no output PDF file produced! 3 | 4 | -------------------------------------------------------------------------------- /test/missing-package/test.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \usepackage{nonexistent} 4 | 5 | \title{Hi, I'm a title} 6 | \author{Me Too} 7 | 8 | \begin{document} 9 | 10 | \maketitle 11 | 12 | \end{document} 13 | -------------------------------------------------------------------------------- /oldtest/test-missing-package.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \usepackage{nonexistent} 4 | 5 | \title{Hi, I'm a title} 6 | \author{Me Too} 7 | 8 | \begin{document} 9 | 10 | \maketitle 11 | 12 | \end{document} 13 | -------------------------------------------------------------------------------- /test/existing-graphics/golden.run_sed__color-tex__log.test--xelatex: -------------------------------------------------------------------------------- 1 | Overfull \hbox (49.5021pt too wide) in paragraph at lines 11--12 2 | [][] 3 | [] 4 | 5 | Success! Wrote

2 pages to test.pdf 6 | 7 | 8 | -------------------------------------------------------------------------------- /test/missing-input/golden.run_sed__colorize-latex-errors__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | ./test.tex:2: LaTeX Error: File `not-here.tex' not found. 2 | ./test.tex:2: ==> Fatal error occurred, no output PDF file produced! 3 | 4 | -------------------------------------------------------------------------------- /oldtest/test-bib2.bib: -------------------------------------------------------------------------------- 1 | @inproceedings{ testentry4, 2 | title="This is not a real paper, and is in the second specified bibliography", 3 | author="Me", 4 | booktitle="Proceedings of My Life (ML)", 5 | year="2006", 6 | } 7 | -------------------------------------------------------------------------------- /test/missing-package/golden.run_sed__colorize-latex-errors__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | ./test.tex:4: LaTeX Error: File `nonexistent.sty' not found. 2 | ./test.tex:4: ==> Fatal error occurred, no output PDF file produced! 3 | 4 | -------------------------------------------------------------------------------- /test/transcript/references-stub.tex: -------------------------------------------------------------------------------- 1 | % Expected transcript: latex bibtex latex latex 2 | \documentclass{article} 3 | \begin{document} 4 | Aa \cite{somearticle} 5 | \bibliographystyle{plain} 6 | \bibliography{references} 7 | \end{document} 8 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | The makefile is built from multiple individual components. 2 | 3 | To obtain a makefile, just run from this directory: 4 | 5 | ./build 6 | 7 | To obtain a tarball suitable for a codesite download, run 8 | 9 | ./buildforweb 10 | -------------------------------------------------------------------------------- /test/existing-graphics/golden.run_sed__color-tex__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | Overfull \hbox (49.5021pt too wide) in paragraph at lines 11--12 2 | [][] 3 | [] 4 | 5 | Success! Wrote

2 pages,

14638 bytes to test.pdf 6 | 7 | 8 | -------------------------------------------------------------------------------- /test/graphic-in-style/golden.run_sed__get-graphics__log.doc--pdflatex: -------------------------------------------------------------------------------- 1 | -include graphic.pdf.gpi.d 2 | TESTSTEM.d: $$(call graphics-source,graphic.pdf,TESTSTEM) 3 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,graphic.pdf,TESTSTEM) 4 | 5 | -------------------------------------------------------------------------------- /test/graphic-in-style/golden.run_sed__get-graphics__log.doc--xelatex: -------------------------------------------------------------------------------- 1 | -include graphic.pdf.gpi.d 2 | TESTSTEM.d: $$(call graphics-source,graphic.pdf,TESTSTEM) 3 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,graphic.pdf,TESTSTEM) 4 | 5 | -------------------------------------------------------------------------------- /util/ensure_version.py: -------------------------------------------------------------------------------- 1 | from __future__ import print_function 2 | import sys 3 | 4 | if sys.version_info < (2, 6) or sys.version_info >= (3,): 5 | print("You must run this with Python version > 2.6 and < 3.0", file=sys.stderr) 6 | sys.exit(-1) 7 | -------------------------------------------------------------------------------- /oldtest/test2.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 2 | Landscape 3 | Center 4 | Metric 5 | A4 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 1 3 0 1 0 1 50 -1 20 0.000 1 0.0000 2160 1260 497 497 2160 1260 2115 1755 11 | 4 0 0 50 -1 0 12 0.0000 4 135 345 1980 1350 Test\001 12 | -------------------------------------------------------------------------------- /test/unknown-extension/golden.run_sed__get-graphics__log.test--xelatex: -------------------------------------------------------------------------------- 1 | -include badextension.epp.gpi.d 2 | TESTSTEM.d: $$(call graphics-source,badextension.epp,TESTSTEM) 3 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,badextension.epp,TESTSTEM) 4 | 5 | -------------------------------------------------------------------------------- /test/unknown-size/test.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{graphicx} 3 | 4 | \begin{document} 5 | 6 | % requires use of latex (not pdflatex) 7 | % produces "Cannot determine size" error. 8 | \includegraphics{badextension.ps} 9 | 10 | \end{document} 11 | -------------------------------------------------------------------------------- /test/existing-graphics/golden.run_sed__color-tex__log.test--latex: -------------------------------------------------------------------------------- 1 | LaTeX Error: File `g1' not found. 2 | 3 | LaTeX Error: File `g2' not found. 4 | 5 | LaTeX Error: File `g3' not found. 6 | 7 | LaTeX Error: File `g4' not found. 8 | 9 | 10 | -------------------------------------------------------------------------------- /test/missing-dollar/test.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage[latin1]{inputenc} 3 | \begin{document} 4 | % Including unicode charaacters in a file parsed by pdflatex instead of xelatex 5 | % causes missing math sep errors. 6 | 7 | ó 8 | 9 | \end{document} 10 | -------------------------------------------------------------------------------- /colorize-dot-errors.sed: -------------------------------------------------------------------------------- 1 | #(##defaults(color_error="", color_warning="", color_reset="") ##) 2 | s/.*not found.*/(##color_error##)&(##color_reset##)/p 3 | /^Error:/,/context:/s/.*/(##color_error##)&(##color_reset##)/p 4 | s/^Warning:.*/(##color_warning##)&(##color_reset##)/p 5 | d 6 | -------------------------------------------------------------------------------- /test/hyperref-wrong/golden.run_sed__colorize-latex-errors__log.test--xelatex: -------------------------------------------------------------------------------- 1 | /usr/local/texlive/2013/texmf-dist/tex/latex/hyperref/hyperref.sty:4319: Package hyperref Error: Wrong DVI mode driver option `dvips', 2 | (hyperref) because XeTeX is running. 3 | 4 | -------------------------------------------------------------------------------- /test/missing-graphic/test.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{graphicx} 3 | 4 | \begin{document} 5 | 6 | \includegraphics{nothere} 7 | 8 | \includegraphics{notthere} 9 | 10 | \section{test} 11 | 12 | \includegraphics{notanywhere} 13 | 14 | \end{document} 15 | -------------------------------------------------------------------------------- /test/long-missing-input/golden.run_sed__colorize-latex-errors__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | ./test.tex:5: LaTeX Error: File `results/pecfp_smt_disp_iss_prof_fifo_4_uops_ready_disp_issued_less_ctr123.tex' not found. 2 | ./test.tex:5: ==> Fatal error occurred, no output PDF file produced! 3 | 4 | -------------------------------------------------------------------------------- /test/transcript/packages/biblatex/simple.tex: -------------------------------------------------------------------------------- 1 | % Expected transcript: latex bibtex latex latex 2 | \documentclass{article} 3 | 4 | \usepackage{biblatex} 5 | \addbibresource{references} 6 | 7 | \nocite{*} 8 | 9 | \begin{document} 10 | 11 | \printbibliography 12 | 13 | \end{document} 14 | -------------------------------------------------------------------------------- /test/unknown-extension/test.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{graphicx} 3 | 4 | \begin{document} 5 | 6 | % Compile using pdflatex to get the "unknown extension" error. Otherwise you 7 | % get missing file error. 8 | \includegraphics{badextension.epp} 9 | 10 | \end{document} 11 | -------------------------------------------------------------------------------- /test/hyperref-wrong/golden.run_sed__colorize-latex-errors__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | /usr/local/texlive/2013/texmf-dist/tex/latex/hyperref/hyperref.sty:4319: Package hyperref Error: Wrong DVI mode driver option `dvips', 2 | (hyperref) because pdfTeX or LuaTeX is running in PDF mode. 3 | 4 | -------------------------------------------------------------------------------- /test/undefined-sequence/golden.run_sed__colorize-latex-errors__log.test--latex: -------------------------------------------------------------------------------- 1 | ./test.tex:3: Undefined control sequence: \titl 2 | ./test.tex:3: LaTeX Error: Missing \begin{document}. --- Are you trying to build an include file? 3 | ./test.tex:6: Undefined control sequence: \halp 4 | 5 | -------------------------------------------------------------------------------- /test/missing-graphic/golden.run_sed__color-tex__log.test--xelatex: -------------------------------------------------------------------------------- 1 | LaTeX Error: File `nothere' not found. 2 | 3 | LaTeX Error: File `notthere' not found. 4 | 5 | LaTeX Error: File `notanywhere' not found. 6 | 7 | Success! Wrote

1 page to test.pdf 8 | 9 | 10 | -------------------------------------------------------------------------------- /test/transcript/packages/filecontents/include-file.tex: -------------------------------------------------------------------------------- 1 | % Expected transcript: latex 2 | \documentclass{article} 3 | 4 | \usepackage{filecontents} 5 | \begin{filecontents}{\jobname-include.tex} 6 | Aa 7 | \end{filecontents} 8 | 9 | \begin{document} 10 | \input{\jobname-include} 11 | \end{document} 12 | -------------------------------------------------------------------------------- /test/undefined-sequence/golden.run_sed__colorize-latex-errors__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | ./test.tex:3: Undefined control sequence: \titl 2 | ./test.tex:3: LaTeX Error: Missing \begin{document}. --- Are you trying to build an include file? 3 | ./test.tex:6: Undefined control sequence: \halp 4 | 5 | -------------------------------------------------------------------------------- /test/undefined-sequence/golden.run_sed__colorize-latex-errors__log.test--xelatex: -------------------------------------------------------------------------------- 1 | ./test.tex:3: Undefined control sequence: \titl 2 | ./test.tex:3: LaTeX Error: Missing \begin{document}. --- Are you trying to build an include file? 3 | ./test.tex:6: Undefined control sequence: \halp 4 | 5 | -------------------------------------------------------------------------------- /sedtest/bcf-parse/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | cd "$(dirname "$0")" 2>/dev/null 4 | testdir="$PWD" 5 | cd ../../ 2>/dev/null 6 | 7 | if ./run_sed get-bcf-bibs.sed < "$testdir/main.bcf" | diff "$testdir/golden.run_sed__get-bcf-bibs__main.bcf" -; then 8 | echo "PASS" 9 | else 10 | echo "FAIL" 11 | fi 12 | -------------------------------------------------------------------------------- /test/graphic-in-style/golden.run_sed__get-graphics__log.doc--latex: -------------------------------------------------------------------------------- 1 | # MISSING stem "graphic" - allowed extensions: .eps,.ps,.eps.gz,.ps.gz,.eps.Z 2 | -include graphic.gpi.d 3 | TESTSTEM.d: $$(call graphics-source,graphic,TESTSTEM) 4 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,graphic,TESTSTEM) 5 | 6 | -------------------------------------------------------------------------------- /oldtest/test-simple.tex: -------------------------------------------------------------------------------- 1 | %%EMBED 2 | \documentclass[letterpaper]{article} 3 | 4 | \title{This document has a title} 5 | \author{And an author} 6 | \date{} 7 | \begin{document} 8 | \maketitle 9 | 10 | \noindent Poetry is fun to write; \\ 11 | It keeps my brain awake at night. \\ 12 | 13 | \end{document} 14 | -------------------------------------------------------------------------------- /test/long-missing-graphic/golden.run_sed__color-tex__log.test--latex: -------------------------------------------------------------------------------- 1 | LaTeX Error: File `this-name-is-really-long' not found. 2 | 3 | LaTeX Error: File `so-is-this-one-and-it-pushes-errors-over-the-e 4 | dge' not found. 5 | 6 | LaTeX Error: File `this-triggers-two-paragraph-logic' not found. 7 | 8 | 9 | -------------------------------------------------------------------------------- /test/long-missing-graphic/golden.run_sed__color-tex__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | LaTeX Error: File `this-name-is-really-long' not found. 2 | 3 | LaTeX Error: File `so-is-this-one-and-it-pushes-errors-over-the-e 4 | dge' not found. 5 | 6 | LaTeX Error: File `this-triggers-two-paragraph-logic' not found. 7 | 8 | 9 | -------------------------------------------------------------------------------- /test/long-missing-graphic/golden.run_sed__color-tex__log.test--xelatex: -------------------------------------------------------------------------------- 1 | LaTeX Error: File `this-name-is-really-long' not found. 2 | 3 | LaTeX Error: File `so-is-this-one-and-it-pushes-errors-over-the-e 4 | dge' not found. 5 | 6 | LaTeX Error: File `this-triggers-two-paragraph-logic' not found. 7 | 8 | 9 | -------------------------------------------------------------------------------- /test/missing-graphic/golden.run_sed__color-tex__log.test--latex: -------------------------------------------------------------------------------- 1 | LaTeX Error: File `nothere' not found. 2 | 3 | LaTeX Error: File `notthere' not found. 4 | 5 | LaTeX Error: File `notanywhere' not found. 6 | 7 | Success! Wrote

1 page,

268 bytes to test.dvi 8 | 9 | 10 | -------------------------------------------------------------------------------- /test/long-missing-input/golden.run_sed__get-missing-inputs__log.test--latex: -------------------------------------------------------------------------------- 1 | # MISSING input "results/pecfp_smt_disp_iss_prof_fifo_4_uops_ready_disp_issued_less_ctr123.tex" - (presence of comment affects build) 2 | TARGET_FILES: $(call path-norm,results/pecfp_smt_disp_iss_prof_fifo_4_uops_ready_disp_issued_less_ctr123.tex) 3 | 4 | -------------------------------------------------------------------------------- /test/missing-graphic/golden.run_sed__color-tex__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | LaTeX Error: File `nothere' not found. 2 | 3 | LaTeX Error: File `notthere' not found. 4 | 5 | LaTeX Error: File `notanywhere' not found. 6 | 7 | Success! Wrote

1 page,

15931 bytes to test.pdf 8 | 9 | 10 | -------------------------------------------------------------------------------- /test/long-missing-input/golden.run_sed__get-missing-inputs__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | # MISSING input "results/pecfp_smt_disp_iss_prof_fifo_4_uops_ready_disp_issued_less_ctr123.tex" - (presence of comment affects build) 2 | TARGET_FILES: $(call path-norm,results/pecfp_smt_disp_iss_prof_fifo_4_uops_ready_disp_issued_less_ctr123.tex) 3 | 4 | -------------------------------------------------------------------------------- /test/long-missing-input/golden.run_sed__get-missing-inputs__log.test--xelatex: -------------------------------------------------------------------------------- 1 | # MISSING input "results/pecfp_smt_disp_iss_prof_fifo_4_uops_ready_disp_issued_less_ctr123.tex" - (presence of comment affects build) 2 | TARGET_FILES: $(call path-norm,results/pecfp_smt_disp_iss_prof_fifo_4_uops_ready_disp_issued_less_ctr123.tex) 3 | 4 | -------------------------------------------------------------------------------- /test/long-missing-graphic/test.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \usepackage{graphicx} 4 | 5 | \begin{document} 6 | 7 | \includegraphics{this-name-is-really-long} 8 | 9 | \includegraphics{so-is-this-one-and-it-pushes-errors-over-the-edge} 10 | 11 | \includegraphics{this-triggers-two-paragraph-logic} 12 | 13 | \end{document} 14 | -------------------------------------------------------------------------------- /test/graphic-extension-specified/golden.run_sed__color-tex__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | LaTeX Warning: File `badextension.eps' not found on input line 6. 2 | 3 | ./test.tex:6: Package pdftex.def Error: File `badextension-eps-converted-to.pdf 4 | ' not found. 5 | 6 | Success! Wrote

1 page,

19328 bytes to test.pdf 7 | 8 | 9 | -------------------------------------------------------------------------------- /test/existing-graphics/test.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \usepackage{graphicx} 4 | 5 | \begin{document} 6 | 7 | \includegraphics[width=0.9\textwidth]{g1} 8 | 9 | \includegraphics[width=0.9\textwidth]{g2} 10 | 11 | \includegraphics[width=1.1\textwidth]{g3} 12 | 13 | \includegraphics[width=0.9\textwidth]{g4} 14 | 15 | \end{document} 16 | -------------------------------------------------------------------------------- /oldtest/test-pstex.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 2 3 0 1 0 7 50 -1 -1 0.000 0 0 0 0 0 7 11 | 6300 3900 6264 2188 4764 1363 3300 2250 3336 3962 4836 4787 12 | 6300 3900 13 | 4 0 0 50 -1 0 12 0.0000 6 180 1620 4125 3150 \\LaTeX $\\sin(x^y)$\001 14 | -------------------------------------------------------------------------------- /oldtest/test-pstex.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{epsfig} 3 | \usepackage{color} 4 | \begin{document} 5 | 6 | \begin{figure} 7 | \input{test-pstex.pstex_t} 8 | 9 | \input{test-pstex2.pstex_t} 10 | 11 | \input{test-pstex3.pstex_t} 12 | 13 | Expected Results: \LaTeX $\sin(x^y)$ with a slating hexagon. 14 | \end{figure} 15 | \end{document} 16 | -------------------------------------------------------------------------------- /oldtest/test-pstex2.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 2 3 0 1 0 7 50 -1 -1 0.000 0 0 0 0 0 7 11 | 6300 3900 6264 2188 4764 1363 3300 2250 3336 3962 4836 4787 12 | 6300 3900 13 | 4 0 0 50 -1 0 12 0.0000 6 180 1620 4125 3150 \\LaTeX $\\sin(x^y)$\001 14 | -------------------------------------------------------------------------------- /oldtest/test-pstex3.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 2 3 0 1 0 7 50 -1 -1 0.000 0 0 0 0 0 7 11 | 6300 3900 6264 2188 4764 1363 3300 2250 3336 3962 4836 4787 12 | 6300 3900 13 | 4 0 0 50 -1 0 12 0.0000 6 180 1620 4125 3150 \\LaTeX $\\sin(x^y)$\001 14 | -------------------------------------------------------------------------------- /test-cases-needed/hyperref-rerun.txt: -------------------------------------------------------------------------------- 1 | We need a test case for: 2 | 3 | Package hyperref Warning: Rerun to get /PageLabels entry. 4 | 5 | Note to self: The beanbasics.tex case causes this. 6 | 7 | Right now it bails out with an error, which I am going to suppress. But, we need a test case for it so that we can have the makefile do the right thing (rerun to do its stuff). 8 | -------------------------------------------------------------------------------- /test/missing-dollar/golden.run_sed__color-tex__log.test--latex: -------------------------------------------------------------------------------- 1 | ./test.tex:8: Missing $ inserted. 2 | 3 | $ 4 | l.8 5 | 6 | I've inserted a begin-math/end-math symbol since I think 7 | you left one out. Proceed, with fingers crossed. 8 | 9 | Success! Wrote

1 page,

276 bytes to test.dvi 10 | 11 | 12 | -------------------------------------------------------------------------------- /util/testing.py: -------------------------------------------------------------------------------- 1 | """Module containing useful test stuff.""" 2 | 3 | class RunGoldenTest(object): 4 | """Runs golden file tests in a given directory. 5 | 6 | Looks for files called golden.* and parses the filename to determine what 7 | should be run and what output it should generate. 8 | """ 9 | def __init__(self, testdir): 10 | self.testdir = testdir 11 | -------------------------------------------------------------------------------- /test/missing-dollar/golden.run_sed__color-tex__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | ./test.tex:8: Missing $ inserted. 2 | 3 | $ 4 | l.8 5 | 6 | I've inserted a begin-math/end-math symbol since I think 7 | you left one out. Proceed, with fingers crossed. 8 | 9 | Success! Wrote

1 page,

17690 bytes to test.pdf 10 | 11 | 12 | -------------------------------------------------------------------------------- /test/unknown-size/golden.run_sed__color-tex__log.test--xelatex: -------------------------------------------------------------------------------- 1 | LaTeX Warning: File `badextension.ps' not found on input line 8. 2 | 3 | LaTeX Error: File `badextension.ps' not found. 4 | 5 | LaTeX Error: Cannot determine size of graphic in badextension.ps 6 | (no BoundingBox). 7 | 8 | Success! Wrote

1 page to test.pdf 9 | 10 | 11 | -------------------------------------------------------------------------------- /test/graphic-extension-specified/golden.run_sed__color-tex__log.test--xelatex: -------------------------------------------------------------------------------- 1 | LaTeX Warning: File `badextension.eps' not found on input line 6. 2 | 3 | LaTeX Error: File `badextension.eps' not found. 4 | 5 | LaTeX Error: Cannot determine size of graphic in badextension.eps 6 | (no BoundingBox). 7 | 8 | Success! Wrote

1 page to test.pdf 9 | 10 | 11 | -------------------------------------------------------------------------------- /test/unknown-size/golden.run_sed__color-tex__log.test--latex: -------------------------------------------------------------------------------- 1 | LaTeX Warning: File `badextension.ps' not found on input line 8. 2 | 3 | LaTeX Error: File `badextension.ps' not found. 4 | 5 | LaTeX Error: Cannot determine size of graphic in badextension.ps 6 | (no BoundingBox). 7 | 8 | Success! Wrote

1 page,

276 bytes to test.dvi 9 | 10 | 11 | -------------------------------------------------------------------------------- /color-bib.sed: -------------------------------------------------------------------------------- 1 | #(##defaults(color_warning="", color_error="", color_reset="") ##) 2 | s/^Warning--.*/(##color_warning##)&(##color_reset##)/ 3 | t 4 | /---/,/^.[^:]/{ 5 | H 6 | /^.[^:]/{ 7 | x 8 | s/\n\(.*\)/(##color_error##)\1(##color_reset##)/ 9 | p 10 | s/.*// 11 | h 12 | d 13 | } 14 | d 15 | } 16 | /(.*error.*)/s//(##color_error##)&(##color_reset##)/ 17 | d 18 | -------------------------------------------------------------------------------- /test/unknown-extension/golden.run_sed__color-tex__log.test--latex: -------------------------------------------------------------------------------- 1 | LaTeX Warning: File `badextension.epp' not found on input line 8. 2 | 3 | LaTeX Error: File `badextension.epp' not found. 4 | 5 | LaTeX Error: Cannot determine size of graphic in badextension.epp 6 | (no BoundingBox). 7 | 8 | Success! Wrote

1 page,

276 bytes to test.dvi 9 | 10 | 11 | -------------------------------------------------------------------------------- /test/graphic-extension-specified/golden.run_sed__color-tex__log.test--latex: -------------------------------------------------------------------------------- 1 | LaTeX Warning: File `badextension.eps' not found on input line 6. 2 | 3 | LaTeX Error: File `badextension.eps' not found. 4 | 5 | LaTeX Error: Cannot determine size of graphic in badextension.eps 6 | (no BoundingBox). 7 | 8 | Success! Wrote

1 page,

276 bytes to test.dvi 9 | 10 | 11 | -------------------------------------------------------------------------------- /test/runaway-caption/golden.run_sed__colorize-latex-errors__log.test--latex: -------------------------------------------------------------------------------- 1 | Runaway argument? 2 | {We forgot the closing brace on this caption! \end {figure} \end {doc\ETC. 3 | ! File ended while scanning use of \@xdblarg. 4 | 5 | \par 6 | <*> test 7 | 8 | I suspect you have forgotten a `}', causing me 9 | to read past where you wanted me to stop. 10 | 11 | 12 | -------------------------------------------------------------------------------- /test/runaway-caption/golden.run_sed__colorize-latex-errors__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | Runaway argument? 2 | {We forgot the closing brace on this caption! \end {figure} \end {doc\ETC. 3 | ! File ended while scanning use of \@xdblarg. 4 | 5 | \par 6 | <*> test 7 | 8 | I suspect you have forgotten a `}', causing me 9 | to read past where you wanted me to stop. 10 | 11 | 12 | -------------------------------------------------------------------------------- /test/runaway-caption/golden.run_sed__colorize-latex-errors__log.test--xelatex: -------------------------------------------------------------------------------- 1 | Runaway argument? 2 | {We forgot the closing brace on this caption! \end {figure} \end {doc\ETC. 3 | ! File ended while scanning use of \@xdblarg. 4 | 5 | \par 6 | <*> test 7 | 8 | I suspect you have forgotten a `}', causing me 9 | to read past where you wanted me to stop. 10 | 11 | 12 | -------------------------------------------------------------------------------- /test/hyperref-wrong/golden.run_sed__color-tex__log.test--xelatex: -------------------------------------------------------------------------------- 1 | /usr/local/texlive/2013/texmf-dist/tex/latex/hyperref/hyperref.sty:4319: Packag 2 | e hyperref Error: Wrong DVI mode driver option `dvips', 3 | (hyperref) because XeTeX is running. 4 | 5 | Package hyperref Warning: Rerun to get /PageLabels entry. 6 | 7 | Success! Wrote

1 page to test.pdf 8 | 9 | 10 | -------------------------------------------------------------------------------- /test/hyperref-wrong/golden.run_sed__color-tex__log.test--latex: -------------------------------------------------------------------------------- 1 | Package hyperref Warning: Rerun to get /PageLabels entry. 2 | 3 | Package rerunfilecheck Warning: File `test.out' has changed. 4 | (rerunfilecheck) Rerun to get outlines right 5 | (rerunfilecheck) or use package `bookmark'. 6 | 7 | Success! Wrote

1 page,

2104 bytes to test.dvi 8 | 9 | 10 | -------------------------------------------------------------------------------- /oldtest/test-index.tex: -------------------------------------------------------------------------------- 1 | \documentclass[ 2 | letterpaper % use letter paper 3 | ]{book} 4 | \usepackage{makeidx} 5 | 6 | \makeindex 7 | 8 | \begin{document} 9 | 10 | \tableofcontents 11 | \listoffigures 12 | 13 | \chapter{first chapter} 14 | 15 | Some text that has to do with the first chapter. Frog\index{frog}. 16 | 17 | \section{first section} 18 | 19 | \printindex 20 | 21 | \end{document} 22 | 23 | % vim: lbr 24 | -------------------------------------------------------------------------------- /get-bcf-bibs.sed: -------------------------------------------------------------------------------- 1 | #(##defaults(target_files="TARGET_FILES") ##) 2 | 3 | # Skip any line that doesn't say "datasource". 4 | /datasource/!d 5 | 6 | # Remove everything up to and including the next >. 7 | s/^[^>]*>//g 8 | 9 | # Remove everything after < to the end. 10 | s/<.*$//g 11 | 12 | # Add .bib extension if not present. 13 | /\.bib$/!s/$/.bib/ 14 | 15 | # Convert into a dependency line by adding dependent targets. 16 | s!^!(##target_files##): ! 17 | -------------------------------------------------------------------------------- /test/graphic-in-style/README: -------------------------------------------------------------------------------- 1 | $ mkdir foo 2 | $ cd foo 3 | 4 | $ hg clone https://code.google.com/p/latex-makefile/ 5 | $ cd latex-makefile 6 | $ python2 build 7 | $ cd .. 8 | $ ln -s latex-makefile/Makefile 9 | 10 | $ wget https://forge.nicta.com.au/frs/download.php/file/241/nicta-techreport-style-20140808.tar.bz2 -O - | tar xjv 11 | $ cd nicta-techreport-style-20140808/ 12 | $ make TEXMFHOME=~/.texmf install 13 | $ cp nictatechreport_doc.tex .. 14 | $ make 15 | -------------------------------------------------------------------------------- /test/unknown-size/golden.run_sed__get-graphics__log.test--latex: -------------------------------------------------------------------------------- 1 | # MISSING stem "badextension" - allowed extensions: .ps 2 | -include badextension.gpi.d 3 | TESTSTEM.d: $$(call graphics-source,badextension,TESTSTEM) 4 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,badextension,TESTSTEM) 5 | -include badextension.gpi.d 6 | TESTSTEM.d: $$(call graphics-source,badextension,TESTSTEM) 7 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,badextension,TESTSTEM) 8 | 9 | -------------------------------------------------------------------------------- /test/unknown-size/golden.run_sed__get-graphics__log.test--xelatex: -------------------------------------------------------------------------------- 1 | # MISSING stem "badextension" - allowed extensions: .ps 2 | -include badextension.gpi.d 3 | TESTSTEM.d: $$(call graphics-source,badextension,TESTSTEM) 4 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,badextension,TESTSTEM) 5 | -include badextension.gpi.d 6 | TESTSTEM.d: $$(call graphics-source,badextension,TESTSTEM) 7 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,badextension,TESTSTEM) 8 | 9 | -------------------------------------------------------------------------------- /get-format.sed: -------------------------------------------------------------------------------- 1 | #(##defaults(target_files="TARGET_FILES")##) 2 | 3 | # Format files are always specified on the first line 4 | 1!d 5 | 6 | # They must be of the form %&name, with no spaces in "name" 7 | # Everything after spaces is ignored. 8 | /^%&\([[:alnum:]]\{1,\}\)\( .*\)*$/{ 9 | s!!\1! 10 | h 11 | s/.*/# MISSING format "&.fmt" (comment forces rebuild of target file)/ 12 | p 13 | g 14 | s!.*!(##target_files##): $(call path-norm,&.fmt)! 15 | p 16 | } 17 | d 18 | -------------------------------------------------------------------------------- /test/shell-escape/test.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{minted} 3 | 4 | % Note: Requires 'pygmentize' to be installed on the system. 5 | 6 | % Results: 7 | % 'xelatex -shell-escape test' works 8 | % 'xelatex test' does not work 9 | 10 | \begin{document} 11 | Example Python script: 12 | 13 | \begin{minted}{python} 14 | def hello(): 15 | '''An example function''' 16 | print "Hello world" 17 | 18 | hello() 19 | \end{minted} 20 | \end{document} -------------------------------------------------------------------------------- /test/graphic-extension-specified/golden.run_sed__get-graphics__log.test--latex: -------------------------------------------------------------------------------- 1 | # MISSING stem "badextension" - allowed extensions: .eps 2 | -include badextension.gpi.d 3 | TESTSTEM.d: $$(call graphics-source,badextension,TESTSTEM) 4 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,badextension,TESTSTEM) 5 | -include badextension.gpi.d 6 | TESTSTEM.d: $$(call graphics-source,badextension,TESTSTEM) 7 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,badextension,TESTSTEM) 8 | 9 | -------------------------------------------------------------------------------- /test/graphic-extension-specified/golden.run_sed__get-graphics__log.test--xelatex: -------------------------------------------------------------------------------- 1 | # MISSING stem "badextension" - allowed extensions: .eps 2 | -include badextension.gpi.d 3 | TESTSTEM.d: $$(call graphics-source,badextension,TESTSTEM) 4 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,badextension,TESTSTEM) 5 | -include badextension.gpi.d 6 | TESTSTEM.d: $$(call graphics-source,badextension,TESTSTEM) 7 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,badextension,TESTSTEM) 8 | 9 | -------------------------------------------------------------------------------- /test/unknown-extension/golden.run_sed__get-graphics__log.test--latex: -------------------------------------------------------------------------------- 1 | # MISSING stem "badextension" - allowed extensions: UNKNOWN=.epp 2 | -include badextension.gpi.d 3 | TESTSTEM.d: $$(call graphics-source,badextension,TESTSTEM) 4 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,badextension,TESTSTEM) 5 | -include badextension.epp.gpi.d 6 | TESTSTEM.d: $$(call graphics-source,badextension.epp,TESTSTEM) 7 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,badextension.epp,TESTSTEM) 8 | 9 | -------------------------------------------------------------------------------- /test/graphic-in-style/texmf/myclass.cls: -------------------------------------------------------------------------------- 1 | \NeedsTeXFormat{LaTeX2e}% 2 | \ProvidesClass{myclass}[2014/08/22 Test Class]% 3 | \LoadClass{article}% 4 | \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} 5 | %% ------------------- option parsing ---------------------------- 6 | \ProcessOptions\relax 7 | %% ----------------- package loading ----------------------------- 8 | \RequirePackage{graphicx} 9 | 10 | \renewcommand{\maketitle}{% 11 | Title page 12 | \includegraphics{graphic} 13 | }% 14 | -------------------------------------------------------------------------------- /test/unknown-extension/golden.run_sed__color-tex__log.test--xelatex: -------------------------------------------------------------------------------- 1 | LaTeX Warning: File `badextension.epp' not found on input line 8. 2 | 3 | ./test.tex:8: Unable to load picture or PDF file 'badextension.epp'. 4 | 5 | } 6 | l.8 \includegraphics{badextension.epp} 7 | 8 | The requested image couldn't be read because 9 | the file was not found. 10 | 11 | Success! Wrote

1 page to test.pdf 12 | 13 | 14 | -------------------------------------------------------------------------------- /test-cases-needed/command-not-found.txt: -------------------------------------------------------------------------------- 1 | We need to detect general cases where the command we are trying to execute is 2 | not on the system. This should be easy to test by overriding commands with 3 | things that aren't there, e.g., 4 | 5 | DOT := fakedot 6 | 7 | In this case, we get an error on stderr (which ends up in the log): 8 | 9 | /bin/sh: fakedot: command not found 10 | 11 | There are probably other cases like this that we should make test cases for so 12 | that we can be sure coloring is working properly. 13 | -------------------------------------------------------------------------------- /oldtest/test-bib.bib: -------------------------------------------------------------------------------- 1 | @inproceedings{ testentry, 2 | title="This is not a real paper", 3 | author="Me", 4 | booktitle="Proceedings of My Life (ML)", 5 | year="2006", 6 | } 7 | @inproceedings{ testentry2, 8 | title="This is not a real paper either", 9 | author="MeToo", 10 | booktitle="Proceedings of My Life (ML)", 11 | year="2006", 12 | } 13 | @inproceedings{ testentry3, 14 | title="Non-real paper 3", 15 | author="MeToo", 16 | booktitle="Proceedings of My Life (ML)", 17 | year="2006", 18 | } 19 | -------------------------------------------------------------------------------- /test/transcript/packages/filecontents/references.tex: -------------------------------------------------------------------------------- 1 | % Expected transcript: latex bibtex latex latex 2 | \documentclass{article} 3 | 4 | \usepackage{filecontents} 5 | \begin{filecontents}{\jobname.bib} 6 | @article{somearticle, 7 | author={John Doe}, 8 | title={Some Article}, 9 | year={1902}, 10 | journal={Some Journal}, 11 | number={3}, 12 | volume={4} 13 | } 14 | \end{filecontents} 15 | 16 | \begin{document} 17 | 18 | \nocite{*} 19 | 20 | \bibliographystyle{plain} 21 | \bibliography{\jobname} 22 | \end{document} 23 | -------------------------------------------------------------------------------- /flatten-aux-script.sed: -------------------------------------------------------------------------------- 1 | #(##defaults() ##) 2 | # Creates a sed script that does aux flattening by finding all of the included 3 | # dependencies. 4 | 5 | /\\@input{\(.*\)}/{ 6 | # Get the file name 7 | s//\1/ 8 | # Escape periods and colons 9 | s![.:]!\\&!g 10 | h 11 | # Emit a test for the file name input 12 | s!.*!\\:\\\\@input{&}:{! 13 | p 14 | x 15 | # Remove escapes and emit a line that reads the file 16 | s/\\././g 17 | s/.*/r &/p 18 | # Add d and endgroup commands 19 | s/.*/d/p 20 | s/.*/}/p 21 | d 22 | } 23 | d 24 | -------------------------------------------------------------------------------- /oldtest/test-index-error.tex: -------------------------------------------------------------------------------- 1 | \documentclass[ 2 | letterpaper % use letter paper 3 | ]{book} 4 | \usepackage{makeidx} 5 | 6 | \makeindex 7 | 8 | \begin{document} 9 | 10 | \tableofcontents 11 | \listoffigures 12 | 13 | \chapter{first chapter} 14 | 15 | Some text that has to do with the first chapter. Frog\index{frog}. 16 | 17 | \section{first section} 18 | 19 | % produces an error (thanks to abachn for the test case) 20 | Class \index{class!!class} 21 | Object \index{object@@object} 22 | 23 | \printindex 24 | 25 | \end{document} 26 | 27 | % vim: lbr 28 | -------------------------------------------------------------------------------- /test/hyperref-wrong/golden.run_sed__color-tex__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | /usr/local/texlive/2013/texmf-dist/tex/latex/hyperref/hyperref.sty:4319: Packag 2 | e hyperref Error: Wrong DVI mode driver option `dvips', 3 | (hyperref) because pdfTeX or LuaTeX is running in PDF mode. 4 | 5 | Package rerunfilecheck Warning: File `test.out' has changed. 6 | (rerunfilecheck) Rerun to get outlines right 7 | (rerunfilecheck) or use package `bookmark'. 8 | 9 | Success! Wrote

1 page,

10909 bytes to test.pdf 10 | 11 | 12 | -------------------------------------------------------------------------------- /gpi-deps.sed: -------------------------------------------------------------------------------- 1 | #(##defaults(targets="TARGETS")##) 2 | 3 | /^[[:space:]]*s\{0,1\}plot/,/[^\\]$/{ 4 | H 5 | /[^\\]$/{ 6 | s/.*// 7 | x 8 | s/\\\{0,1\}\n//g 9 | s/^[[:space:]]*s\{0,1\}plot[[:space:]]*\(\[[^]]*\][[:space:]]*\)*/,/ 10 | s/[[:space:]]*\(['\''"][^'\''"]*['\''"]\)\{0,1\}[^,]*/\1/g 11 | s/,['\''"]-\{0,1\}['\''"]//g 12 | s/[,'\''"]\{1,\}/ /g 13 | s/.*:.*/$(error Error: Filenames with colons are not allowed: &)/ 14 | s!.*!(##targets##): &! 15 | p 16 | } 17 | d 18 | } 19 | s/^[[:space:]]*load[[:space:]]*['\''"]\([^'\''"]*\.gpi\)['\''"].*$/-include \1.d/p 20 | d 21 | -------------------------------------------------------------------------------- /get-bibs.sed: -------------------------------------------------------------------------------- 1 | #(##defaults(target_files="TARGET_FILES")##) 2 | 3 | # Parses a .aux file to find bibdata information 4 | /^\\bibdata/!d 5 | 6 | # Remove the \bibdata{} from around the pertinent information 7 | s/\\bibdata{\([^}]*\)}/\1,/ 8 | 9 | # Ignore -blx files - they change frequently without affecting the build. 10 | s/[^,]\{1,\}-blx// 11 | 12 | # Collapse comma sequences 13 | s/,\{2,\}/,/g 14 | 15 | # Escape spaces in file names 16 | s/[[:space:]]/\\&/g 17 | 18 | # Change to a space-delimited list of .bib names 19 | s/,/.bib /g 20 | 21 | # Remove all trailing spaces 22 | s/ \{1,\}$// 23 | 24 | -------------------------------------------------------------------------------- /test/runaway-caption/fls.test--latex: -------------------------------------------------------------------------------- 1 | PWD /Users/chris/chris/latex-makefile/test/runaway-caption 2 | INPUT /usr/local/texlive/2013/texmf.cnf 3 | INPUT /usr/local/texlive/2013/texmf-dist/web2c/texmf.cnf 4 | INPUT /usr/local/texlive/2013/texmf-var/web2c/pdftex/latex.fmt 5 | INPUT test.tex 6 | OUTPUT test.log 7 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls 8 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls 9 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo 10 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo 11 | OUTPUT test.aux 12 | -------------------------------------------------------------------------------- /test/runaway-caption/fls.test--xelatex: -------------------------------------------------------------------------------- 1 | PWD /Users/chris/chris/latex-makefile/test/runaway-caption 2 | INPUT /usr/local/texlive/2013/texmf.cnf 3 | INPUT /usr/local/texlive/2013/texmf-dist/web2c/texmf.cnf 4 | INPUT /usr/local/texlive/2013/texmf-var/web2c/xetex/xelatex.fmt 5 | INPUT test.tex 6 | OUTPUT test.log 7 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls 8 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls 9 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo 10 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo 11 | OUTPUT test.aux 12 | -------------------------------------------------------------------------------- /colorize-gnuplot-errors.sed: -------------------------------------------------------------------------------- 1 | #(##defaults(color_error="", color_reset="") ##) 2 | /, line [0-9]*:/!{ 3 | H 4 | x 5 | s/.*\n\(.*\n.*\)$/\1/ 6 | x 7 | } 8 | /, line [0-9]*:/{ 9 | H 10 | /unknown.*terminal type/{ 11 | s/.*/--- Try changing the GNUPLOT_OUTPUT_EXTENSION variable to 'eps'./ 12 | H 13 | } 14 | /gpihead/{ 15 | s/.*/--- This could be a Makefile bug - contact the maintainer./ 16 | H 17 | } 18 | g 19 | s/.*/(##color_error##)&(##color_reset##)/ 20 | p 21 | } 22 | /^gnuplot>/,/^$/{ 23 | s/^gnuplot.*/(##color_error##)&/ 24 | s/^$/(##color_reset##)/ 25 | p 26 | } 27 | d 28 | -------------------------------------------------------------------------------- /get-log-index.sed: -------------------------------------------------------------------------------- 1 | #(##defaults(target_files="TARGET_FILES", stem="STEM")##) 2 | 3 | # Look for missing index or glossary files. 4 | s/^No file \(.*\.ind\)\.$/TARGETS=\1/ 5 | s/^No file \(.*\.[gn]ls\)\.$/TARGETS=\1/ 6 | # Escape spaces in file names 7 | s/[[:space:]]/\\&/g 8 | 9 | # If we have a target, rewrite it to be a make dependency rule 10 | /^TARGETS=/{ 11 | # Save it, rewrite to a make dependency 12 | h 13 | s!^TARGETS=!(##target_files##): !p 14 | # Get the old one back, add yet another make dependency 15 | g 16 | s!^TARGETS=\(.*\)!\1: (##stem##).tex!p 17 | } 18 | # Anything else is trash 19 | d 20 | -------------------------------------------------------------------------------- /test/runaway-caption/fls.test--pdflatex: -------------------------------------------------------------------------------- 1 | PWD /Users/chris/chris/latex-makefile/test/runaway-caption 2 | INPUT /usr/local/texlive/2013/texmf.cnf 3 | INPUT /usr/local/texlive/2013/texmf-dist/web2c/texmf.cnf 4 | INPUT /usr/local/texlive/2013/texmf-var/web2c/pdftex/pdflatex.fmt 5 | INPUT test.tex 6 | OUTPUT test.log 7 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls 8 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls 9 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo 10 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo 11 | OUTPUT test.aux 12 | -------------------------------------------------------------------------------- /test/unknown-extension/golden.run_sed__colorize-latex-errors__log.test--xelatex: -------------------------------------------------------------------------------- 1 | ./test.tex:8: Unable to load picture or PDF file 'badextension.epp'. 2 | } 3 | l.8 \includegraphics{badextension.epp} 4 | 5 | The requested image couldn't be read because 6 | the file was not found. 7 | ./test.tex:8: Unable to load picture or PDF file 'badextension.epp'. 8 | \GXT@clipend 9 | l.8 \includegraphics{badextension.epp} 10 | 11 | The requested image couldn't be read because 12 | the file was not found. 13 | 14 | -------------------------------------------------------------------------------- /test/existing-graphics/golden.run_sed__get-graphics__log.test--xelatex: -------------------------------------------------------------------------------- 1 | -include g1.pdf.gpi.d 2 | TESTSTEM.d: $$(call graphics-source,g1.pdf,TESTSTEM) 3 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,g1.pdf,TESTSTEM) 4 | -include g2.pdf.gpi.d 5 | TESTSTEM.d: $$(call graphics-source,g2.pdf,TESTSTEM) 6 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,g2.pdf,TESTSTEM) 7 | -include g3.pdf.gpi.d 8 | TESTSTEM.d: $$(call graphics-source,g3.pdf,TESTSTEM) 9 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,g3.pdf,TESTSTEM) 10 | -include g4.pdf.gpi.d 11 | TESTSTEM.d: $$(call graphics-source,g4.pdf,TESTSTEM) 12 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,g4.pdf,TESTSTEM) 13 | 14 | -------------------------------------------------------------------------------- /test/existing-graphics/golden.run_sed__get-graphics__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | -include g1.pdf.gpi.d 2 | TESTSTEM.d: $$(call graphics-source,g1.pdf,TESTSTEM) 3 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,g1.pdf,TESTSTEM) 4 | -include g2.pdf.gpi.d 5 | TESTSTEM.d: $$(call graphics-source,g2.pdf,TESTSTEM) 6 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,g2.pdf,TESTSTEM) 7 | -include g3.pdf.gpi.d 8 | TESTSTEM.d: $$(call graphics-source,g3.pdf,TESTSTEM) 9 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,g3.pdf,TESTSTEM) 10 | -include g4.pdf.gpi.d 11 | TESTSTEM.d: $$(call graphics-source,g4.pdf,TESTSTEM) 12 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,g4.pdf,TESTSTEM) 13 | 14 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | #LaTeX Makefile 2 | 3 | This is a single GNU makefile that builds a LaTeX document into various targets with minimal latex/bibtex invocations. It colorizes and swallows the normally unhelpful latex output so that errors and other important messages are easy to spot. It handles GNUplot, Fig, and Dot image creation (and many more formats besides), and does automatic dependency tracking. 4 | 5 | Perhaps most important, it is convenient because it is a *single file* and only depends on standard Unix utilities that are likely to exist on any system. It includes built-in help documentation and various utilities to test whether it will work on your system. Just drop it in your source directory and type `make`. Is something not working? Type `make help | less`. 6 | -------------------------------------------------------------------------------- /test/missing-graphic/golden.run_sed__get-graphics__log.test--latex: -------------------------------------------------------------------------------- 1 | # MISSING stem "nothere" - allowed extensions: .eps,.ps,.eps.gz,.ps.gz,.eps.Z 2 | -include nothere.gpi.d 3 | TESTSTEM.d: $$(call graphics-source,nothere,TESTSTEM) 4 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,nothere,TESTSTEM) 5 | # MISSING stem "notthere" - allowed extensions: .eps,.ps,.eps.gz,.ps.gz,.eps.Z 6 | -include notthere.gpi.d 7 | TESTSTEM.d: $$(call graphics-source,notthere,TESTSTEM) 8 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,notthere,TESTSTEM) 9 | # MISSING stem "notanywhere" - allowed extensions: .eps,.ps,.eps.gz,.ps.gz,.eps.Z 10 | -include notanywhere.gpi.d 11 | TESTSTEM.d: $$(call graphics-source,notanywhere,TESTSTEM) 12 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,notanywhere,TESTSTEM) 13 | 14 | -------------------------------------------------------------------------------- /get-fls-fullpath.sed: -------------------------------------------------------------------------------- 1 | #(##defaults(name="TEST.EPS")##) 2 | 3 | # Given an unqualified basename (name), try to find its full path in the 4 | # .fls file recorded by latex -recorder mode. Note that the file itself is 5 | # omitted, only the directory is returned. Thus, this is like a "dirname" that 6 | # expands only for files listed in the .fls file. 7 | # 8 | # Finds only the fjrst occurrence, by quitting if it is there, and deletes any 9 | # non-matching lines. Thus, only the first match is ever printed and the script 10 | # immediately exits. 11 | # 12 | # Note that the filename is not escaped in any kind of special way for 13 | # searching, so it should be passed in pre-escaped to avoid having issues with 14 | # the dot operator, among other things. 15 | /^INPUT \(.*\/\)(##name##)$/{ 16 | s//\1/ 17 | q 18 | } 19 | d 20 | -------------------------------------------------------------------------------- /get-inputs.sed: -------------------------------------------------------------------------------- 1 | #(##defaults(target_files="TARGET_FILES")##) 2 | 3 | # only look at INPUT lines from the .fls file 4 | /^INPUT/!d 5 | # Remove references to the current directory, make all entries relative 6 | s!^INPUT \(\./\)\{0,1\}!! 7 | # Escape filepath spaces 8 | s/[[:space:]]/\\ /g 9 | # Depend on .tex, not on .aux 10 | s/\(.*\)\.aux$/\1.tex/ 11 | # NOTE: BSD sed does not understand \|, so we have to do something more 12 | # clunky to extract suitable extensions. 13 | /\.tex$/b addtargets 14 | /\.cls$/b addtargets 15 | /\.sty$/b addtargets 16 | /\.pstex_t$/b addtargets 17 | /\.dot_t$/b addtargets 18 | d 19 | # Here we add the input targets. This involves calling path-norm, which on 20 | # cygwin systems will change the path to not contain spaces and to be 21 | # unix-style instead of C:\Windows style. 22 | :addtargets 23 | s!.*!(##target_files##): $(call path-norm,&)! 24 | -------------------------------------------------------------------------------- /known-issues: -------------------------------------------------------------------------------- 1 | * The following occurs: 2 | file with: \usepackage{named}\bibliographystyle{named} 3 | Compile 4 | change to: \usepackage{apalike}\bibliographystyle{apalike} 5 | Compile again -- BARF! 6 | 7 | The workaround: make clean-nographics; make 8 | 9 | Note that we may not be able to fix this. LaTeX itself barfs 10 | on this, not the makefile. The very first invocation of LaTeX 11 | (when something like this has happened) reads the existing .aux 12 | file and discovers invalid commands like \citeauthoryear that 13 | are only valid in the package that was just removed. It then 14 | tries to parse them and explodes. It's not at all clear to me 15 | how to fix this. I tried removing the .aux files on the first 16 | run of LaTeX, but that necessarily requires more subsequent 17 | rebuilds on common edits. There does not appear to be a 18 | graceful solution to this issue. 19 | -------------------------------------------------------------------------------- /test/missing-graphic/golden.run_sed__get-graphics__log.test--xelatex: -------------------------------------------------------------------------------- 1 | # MISSING stem "nothere" - allowed extensions: .pdf,.eps,.ps,.png,.jpg,.bmp,.pict,.tif,.psd,.mac,.sga,.tga,.gif 2 | -include nothere.gpi.d 3 | TESTSTEM.d: $$(call graphics-source,nothere,TESTSTEM) 4 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,nothere,TESTSTEM) 5 | # MISSING stem "notthere" - allowed extensions: .pdf,.eps,.ps,.png,.jpg,.bmp,.pict,.tif,.psd,.mac,.sga,.tga,.gif 6 | -include notthere.gpi.d 7 | TESTSTEM.d: $$(call graphics-source,notthere,TESTSTEM) 8 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,notthere,TESTSTEM) 9 | # MISSING stem "notanywhere" - allowed extensions: .pdf,.eps,.ps,.png,.jpg,.bmp,.pict,.tif,.psd,.mac,.sga,.tga,.gif 10 | -include notanywhere.gpi.d 11 | TESTSTEM.d: $$(call graphics-source,notanywhere,TESTSTEM) 12 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,notanywhere,TESTSTEM) 13 | 14 | -------------------------------------------------------------------------------- /test/missing-dollar/golden.run_sed__colorize-latex-errors__log.test--latex: -------------------------------------------------------------------------------- 1 | ./test.tex:7: Missing $ inserted. 2 | $ 3 | l.7 ó 4 | 5 | I've inserted a begin-math/end-math symbol since I think 6 | you left one out. Proceed, with fingers crossed. 7 | ./test.tex:7: Extra }, or forgotten $.\maththreesuperior ->{^3} 8 | 9 | l.7 ó 10 | 11 | I've deleted a group-closing symbol because it seems to be 12 | spurious, as in `$x}$'. But perhaps the } is legitimate and 13 | you forgot something else, as in `\hbox{$x}'. In such cases 14 | the way to recover is to insert both the forgotten and the 15 | deleted material, e.g., by typing `I$}'. 16 | ./test.tex:8: Missing $ inserted. 17 | $ 18 | l.8 19 | 20 | I've inserted a begin-math/end-math symbol since I think 21 | you left one out. Proceed, with fingers crossed. 22 | 23 | -------------------------------------------------------------------------------- /test/missing-dollar/golden.run_sed__colorize-latex-errors__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | ./test.tex:7: Missing $ inserted. 2 | $ 3 | l.7 ó 4 | 5 | I've inserted a begin-math/end-math symbol since I think 6 | you left one out. Proceed, with fingers crossed. 7 | ./test.tex:7: Extra }, or forgotten $.\maththreesuperior ->{^3} 8 | 9 | l.7 ó 10 | 11 | I've deleted a group-closing symbol because it seems to be 12 | spurious, as in `$x}$'. But perhaps the } is legitimate and 13 | you forgot something else, as in `\hbox{$x}'. In such cases 14 | the way to recover is to insert both the forgotten and the 15 | deleted material, e.g., by typing `I$}'. 16 | ./test.tex:8: Missing $ inserted. 17 | $ 18 | l.8 19 | 20 | I've inserted a begin-math/end-math symbol since I think 21 | you left one out. Proceed, with fingers crossed. 22 | 23 | -------------------------------------------------------------------------------- /test/missing-graphic/golden.run_sed__get-graphics__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | # MISSING stem "nothere" - allowed extensions: .png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPEG,.JBIG2,.JB2,.eps 2 | -include nothere.gpi.d 3 | TESTSTEM.d: $$(call graphics-source,nothere,TESTSTEM) 4 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,nothere,TESTSTEM) 5 | # MISSING stem "notthere" - allowed extensions: .png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPEG,.JBIG2,.JB2,.eps 6 | -include notthere.gpi.d 7 | TESTSTEM.d: $$(call graphics-source,notthere,TESTSTEM) 8 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,notthere,TESTSTEM) 9 | # MISSING stem "notanywhere" - allowed extensions: .png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPEG,.JBIG2,.JB2,.eps 10 | -include notanywhere.gpi.d 11 | TESTSTEM.d: $$(call graphics-source,notanywhere,TESTSTEM) 12 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,notanywhere,TESTSTEM) 13 | 14 | -------------------------------------------------------------------------------- /test/existing-graphics/golden.run_sed__get-graphics__log.test--latex: -------------------------------------------------------------------------------- 1 | # MISSING stem "g1" - allowed extensions: .eps,.ps,.eps.gz,.ps.gz,.eps.Z 2 | -include g1.gpi.d 3 | TESTSTEM.d: $$(call graphics-source,g1,TESTSTEM) 4 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,g1,TESTSTEM) 5 | # MISSING stem "g2" - allowed extensions: .eps,.ps,.eps.gz,.ps.gz,.eps.Z 6 | -include g2.gpi.d 7 | TESTSTEM.d: $$(call graphics-source,g2,TESTSTEM) 8 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,g2,TESTSTEM) 9 | # MISSING stem "g3" - allowed extensions: .eps,.ps,.eps.gz,.ps.gz,.eps.Z 10 | -include g3.gpi.d 11 | TESTSTEM.d: $$(call graphics-source,g3,TESTSTEM) 12 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,g3,TESTSTEM) 13 | # MISSING stem "g4" - allowed extensions: .eps,.ps,.eps.gz,.ps.gz,.eps.Z 14 | -include g4.gpi.d 15 | TESTSTEM.d: $$(call graphics-source,g4,TESTSTEM) 16 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,g4,TESTSTEM) 17 | 18 | -------------------------------------------------------------------------------- /test/long-missing-graphic/golden.run_sed__get-graphics__log.test--latex: -------------------------------------------------------------------------------- 1 | # MISSING stem "this-name-is-really-long" - allowed extensions: .eps,.ps,.eps.gz,.ps.gz,.eps.Z 2 | -include this-name-is-really-long.gpi.d 3 | TESTSTEM.d: $$(call graphics-source,this-name-is-really-long,TESTSTEM) 4 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,this-name-is-really-long,TESTSTEM) 5 | # MISSING stem "so-is-this-one-and-it-pushes-errors-over-the-edge" - allowed extensions: .eps,.ps,.eps.gz,.ps.gz,.eps.Z 6 | -include so-is-this-one-and-it-pushes-errors-over-the-edge.gpi.d 7 | TESTSTEM.d: $$(call graphics-source,so-is-this-one-and-it-pushes-errors-over-the-edge,TESTSTEM) 8 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,so-is-this-one-and-it-pushes-errors-over-the-edge,TESTSTEM) 9 | # MISSING stem "this-triggers-two-paragraph-logic" - allowed extensions: .eps,.ps,.eps.gz,.ps.gz,.eps.Z 10 | -include this-triggers-two-paragraph-logic.gpi.d 11 | TESTSTEM.d: $$(call graphics-source,this-triggers-two-paragraph-logic,TESTSTEM) 12 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,this-triggers-two-paragraph-logic,TESTSTEM) 13 | 14 | -------------------------------------------------------------------------------- /test/missing-cls/log.test--latex: -------------------------------------------------------------------------------- 1 | This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013) (format=latex 2013.5.30) 22 AUG 2014 08:31 2 | entering extended mode 3 | restricted \write18 enabled. 4 | file:line:error style messages enabled. 5 | %&-line parsing enabled. 6 | **test 7 | (./test.tex 8 | LaTeX2e <2011/06/27> 9 | Babel <3.9f> and hyphenation patterns for 78 languages loaded. 10 | 11 | ! LaTeX Error: File `missing.cls' not found. 12 | 13 | Type X to quit or to proceed, 14 | or enter new name. (Default extension: cls) 15 | 16 | Enter file name: 17 | ./test.tex:2: Emergency stop. 18 | 19 | 20 | l.2 ^^M 21 | 22 | *** (cannot \read from terminal in nonstop modes) 23 | 24 | 25 | Here is how much of TeX's memory you used: 26 | 10 strings out of 493316 27 | 171 string characters out of 6137930 28 | 52155 words of memory out of 5000000 29 | 3560 multiletter control sequences out of 15000+600000 30 | 3640 words of font info for 14 fonts, out of 8000000 for 9000 31 | 957 hyphenation exceptions out of 8191 32 | 10i,0n,7p,30b,8s stack positions out of 5000i,500n,10000p,200000b,80000s 33 | No pages of output. 34 | -------------------------------------------------------------------------------- /test/missing-cls/log.test--xelatex: -------------------------------------------------------------------------------- 1 | This is XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013) (format=xelatex 2013.5.30) 22 AUG 2014 08:31 2 | entering extended mode 3 | restricted \write18 enabled. 4 | file:line:error style messages enabled. 5 | %&-line parsing enabled. 6 | **test 7 | (./test.tex 8 | LaTeX2e <2011/06/27> 9 | Babel <3.9f> and hyphenation patterns for 78 languages loaded. 10 | 11 | ! LaTeX Error: File `missing.cls' not found. 12 | 13 | Type X to quit or to proceed, 14 | or enter new name. (Default extension: cls) 15 | 16 | Enter file name: 17 | ./test.tex:2: Emergency stop. 18 | 19 | 20 | l.2 ^^M 21 | 22 | *** (cannot \read from terminal in nonstop modes) 23 | 24 | 25 | Here is how much of TeX's memory you used: 26 | 9 strings out of 493938 27 | 87 string characters out of 6148857 28 | 51899 words of memory out of 5000000 29 | 3411 multiletter control sequences out of 15000+600000 30 | 3640 words of font info for 14 fonts, out of 8000000 for 9000 31 | 1144 hyphenation exceptions out of 8191 32 | 10i,0n,7p,30b,8s stack positions out of 5000i,500n,10000p,200000b,80000s 33 | No pages of output. 34 | -------------------------------------------------------------------------------- /test/missing-cls/log.test--pdflatex: -------------------------------------------------------------------------------- 1 | This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013) (format=pdflatex 2013.5.30) 22 AUG 2014 08:31 2 | entering extended mode 3 | restricted \write18 enabled. 4 | file:line:error style messages enabled. 5 | %&-line parsing enabled. 6 | **test 7 | (./test.tex 8 | LaTeX2e <2011/06/27> 9 | Babel <3.9f> and hyphenation patterns for 78 languages loaded. 10 | 11 | ! LaTeX Error: File `missing.cls' not found. 12 | 13 | Type X to quit or to proceed, 14 | or enter new name. (Default extension: cls) 15 | 16 | Enter file name: 17 | ./test.tex:2: Emergency stop. 18 | 19 | 20 | l.2 ^^M 21 | 22 | *** (cannot \read from terminal in nonstop modes) 23 | 24 | 25 | Here is how much of TeX's memory you used: 26 | 10 strings out of 493315 27 | 171 string characters out of 6137904 28 | 52158 words of memory out of 5000000 29 | 3560 multiletter control sequences out of 15000+600000 30 | 3640 words of font info for 14 fonts, out of 8000000 for 9000 31 | 957 hyphenation exceptions out of 8191 32 | 10i,0n,7p,30b,8s stack positions out of 5000i,500n,10000p,200000b,80000s 33 | ./test.tex:2: ==> Fatal error occurred, no output PDF file produced! 34 | -------------------------------------------------------------------------------- /test/long-missing-graphic/golden.run_sed__get-graphics__log.test--xelatex: -------------------------------------------------------------------------------- 1 | # MISSING stem "this-name-is-really-long" - allowed extensions: .pdf,.eps,.ps,.png,.jpg,.bmp,.pict,.tif,.psd,.mac,.sga,.tga,.gif 2 | -include this-name-is-really-long.gpi.d 3 | TESTSTEM.d: $$(call graphics-source,this-name-is-really-long,TESTSTEM) 4 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,this-name-is-really-long,TESTSTEM) 5 | # MISSING stem "so-is-this-one-and-it-pushes-errors-over-the-edge" - allowed extensions: .pdf,.eps,.ps,.png,.jpg,.bmp,.pict,.tif,.psd,.mac,.sga,.tga,.gif 6 | -include so-is-this-one-and-it-pushes-errors-over-the-edge.gpi.d 7 | TESTSTEM.d: $$(call graphics-source,so-is-this-one-and-it-pushes-errors-over-the-edge,TESTSTEM) 8 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,so-is-this-one-and-it-pushes-errors-over-the-edge,TESTSTEM) 9 | # MISSING stem "this-triggers-two-paragraph-logic" - allowed extensions: .pdf,.eps,.ps,.png,.jpg,.bmp,.pict,.tif,.psd,.mac,.sga,.tga,.gif 10 | -include this-triggers-two-paragraph-logic.gpi.d 11 | TESTSTEM.d: $$(call graphics-source,this-triggers-two-paragraph-logic,TESTSTEM) 12 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,this-triggers-two-paragraph-logic,TESTSTEM) 13 | 14 | -------------------------------------------------------------------------------- /get-missing-inputs.sed: -------------------------------------------------------------------------------- 1 | #(##defaults(target_files="TARGET_FILES")##) 2 | 3 | #(##include("paragraphs.sed")##) 4 | 5 | # Inputs don't do file line errors until the middle of the message, weirdly 6 | # enough. 7 | /^! LaTeX Error: File `/{ 8 | b needtwomore 9 | } 10 | 11 | # Only one type of thing to look for, so no need to get crazy with the search: 12 | # if we had a multi-paragraph from above, this is it. 13 | /^::0::\(.*\)/{ 14 | # Remove prefix 15 | s//\1/ 16 | # inputs have a "Default extension" message, anything else is ignored. 17 | /Default extension: /!d 18 | # Get the file name and line information 19 | s/.*File `\([^']*\)' not found.*/\1/ 20 | # Get rid of newlines if they are there 21 | s/[[:cntrl:]]// 22 | # Now the pattern buffer contains the bare filename 23 | # Add .tex if it isn't there already (TODO: is this right?) 24 | /\.tex/!s/$/.tex/ 25 | # Escape filename spaces if possible 26 | s/[[:space:]]/\\ /g 27 | # Add the special MISSING comment 28 | h 29 | s/.*/# MISSING input "&" - (presence of comment affects build)/ 30 | p 31 | s/.*// 32 | x 33 | # Add the actual target file to the dependencies. 34 | s!^.*!(##target_files##): $(call path-norm,&)! 35 | p 36 | } 37 | 38 | # Anything else is not wanted 39 | d 40 | -------------------------------------------------------------------------------- /test/long-missing-graphic/golden.run_sed__get-graphics__log.test--pdflatex: -------------------------------------------------------------------------------- 1 | # MISSING stem "this-name-is-really-long" - allowed extensions: .png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPEG,.JBIG2,.JB2,.eps 2 | -include this-name-is-really-long.gpi.d 3 | TESTSTEM.d: $$(call graphics-source,this-name-is-really-long,TESTSTEM) 4 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,this-name-is-really-long,TESTSTEM) 5 | # MISSING stem "so-is-this-one-and-it-pushes-errors-over-the-edge" - allowed extensions: .png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPEG,.JBIG2,.JB2,.eps 6 | -include so-is-this-one-and-it-pushes-errors-over-the-edge.gpi.d 7 | TESTSTEM.d: $$(call graphics-source,so-is-this-one-and-it-pushes-errors-over-the-edge,TESTSTEM) 8 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,so-is-this-one-and-it-pushes-errors-over-the-edge,TESTSTEM) 9 | # MISSING stem "this-triggers-two-paragraph-logic" - allowed extensions: .png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPEG,.JBIG2,.JB2,.eps 10 | -include this-triggers-two-paragraph-logic.gpi.d 11 | TESTSTEM.d: $$(call graphics-source,this-triggers-two-paragraph-logic,TESTSTEM) 12 | TESTSTEM.pdf TESTSTEM._graphics: $$(call graphics-target,this-triggers-two-paragraph-logic,TESTSTEM) 13 | 14 | -------------------------------------------------------------------------------- /copyright: -------------------------------------------------------------------------------- 1 | Copyright 2004 Chris Monson (shiblon@gmail.com) 2 | Latest version available at http://www.bouncingchairs.net/oss 3 | 4 | This file is part of ``Chris Monson's Free Software''. 5 | 6 | ``Chris Monson's Free Software'' is free software; you can redistribute it 7 | and/or modify it under the terms of the GNU General Public License as 8 | published by the Free Software Foundation, Version 2. 9 | 10 | ``Chris Monson's Free Software'' is distributed in the hope that it will 11 | be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 13 | Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License along 16 | with ``Chris Monson's Free Software''; if not, write to the Free Software 17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 | 19 | It is also available on the web at http://www.gnu.org/copyleft/gpl.html 20 | 21 | Note that using this makefile to build your documents does NOT place them 22 | under the GPL unless you, the author, specifically do so. In other words, 23 | I, Chris Monson, the copyright holder and author of this makefile, 24 | consider it impossible to ``link'' to this makefile in any way covered by 25 | the GPL. 26 | -------------------------------------------------------------------------------- /test-gen-goldens.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | """Generate golden files for log.* in a test directory.""" 4 | 5 | import os 6 | import os.path 7 | import subprocess 8 | import sys 9 | import util.ensure_version 10 | 11 | log_sed_scripts = ("color-tex.sed", 12 | "colorize-latex-errors.sed", 13 | "get-graphics.sed", 14 | "get-log-index.sed", 15 | "get-missing-inputs.sed") 16 | 17 | if len(sys.argv) == 2: 18 | initial_dir = os.path.join("test", sys.argv[1]) 19 | else: 20 | initial_dir = "test" 21 | 22 | for dirpath, dirnames, filenames in os.walk(initial_dir): 23 | for in_name in filenames: 24 | if not in_name.startswith("log."): 25 | continue 26 | 27 | print("Generating golden files for {0}".format(in_name)) 28 | 29 | for scriptname in log_sed_scripts: 30 | # remove the .sed extension if there is one 31 | if scriptname.endswith(".sed"): 32 | scriptname = scriptname[:-4] 33 | out_name = "golden.run_sed__{script}__{log}".format(script=scriptname, 34 | log=in_name) 35 | out_path = os.path.join(dirpath, out_name) 36 | in_path = os.path.join(dirpath, in_name) 37 | with open(out_path, "wb") as f: 38 | args=("./run_sed", "{0}.sed".format(scriptname), in_path) 39 | print(args, out_path) 40 | ret = subprocess.call(args, stdout=f) 41 | if ret != 0: 42 | print("FAILED: removing {0}".format(out_path)) 43 | os.unlink(out_path) 44 | -------------------------------------------------------------------------------- /test/graphic-in-style/fls.doc--latex: -------------------------------------------------------------------------------- 1 | PWD /Users/chris/chris/latex-makefile/test/graphic-in-style 2 | INPUT /usr/local/texlive/2013/texmf.cnf 3 | INPUT /usr/local/texlive/2013/texmf-dist/web2c/texmf.cnf 4 | INPUT /usr/local/texlive/2013/texmf-var/web2c/pdftex/latex.fmt 5 | INPUT doc.tex 6 | OUTPUT doc.log 7 | INPUT texmf/myclass.cls 8 | INPUT texmf/myclass.cls 9 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls 10 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls 11 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo 12 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo 13 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/graphics/graphicx.sty 14 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/graphics/graphicx.sty 15 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/graphics/keyval.sty 16 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/graphics/keyval.sty 17 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/graphics/graphics.sty 18 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/graphics/graphics.sty 19 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/graphics/trig.sty 20 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/graphics/trig.sty 21 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/graphics.cfg 22 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/graphics.cfg 23 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/graphics/dvips.def 24 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/graphics/dvips.def 25 | OUTPUT doc.aux 26 | OUTPUT doc.dvi 27 | INPUT doc.aux 28 | -------------------------------------------------------------------------------- /test/graphic-in-style/fls.doc--xelatex: -------------------------------------------------------------------------------- 1 | PWD /Users/chris/chris/latex-makefile/test/graphic-in-style 2 | INPUT /usr/local/texlive/2013/texmf.cnf 3 | INPUT /usr/local/texlive/2013/texmf-dist/web2c/texmf.cnf 4 | INPUT /usr/local/texlive/2013/texmf-var/web2c/xetex/xelatex.fmt 5 | INPUT doc.tex 6 | OUTPUT doc.log 7 | INPUT texmf/myclass.cls 8 | INPUT texmf/myclass.cls 9 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls 10 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls 11 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo 12 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo 13 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/graphics/graphicx.sty 14 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/graphics/graphicx.sty 15 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/graphics/keyval.sty 16 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/graphics/keyval.sty 17 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/graphics/graphics.sty 18 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/graphics/graphics.sty 19 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/graphics/trig.sty 20 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/graphics/trig.sty 21 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/graphics.cfg 22 | INPUT /usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/graphics.cfg 23 | INPUT /usr/local/texlive/2013/texmf-dist/tex/xelatex/xetex-def/xetex.def 24 | INPUT /usr/local/texlive/2013/texmf-dist/tex/xelatex/xetex-def/xetex.def 25 | OUTPUT doc.aux 26 | INPUT texmf/graphic.pdf 27 | INPUT doc.aux 28 | -------------------------------------------------------------------------------- /oldtest/test.tex: -------------------------------------------------------------------------------- 1 | \documentclass[ 2 | letterpaper % use letter paper 3 | ]{article} 4 | 5 | \includeonly{test1._include_,test4._include_} 6 | 7 | \usepackage{graphicx} 8 | \usepackage{nomencl} 9 | \usepackage{hyperref} 10 | 11 | \usepackage{apalike}\bibliographystyle{apalike} 12 | %\usepackage{named}\bibliographystyle{named} 13 | 14 | \makeglossary 15 | 16 | \begin{document} 17 | 18 | This is a nomenclature statement about NOMS.\nomenclature{NOMS}{Hello Nom Kitty}. 19 | 20 | \tableofcontents 21 | \listoffigures 22 | 23 | \section{first section} 24 | 25 | %\printglossary 26 | 27 | \nocite{testentry3} 28 | 29 | \begin{figure} 30 | \centering 31 | \includegraphics[width=0.7\textwidth]{test1} 32 | \caption{This is a figure} 33 | \label{fig:test1} 34 | \end{figure} 35 | 36 | \section{second section} 37 | 38 | \begin{figure} 39 | \centering 40 | \includegraphics[width=0.7\textwidth]{test2} 41 | \caption{This is another figure} 42 | \label{fig:test2} 43 | \end{figure} 44 | 45 | \ref{fig:missing-and-very-long-to-push-errors-over-the-eol} 46 | 47 | \begin{figure} 48 | \centering 49 | \includegraphics[width=\textwidth]{graph} 50 | \caption{This is another figure} 51 | \label{fig:test3} 52 | \end{figure} 53 | 54 | \begin{figure} 55 | \centering 56 | \includegraphics[width=\textwidth]{test4} 57 | \caption{Test 4} 58 | \label{fig:test4} 59 | \end{figure} 60 | 61 | A Citation: \cite{testentry} 62 | 63 | This is an input: {\input{test3._include_.tex}} 64 | 65 | \include{test1._include_} 66 | \include{test2._include_} 67 | 68 | Now referring to Figures~\ref{fig:test1} and~\ref{fig:test2}. 69 | 70 | \end{document} 71 | 72 | % vim: lbr 73 | -------------------------------------------------------------------------------- /get-source-specials.sed: -------------------------------------------------------------------------------- 1 | #(##defaults() ##) 2 | 3 | # Get special comments (e.g. %%BEAMER or %%GNUPLOT_HEADER=filename) 4 | /^%%[[:space:]]*\([^%].*\)[[:space:]]*$/{ 5 | s//\1/ 6 | s/[[:space:]]//g 7 | # Special rules for BEAMER (we only understand "BEAMER LARGE" to mean 8 | # anything, and it gets rewritten to just say "BEAMER"). 9 | # This is here for dvips backward compatibility - it isn't use for direct pdf 10 | # output. 11 | /BEAMER/{ 12 | /BEAMERLARGE/!d 13 | s/.*/BEAMER/ 14 | } 15 | p 16 | d 17 | } 18 | 19 | # One-line variant of documentclass 20 | /\\documentclass[^{]*{.*}/b procclass 21 | 22 | # Get document class info, like whether we're using beamer and (if specified) 23 | # the paper size argument (e.g., "letterpaper"). 24 | /\\documentclass/,/}/{ 25 | # Remove comments 26 | s/%.*// 27 | # Accumulate 28 | H 29 | # If we hit an ending brace (after removing comments), then we have 30 | # everything we need. 31 | /}/{ 32 | # Clear out the pattern buffer and get our accumulation into it before 33 | # processing everything. 34 | s/.*// 35 | x 36 | b procclass 37 | } 38 | d 39 | } 40 | 41 | d 42 | 43 | :procclass 44 | # Remove useless information, like \documentclass, square brackets, and 45 | # anything in curlies. 46 | s/\\documentclass// 47 | s/[][]//g 48 | s/{.*}// 49 | # Kill spaces and newlines, replace commas with spaces, bound entries by spaces 50 | s/[[:cntrl:][:space:]]*//g 51 | s/,/ /g 52 | s/^/ / 53 | s/$/ / 54 | # Find paper size 55 | /.* \([[:alnum:]]\{1,\}\)paper .*/{ 56 | h 57 | s//PAPERSIZE=\1/ 58 | p 59 | g 60 | } 61 | # Find orientation 62 | /.* landscape .*/{ 63 | h 64 | s//ORIENTATION=landscape/ 65 | p 66 | g 67 | } 68 | d 69 | -------------------------------------------------------------------------------- /test/missing-package/log.test--latex: -------------------------------------------------------------------------------- 1 | This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013) (format=latex 2013.5.30) 22 AUG 2014 08:31 2 | entering extended mode 3 | restricted \write18 enabled. 4 | file:line:error style messages enabled. 5 | %&-line parsing enabled. 6 | **test 7 | (./test.tex 8 | LaTeX2e <2011/06/27> 9 | Babel <3.9f> and hyphenation patterns for 78 languages loaded. 10 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls 11 | Document Class: article 2007/10/19 v1.4h Standard LaTeX document class 12 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo 13 | File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option) 14 | ) 15 | \c@part=\count79 16 | \c@section=\count80 17 | \c@subsection=\count81 18 | \c@subsubsection=\count82 19 | \c@paragraph=\count83 20 | \c@subparagraph=\count84 21 | \c@figure=\count85 22 | \c@table=\count86 23 | \abovecaptionskip=\skip41 24 | \belowcaptionskip=\skip42 25 | \bibindent=\dimen102 26 | ) 27 | 28 | ! LaTeX Error: File `nonexistent.sty' not found. 29 | 30 | Type X to quit or to proceed, 31 | or enter new name. (Default extension: sty) 32 | 33 | Enter file name: 34 | ./test.tex:4: Emergency stop. 35 | 36 | 37 | l.4 ^^M 38 | 39 | *** (cannot \read from terminal in nonstop modes) 40 | 41 | 42 | Here is how much of TeX's memory you used: 43 | 200 strings out of 493316 44 | 2159 string characters out of 6137930 45 | 52155 words of memory out of 5000000 46 | 3742 multiletter control sequences out of 15000+600000 47 | 3640 words of font info for 14 fonts, out of 8000000 for 9000 48 | 957 hyphenation exceptions out of 8191 49 | 23i,0n,17p,131b,36s stack positions out of 5000i,500n,10000p,200000b,80000s 50 | No pages of output. 51 | -------------------------------------------------------------------------------- /test/missing-package/log.test--xelatex: -------------------------------------------------------------------------------- 1 | This is XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013) (format=xelatex 2013.5.30) 22 AUG 2014 08:31 2 | entering extended mode 3 | restricted \write18 enabled. 4 | file:line:error style messages enabled. 5 | %&-line parsing enabled. 6 | **test 7 | (./test.tex 8 | LaTeX2e <2011/06/27> 9 | Babel <3.9f> and hyphenation patterns for 78 languages loaded. 10 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls 11 | Document Class: article 2007/10/19 v1.4h Standard LaTeX document class 12 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo 13 | File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option) 14 | ) 15 | \c@part=\count80 16 | \c@section=\count81 17 | \c@subsection=\count82 18 | \c@subsubsection=\count83 19 | \c@paragraph=\count84 20 | \c@subparagraph=\count85 21 | \c@figure=\count86 22 | \c@table=\count87 23 | \abovecaptionskip=\skip41 24 | \belowcaptionskip=\skip42 25 | \bibindent=\dimen102 26 | ) 27 | 28 | ! LaTeX Error: File `nonexistent.sty' not found. 29 | 30 | Type X to quit or to proceed, 31 | or enter new name. (Default extension: sty) 32 | 33 | Enter file name: 34 | ./test.tex:4: Emergency stop. 35 | 36 | 37 | l.4 ^^M 38 | 39 | *** (cannot \read from terminal in nonstop modes) 40 | 41 | 42 | Here is how much of TeX's memory you used: 43 | 199 strings out of 493938 44 | 2075 string characters out of 6148857 45 | 51899 words of memory out of 5000000 46 | 3593 multiletter control sequences out of 15000+600000 47 | 3640 words of font info for 14 fonts, out of 8000000 for 9000 48 | 1144 hyphenation exceptions out of 8191 49 | 23i,0n,17p,131b,36s stack positions out of 5000i,500n,10000p,200000b,80000s 50 | No pages of output. 51 | -------------------------------------------------------------------------------- /test/missing-input/log.test--latex: -------------------------------------------------------------------------------- 1 | This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013) (format=latex 2013.5.30) 22 AUG 2014 08:31 2 | entering extended mode 3 | restricted \write18 enabled. 4 | file:line:error style messages enabled. 5 | %&-line parsing enabled. 6 | **test 7 | (./test.tex 8 | LaTeX2e <2011/06/27> 9 | Babel <3.9f> and hyphenation patterns for 78 languages loaded. 10 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls 11 | Document Class: article 2007/10/19 v1.4h Standard LaTeX document class 12 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo 13 | File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option) 14 | ) 15 | \c@part=\count79 16 | \c@section=\count80 17 | \c@subsection=\count81 18 | \c@subsubsection=\count82 19 | \c@paragraph=\count83 20 | \c@subparagraph=\count84 21 | \c@figure=\count85 22 | \c@table=\count86 23 | \abovecaptionskip=\skip41 24 | \belowcaptionskip=\skip42 25 | \bibindent=\dimen102 26 | ) 27 | 28 | ! LaTeX Error: File `not-here.tex' not found. 29 | 30 | Type X to quit or to proceed, 31 | or enter new name. (Default extension: tex) 32 | 33 | Enter file name: 34 | ./test.tex:2: Emergency stop. 35 | 36 | 37 | l.2 \input{not-here} 38 | ^^M 39 | *** (cannot \read from terminal in nonstop modes) 40 | 41 | 42 | Here is how much of TeX's memory you used: 43 | 196 strings out of 493316 44 | 2094 string characters out of 6137930 45 | 52155 words of memory out of 5000000 46 | 3739 multiletter control sequences out of 15000+600000 47 | 3640 words of font info for 14 fonts, out of 8000000 for 9000 48 | 957 hyphenation exceptions out of 8191 49 | 23i,0n,17p,147b,36s stack positions out of 5000i,500n,10000p,200000b,80000s 50 | No pages of output. 51 | -------------------------------------------------------------------------------- /test/missing-input/log.test--xelatex: -------------------------------------------------------------------------------- 1 | This is XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013) (format=xelatex 2013.5.30) 22 AUG 2014 08:31 2 | entering extended mode 3 | restricted \write18 enabled. 4 | file:line:error style messages enabled. 5 | %&-line parsing enabled. 6 | **test 7 | (./test.tex 8 | LaTeX2e <2011/06/27> 9 | Babel <3.9f> and hyphenation patterns for 78 languages loaded. 10 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls 11 | Document Class: article 2007/10/19 v1.4h Standard LaTeX document class 12 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo 13 | File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option) 14 | ) 15 | \c@part=\count80 16 | \c@section=\count81 17 | \c@subsection=\count82 18 | \c@subsubsection=\count83 19 | \c@paragraph=\count84 20 | \c@subparagraph=\count85 21 | \c@figure=\count86 22 | \c@table=\count87 23 | \abovecaptionskip=\skip41 24 | \belowcaptionskip=\skip42 25 | \bibindent=\dimen102 26 | ) 27 | 28 | ! LaTeX Error: File `not-here.tex' not found. 29 | 30 | Type X to quit or to proceed, 31 | or enter new name. (Default extension: tex) 32 | 33 | Enter file name: 34 | ./test.tex:2: Emergency stop. 35 | 36 | 37 | l.2 \input{not-here} 38 | ^^M 39 | *** (cannot \read from terminal in nonstop modes) 40 | 41 | 42 | Here is how much of TeX's memory you used: 43 | 195 strings out of 493938 44 | 2010 string characters out of 6148857 45 | 51899 words of memory out of 5000000 46 | 3590 multiletter control sequences out of 15000+600000 47 | 3640 words of font info for 14 fonts, out of 8000000 for 9000 48 | 1144 hyphenation exceptions out of 8191 49 | 23i,0n,17p,147b,36s stack positions out of 5000i,500n,10000p,200000b,80000s 50 | No pages of output. 51 | -------------------------------------------------------------------------------- /test/missing-package/log.test--pdflatex: -------------------------------------------------------------------------------- 1 | This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013) (format=pdflatex 2013.5.30) 22 AUG 2014 08:31 2 | entering extended mode 3 | restricted \write18 enabled. 4 | file:line:error style messages enabled. 5 | %&-line parsing enabled. 6 | **test 7 | (./test.tex 8 | LaTeX2e <2011/06/27> 9 | Babel <3.9f> and hyphenation patterns for 78 languages loaded. 10 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls 11 | Document Class: article 2007/10/19 v1.4h Standard LaTeX document class 12 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo 13 | File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option) 14 | ) 15 | \c@part=\count79 16 | \c@section=\count80 17 | \c@subsection=\count81 18 | \c@subsubsection=\count82 19 | \c@paragraph=\count83 20 | \c@subparagraph=\count84 21 | \c@figure=\count85 22 | \c@table=\count86 23 | \abovecaptionskip=\skip41 24 | \belowcaptionskip=\skip42 25 | \bibindent=\dimen102 26 | ) 27 | 28 | ! LaTeX Error: File `nonexistent.sty' not found. 29 | 30 | Type X to quit or to proceed, 31 | or enter new name. (Default extension: sty) 32 | 33 | Enter file name: 34 | ./test.tex:4: Emergency stop. 35 | 36 | 37 | l.4 ^^M 38 | 39 | *** (cannot \read from terminal in nonstop modes) 40 | 41 | 42 | Here is how much of TeX's memory you used: 43 | 200 strings out of 493315 44 | 2159 string characters out of 6137904 45 | 52158 words of memory out of 5000000 46 | 3742 multiletter control sequences out of 15000+600000 47 | 3640 words of font info for 14 fonts, out of 8000000 for 9000 48 | 957 hyphenation exceptions out of 8191 49 | 23i,0n,17p,131b,36s stack positions out of 5000i,500n,10000p,200000b,80000s 50 | ./test.tex:4: ==> Fatal error occurred, no output PDF file produced! 51 | -------------------------------------------------------------------------------- /test/missing-input/log.test--pdflatex: -------------------------------------------------------------------------------- 1 | This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013) (format=pdflatex 2013.5.30) 22 AUG 2014 08:31 2 | entering extended mode 3 | restricted \write18 enabled. 4 | file:line:error style messages enabled. 5 | %&-line parsing enabled. 6 | **test 7 | (./test.tex 8 | LaTeX2e <2011/06/27> 9 | Babel <3.9f> and hyphenation patterns for 78 languages loaded. 10 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls 11 | Document Class: article 2007/10/19 v1.4h Standard LaTeX document class 12 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo 13 | File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option) 14 | ) 15 | \c@part=\count79 16 | \c@section=\count80 17 | \c@subsection=\count81 18 | \c@subsubsection=\count82 19 | \c@paragraph=\count83 20 | \c@subparagraph=\count84 21 | \c@figure=\count85 22 | \c@table=\count86 23 | \abovecaptionskip=\skip41 24 | \belowcaptionskip=\skip42 25 | \bibindent=\dimen102 26 | ) 27 | 28 | ! LaTeX Error: File `not-here.tex' not found. 29 | 30 | Type X to quit or to proceed, 31 | or enter new name. (Default extension: tex) 32 | 33 | Enter file name: 34 | ./test.tex:2: Emergency stop. 35 | 36 | 37 | l.2 \input{not-here} 38 | ^^M 39 | *** (cannot \read from terminal in nonstop modes) 40 | 41 | 42 | Here is how much of TeX's memory you used: 43 | 196 strings out of 493315 44 | 2094 string characters out of 6137904 45 | 52158 words of memory out of 5000000 46 | 3739 multiletter control sequences out of 15000+600000 47 | 3640 words of font info for 14 fonts, out of 8000000 for 9000 48 | 957 hyphenation exceptions out of 8191 49 | 23i,0n,17p,147b,36s stack positions out of 5000i,500n,10000p,200000b,80000s 50 | ./test.tex:2: ==> Fatal error occurred, no output PDF file produced! 51 | -------------------------------------------------------------------------------- /run_sed: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python2 2 | 3 | """Run sed from a script, but do it as though it is being used in a Makefile. 4 | 5 | The difference between this and its use in the makefile itself is that here we 6 | don't escape $ to $$. 7 | """ 8 | 9 | from __future__ import print_function, division 10 | 11 | import os 12 | import sys 13 | 14 | from optparse import OptionParser 15 | from util import template 16 | 17 | def main(opts, args): 18 | ns = template.Template() 19 | 20 | cmd_args = ["sed"] 21 | text = ns.expand_file(args[0], 22 | variables=opts.sed_args, 23 | transform_after=ns.xfunc_sed_lines_to_args()) 24 | cmd_args.extend(text.split('\n')) 25 | cmd_args.extend(args[1:]) 26 | 27 | if opts.show_cmd: 28 | import pprint 29 | pprint.pprint(cmd_args, stream=sys.stderr) 30 | print("sed args:") 31 | pprint.pprint(opts.sed_args) 32 | 33 | # Ensure that sed still works with international characters (and doesn't just 34 | # hang) 35 | os.putenv("LANG", "C") 36 | with os.popen(" ".join(cmd_args)) as f: 37 | print(f.read()) 38 | 39 | def on_sed_arg(option, opt_str, value, parser, *args, **kwargs): 40 | pieces = value.split('=', 1) 41 | if len(pieces) != 2: 42 | raise ValueError( 43 | "invalid sed argument: expected 'name=val', got {0!r}".format(value)) 44 | parser.values.ensure_value("sed_args", {})[pieces[0]] = pieces[1] 45 | 46 | if __name__ == '__main__': 47 | op = OptionParser() 48 | op.add_option("-c", "--show_cmd", dest="show_cmd", default=False, 49 | action="store_true", help="show sed script") 50 | op.add_option("-a", "--arg", action="callback", callback=on_sed_arg, 51 | type="string", 52 | help="add an argument to the sed script") 53 | 54 | opts, args = op.parse_args() 55 | opts.ensure_value("sed_args", {}) 56 | main(opts, args) 57 | -------------------------------------------------------------------------------- /paragraphs.sed: -------------------------------------------------------------------------------- 1 | # This uses a neat trick from the Sed & Awk Book from O'Reilly: 2 | # Ensure that the last line looks like the end of a paragraph; if it isn't 3 | # blank, hold it and blank it out. 4 | ${ 5 | /^$/!{ 6 | H 7 | s/.*// 8 | } 9 | } 10 | # Non-blank lines get held in the hold buffer 11 | /^$/!{ 12 | H 13 | d 14 | } 15 | # Blank lines signify the end of a paragraph. 16 | # Swap blank into hold buffer (bringing paragraph into pattern buffer). 17 | # Move newline prefix to end of paragraph. 18 | /^$/{ 19 | x 20 | s/^\(\n\)\(.*\)/\2\1/ 21 | } 22 | 23 | # Each P inside of :: represents a paragraph that we need to acquire. When we 24 | # see two or more P, we reduce the number by one, append the recently acquired 25 | # paragraph to the pattern space, then hold the whole thing and delete the 26 | # pattern space. This puts the most recent paragraph into the hold buffer and 27 | # starts the process over with paragraph accumulation. 28 | # When discovering that we need, e.g., three more paragraphs, we can do the 29 | # following: 30 | # 31 | # s/^/::PPP::/ 32 | # G 33 | # h 34 | # d 35 | # 36 | # This prefixes the current paragraph with the number of paragraphs needed, 37 | # appends the contents of the hold space (a single newline after paragraph 38 | # processing), puts everything back into the hold space, and deletes the 39 | # pattern space (looping back to the beginning of the script, where paragraph 40 | # processing begins). See "needonemore" for a convenience label that you can 41 | # branch to for adding one paragraph. 42 | 43 | /^::P\(P\{1,\}\)::/{ 44 | s//::\1::/ 45 | G 46 | h 47 | d 48 | } 49 | 50 | # If we have exactly one P, then we swap it out for a zero and let processing 51 | # continue (after :start). 52 | 53 | /^::P::/{ 54 | s//::0::/ 55 | G 56 | } 57 | 58 | b start 59 | 60 | # Convenience subroutines 61 | 62 | :needonemore 63 | s/^/::P::/ 64 | G 65 | h 66 | d 67 | 68 | :needtwomore 69 | s/^/::PP::/ 70 | G 71 | h 72 | d 73 | 74 | :needthreemore 75 | s/^/::PPP::/ 76 | G 77 | h 78 | d 79 | 80 | # Start regular processing (this file is intended to be a preamble) 81 | :start 82 | -------------------------------------------------------------------------------- /color-tex.sed: -------------------------------------------------------------------------------- 1 | #(##defaults(color_error="", color_pages="

", color_success="", 2 | # color_reset="", color_warning="", color_overfull="", 3 | # color_underfull="") 4 | ##) 5 | # 6 | # This uses a neat trick from the Sed & Awk Book from O'Reilly: 7 | # 1) If a line has a single ending paren, delete it to make a blank line (so 8 | # that we catch the first error, which is not always preceded by a blank 9 | # line). 10 | # 2) Ensure that the last line of the file gets appended to the hold buffer, 11 | # and blank it out to trigger end-of-paragraph logic below. 12 | # 3) When encountering a blank line (LaTeX output helpfully breaks output on 13 | # newlines) 14 | # a) swap the hold buffer (containing the paragraph) into the pattern buffer (putting a blank line into the hold buffer), 15 | # b) remove the newline at the beginning (don't ask), 16 | # c) apply any colorizing substitutions necessary to ensure happiness. 17 | # d) get the newline out of the hold buffer and append it 18 | # e) profit! (print) 19 | # 4) Anything not colorized is deleted, unless in verbose mode. 20 | ${ 21 | /^$/!{ 22 | H 23 | s/.*// 24 | } 25 | } 26 | /^$/!{ 27 | H 28 | d 29 | } 30 | /^$/{ 31 | x 32 | s/^\n// 33 | /Output written on /{ 34 | s/.*Output written on \([^(]*\) (\([^)]\{1,\}\)).*/Success! Wrote \2 to \1/ 35 | s/[[:digit:]]\{1,\}/(##color_pages##)&(##color_reset##)/g 36 | s/Success!/(##color_success##)&(##color_reset##)/g 37 | s/to \(.*\)$/to (##color_success##)\1(##color_reset##)/ 38 | b end 39 | } 40 | / *LaTeX Error:.*/{ 41 | s/.*\( *LaTeX Error:.*\)/\1/ 42 | b error 43 | } 44 | /^[^[:cntrl:]:]*:[[:digit:]]\{1,\}:/b error 45 | /.*Warning:.*/{ 46 | s//(##color_warning##)&(##color_reset##)/ 47 | b end 48 | } 49 | /Underfull.*/{ 50 | s/.*\(Underfull.*\)/(##color_underfull##)\1(##color_reset##)/ 51 | b end 52 | } 53 | /Overfull.*/{ 54 | s/.*\(Overfull.*\)/(##color_overfull##)\1(##color_reset##)/ 55 | b end 56 | } 57 | d 58 | 59 | :error 60 | s/.*/(##color_error##)&(##color_reset##)/ 61 | b end 62 | 63 | :end 64 | G 65 | } 66 | -------------------------------------------------------------------------------- /test-gen-logs.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | """Generate .log files for all .tex files in all test directories.""" 4 | 5 | import os 6 | import os.path 7 | import subprocess 8 | import sys 9 | import util.ensure_version 10 | 11 | commands = "latex", "pdflatex", "xelatex" 12 | 13 | rm_ext = "dvi", "pdf", "aux", "out" 14 | 15 | if len(sys.argv) == 2: 16 | initial_dir = os.path.join("test", sys.argv[1]) 17 | else: 18 | initial_dir = "test" 19 | 20 | if not os.path.isdir(initial_dir): 21 | print >>sys.stderr, "Directory %s does not exist - cannot generate logs" % initial_dir 22 | sys.exit(1) 23 | 24 | print >>sys.stderr, "Generating logs in %s" % initial_dir 25 | 26 | last_dir = None 27 | 28 | for dirpath, dirnames, filenames in os.walk(initial_dir): 29 | if os.path.basename(dirpath) == "texmf": 30 | continue 31 | 32 | env = os.environ.copy() 33 | if "texmf" in dirnames: 34 | env["TEXINPUTS"] = "./texmf::" 35 | 36 | for fname in filenames: 37 | name, ext = os.path.splitext(fname) 38 | if ext != ".tex": 39 | continue 40 | 41 | print("Building {0}".format(os.path.join(dirpath, name))) 42 | 43 | for command in commands: 44 | texinputs = env.get("TEXINPUTS") 45 | if texinputs: 46 | print "TEXINPUTS=%s" % texinputs 47 | print "Running %r in %r" % (command, dirpath) 48 | ret = subprocess.call(args=(command, 49 | "-interaction=batchmode", 50 | "-file-line-error", 51 | "-recorder", 52 | name), 53 | cwd=dirpath, 54 | env=env) 55 | subprocess.call(args=("mv", "-f", "{0}.log".format(name), 56 | "log.{0}--{1}".format(name, command)), 57 | cwd=dirpath) 58 | 59 | subprocess.call(args=("mv", "-f", "{0}.fls".format(name), 60 | "fls.{0}--{1}".format(name, command)), 61 | cwd=dirpath) 62 | 63 | rm_files = ["{0}.{1}".format(name, x) for x in rm_ext] 64 | rm_args = ["rm", "-f"] 65 | subprocess.call(args=(rm_args + rm_files), cwd=dirpath) 66 | -------------------------------------------------------------------------------- /test/missing-dollar/log.test--xelatex: -------------------------------------------------------------------------------- 1 | This is XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013) (format=xelatex 2013.5.30) 22 AUG 2014 08:31 2 | entering extended mode 3 | restricted \write18 enabled. 4 | file:line:error style messages enabled. 5 | %&-line parsing enabled. 6 | **test 7 | (./test.tex 8 | LaTeX2e <2011/06/27> 9 | Babel <3.9f> and hyphenation patterns for 78 languages loaded. 10 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls 11 | Document Class: article 2007/10/19 v1.4h Standard LaTeX document class 12 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo 13 | File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option) 14 | ) 15 | \c@part=\count80 16 | \c@section=\count81 17 | \c@subsection=\count82 18 | \c@subsubsection=\count83 19 | \c@paragraph=\count84 20 | \c@subparagraph=\count85 21 | \c@figure=\count86 22 | \c@table=\count87 23 | \abovecaptionskip=\skip41 24 | \belowcaptionskip=\skip42 25 | \bibindent=\dimen102 26 | ) (/usr/local/texlive/2013/texmf-dist/tex/latex/base/inputenc.sty 27 | Package: inputenc 2008/03/30 v1.1d Input encoding file 28 | \inpenc@prehook=\toks14 29 | \inpenc@posthook=\toks15 30 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/latin1.def 31 | File: latin1.def 2008/03/30 v1.1d Input encoding file 32 | )) 33 | No file test.aux. 34 | \openout1 = `test.aux'. 35 | 36 | LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 3. 37 | LaTeX Font Info: ... okay on input line 3. 38 | LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 3. 39 | LaTeX Font Info: ... okay on input line 3. 40 | LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 3. 41 | LaTeX Font Info: ... okay on input line 3. 42 | LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 3. 43 | LaTeX Font Info: ... okay on input line 3. 44 | LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 3. 45 | LaTeX Font Info: ... okay on input line 3. 46 | LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 3. 47 | LaTeX Font Info: ... okay on input line 3. 48 | [1 49 | 50 | ] (./test.aux) ) 51 | Here is how much of TeX's memory you used: 52 | 242 strings out of 493938 53 | 2811 string characters out of 6148857 54 | 52067 words of memory out of 5000000 55 | 3628 multiletter control sequences out of 15000+600000 56 | 3640 words of font info for 14 fonts, out of 8000000 for 9000 57 | 1144 hyphenation exceptions out of 8191 58 | 23i,4n,17p,160b,107s stack positions out of 5000i,500n,10000p,200000b,80000s 59 | 60 | Output written on test.pdf (1 page). 61 | -------------------------------------------------------------------------------- /test/long-missing-input/log.test--latex: -------------------------------------------------------------------------------- 1 | This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013) (format=latex 2013.5.30) 22 AUG 2014 08:31 2 | entering extended mode 3 | restricted \write18 enabled. 4 | file:line:error style messages enabled. 5 | %&-line parsing enabled. 6 | **test 7 | (./test.tex 8 | LaTeX2e <2011/06/27> 9 | Babel <3.9f> and hyphenation patterns for 78 languages loaded. 10 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls 11 | Document Class: article 2007/10/19 v1.4h Standard LaTeX document class 12 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo 13 | File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option) 14 | ) 15 | \c@part=\count79 16 | \c@section=\count80 17 | \c@subsection=\count81 18 | \c@subsubsection=\count82 19 | \c@paragraph=\count83 20 | \c@subparagraph=\count84 21 | \c@figure=\count85 22 | \c@table=\count86 23 | \abovecaptionskip=\skip41 24 | \belowcaptionskip=\skip42 25 | \bibindent=\dimen102 26 | ) 27 | No file test.aux. 28 | \openout1 = `test.aux'. 29 | 30 | LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 3. 31 | LaTeX Font Info: ... okay on input line 3. 32 | LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 3. 33 | LaTeX Font Info: ... okay on input line 3. 34 | LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 3. 35 | LaTeX Font Info: ... okay on input line 3. 36 | LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 3. 37 | LaTeX Font Info: ... okay on input line 3. 38 | LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 3. 39 | LaTeX Font Info: ... okay on input line 3. 40 | LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 3. 41 | LaTeX Font Info: ... okay on input line 3. 42 | 43 | ! LaTeX Error: File `results/pecfp_smt_disp_iss_prof_fifo_4_uops_ready_disp_iss 44 | ued_less_ctr123.tex' not found. 45 | 46 | Type X to quit or to proceed, 47 | or enter new name. (Default extension: tex) 48 | 49 | Enter file name: 50 | ./test.tex:5: Emergency stop. 51 | 52 | 53 | l.5 ...o_4_uops_ready_disp_issued_less_ctr123.tex} 54 | ^^M 55 | *** (cannot \read from terminal in nonstop modes) 56 | 57 | 58 | Here is how much of TeX's memory you used: 59 | 197 strings out of 493316 60 | 2159 string characters out of 6137930 61 | 52155 words of memory out of 5000000 62 | 3739 multiletter control sequences out of 15000+600000 63 | 3640 words of font info for 14 fonts, out of 8000000 for 9000 64 | 957 hyphenation exceptions out of 8191 65 | 23i,0n,17p,131b,36s stack positions out of 5000i,500n,10000p,200000b,80000s 66 | No pages of output. 67 | -------------------------------------------------------------------------------- /test/long-missing-input/log.test--xelatex: -------------------------------------------------------------------------------- 1 | This is XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013) (format=xelatex 2013.5.30) 22 AUG 2014 08:31 2 | entering extended mode 3 | restricted \write18 enabled. 4 | file:line:error style messages enabled. 5 | %&-line parsing enabled. 6 | **test 7 | (./test.tex 8 | LaTeX2e <2011/06/27> 9 | Babel <3.9f> and hyphenation patterns for 78 languages loaded. 10 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls 11 | Document Class: article 2007/10/19 v1.4h Standard LaTeX document class 12 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo 13 | File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option) 14 | ) 15 | \c@part=\count80 16 | \c@section=\count81 17 | \c@subsection=\count82 18 | \c@subsubsection=\count83 19 | \c@paragraph=\count84 20 | \c@subparagraph=\count85 21 | \c@figure=\count86 22 | \c@table=\count87 23 | \abovecaptionskip=\skip41 24 | \belowcaptionskip=\skip42 25 | \bibindent=\dimen102 26 | ) 27 | No file test.aux. 28 | \openout1 = `test.aux'. 29 | 30 | LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 3. 31 | LaTeX Font Info: ... okay on input line 3. 32 | LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 3. 33 | LaTeX Font Info: ... okay on input line 3. 34 | LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 3. 35 | LaTeX Font Info: ... okay on input line 3. 36 | LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 3. 37 | LaTeX Font Info: ... okay on input line 3. 38 | LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 3. 39 | LaTeX Font Info: ... okay on input line 3. 40 | LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 3. 41 | LaTeX Font Info: ... okay on input line 3. 42 | 43 | ! LaTeX Error: File `results/pecfp_smt_disp_iss_prof_fifo_4_uops_ready_disp_iss 44 | ued_less_ctr123.tex' not found. 45 | 46 | Type X to quit or to proceed, 47 | or enter new name. (Default extension: tex) 48 | 49 | Enter file name: 50 | ./test.tex:5: Emergency stop. 51 | 52 | 53 | l.5 ...o_4_uops_ready_disp_issued_less_ctr123.tex} 54 | ^^M 55 | *** (cannot \read from terminal in nonstop modes) 56 | 57 | 58 | Here is how much of TeX's memory you used: 59 | 196 strings out of 493938 60 | 2075 string characters out of 6148857 61 | 51899 words of memory out of 5000000 62 | 3590 multiletter control sequences out of 15000+600000 63 | 3640 words of font info for 14 fonts, out of 8000000 for 9000 64 | 1144 hyphenation exceptions out of 8191 65 | 23i,0n,17p,131b,36s stack positions out of 5000i,500n,10000p,200000b,80000s 66 | No pages of output. 67 | -------------------------------------------------------------------------------- /test/long-missing-input/log.test--pdflatex: -------------------------------------------------------------------------------- 1 | This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013) (format=pdflatex 2013.5.30) 22 AUG 2014 08:31 2 | entering extended mode 3 | restricted \write18 enabled. 4 | file:line:error style messages enabled. 5 | %&-line parsing enabled. 6 | **test 7 | (./test.tex 8 | LaTeX2e <2011/06/27> 9 | Babel <3.9f> and hyphenation patterns for 78 languages loaded. 10 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls 11 | Document Class: article 2007/10/19 v1.4h Standard LaTeX document class 12 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo 13 | File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option) 14 | ) 15 | \c@part=\count79 16 | \c@section=\count80 17 | \c@subsection=\count81 18 | \c@subsubsection=\count82 19 | \c@paragraph=\count83 20 | \c@subparagraph=\count84 21 | \c@figure=\count85 22 | \c@table=\count86 23 | \abovecaptionskip=\skip41 24 | \belowcaptionskip=\skip42 25 | \bibindent=\dimen102 26 | ) 27 | No file test.aux. 28 | \openout1 = `test.aux'. 29 | 30 | LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 3. 31 | LaTeX Font Info: ... okay on input line 3. 32 | LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 3. 33 | LaTeX Font Info: ... okay on input line 3. 34 | LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 3. 35 | LaTeX Font Info: ... okay on input line 3. 36 | LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 3. 37 | LaTeX Font Info: ... okay on input line 3. 38 | LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 3. 39 | LaTeX Font Info: ... okay on input line 3. 40 | LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 3. 41 | LaTeX Font Info: ... okay on input line 3. 42 | 43 | ! LaTeX Error: File `results/pecfp_smt_disp_iss_prof_fifo_4_uops_ready_disp_iss 44 | ued_less_ctr123.tex' not found. 45 | 46 | Type X to quit or to proceed, 47 | or enter new name. (Default extension: tex) 48 | 49 | Enter file name: 50 | ./test.tex:5: Emergency stop. 51 | 52 | 53 | l.5 ...o_4_uops_ready_disp_issued_less_ctr123.tex} 54 | ^^M 55 | *** (cannot \read from terminal in nonstop modes) 56 | 57 | 58 | Here is how much of TeX's memory you used: 59 | 197 strings out of 493315 60 | 2159 string characters out of 6137904 61 | 52158 words of memory out of 5000000 62 | 3739 multiletter control sequences out of 15000+600000 63 | 3640 words of font info for 14 fonts, out of 8000000 for 9000 64 | 957 hyphenation exceptions out of 8191 65 | 23i,0n,17p,131b,36s stack positions out of 5000i,500n,10000p,200000b,80000s 66 | ./test.tex:5: ==> Fatal error occurred, no output PDF file produced! 67 | -------------------------------------------------------------------------------- /test/runaway-caption/log.test--latex: -------------------------------------------------------------------------------- 1 | This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013) (format=latex 2013.5.30) 11 JUN 2015 09:47 2 | entering extended mode 3 | restricted \write18 enabled. 4 | file:line:error style messages enabled. 5 | %&-line parsing enabled. 6 | **test 7 | (./test.tex 8 | LaTeX2e <2011/06/27> 9 | Babel <3.9f> and hyphenation patterns for 78 languages loaded. 10 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls 11 | Document Class: article 2007/10/19 v1.4h Standard LaTeX document class 12 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo 13 | File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option) 14 | ) 15 | \c@part=\count79 16 | \c@section=\count80 17 | \c@subsection=\count81 18 | \c@subsubsection=\count82 19 | \c@paragraph=\count83 20 | \c@subparagraph=\count84 21 | \c@figure=\count85 22 | \c@table=\count86 23 | \abovecaptionskip=\skip41 24 | \belowcaptionskip=\skip42 25 | \bibindent=\dimen102 26 | ) 27 | No file test.aux. 28 | \openout1 = `test.aux'. 29 | 30 | LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 2. 31 | LaTeX Font Info: ... okay on input line 2. 32 | LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 2. 33 | LaTeX Font Info: ... okay on input line 2. 34 | LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 2. 35 | LaTeX Font Info: ... okay on input line 2. 36 | LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 2. 37 | LaTeX Font Info: ... okay on input line 2. 38 | LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 2. 39 | LaTeX Font Info: ... okay on input line 2. 40 | LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 2. 41 | LaTeX Font Info: ... okay on input line 2. 42 | ) 43 | Runaway argument? 44 | {We forgot the closing brace on this caption! \end {figure} \end {doc\ETC. 45 | ! File ended while scanning use of \@xdblarg. 46 | 47 | \par 48 | <*> test 49 | 50 | I suspect you have forgotten a `}', causing me 51 | to read past where you wanted me to stop. 52 | I'll try to recover; but if the error is serious, 53 | you'd better type `E' or `X' now and fix your file. 54 | 55 | ! Emergency stop. 56 | <*> test 57 | 58 | *** (job aborted, no legal \end found) 59 | 60 | 61 | Here is how much of TeX's memory you used: 62 | 195 strings out of 493316 63 | 2086 string characters out of 6137930 64 | 52155 words of memory out of 5000000 65 | 3739 multiletter control sequences out of 15000+600000 66 | 3640 words of font info for 14 fonts, out of 8000000 for 9000 67 | 957 hyphenation exceptions out of 8191 68 | 23i,1n,17p,147b,100s stack positions out of 5000i,500n,10000p,200000b,80000s 69 | No pages of output. 70 | -------------------------------------------------------------------------------- /test/runaway-caption/log.test--xelatex: -------------------------------------------------------------------------------- 1 | This is XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013) (format=xelatex 2013.5.30) 11 JUN 2015 09:47 2 | entering extended mode 3 | restricted \write18 enabled. 4 | file:line:error style messages enabled. 5 | %&-line parsing enabled. 6 | **test 7 | (./test.tex 8 | LaTeX2e <2011/06/27> 9 | Babel <3.9f> and hyphenation patterns for 78 languages loaded. 10 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls 11 | Document Class: article 2007/10/19 v1.4h Standard LaTeX document class 12 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo 13 | File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option) 14 | ) 15 | \c@part=\count80 16 | \c@section=\count81 17 | \c@subsection=\count82 18 | \c@subsubsection=\count83 19 | \c@paragraph=\count84 20 | \c@subparagraph=\count85 21 | \c@figure=\count86 22 | \c@table=\count87 23 | \abovecaptionskip=\skip41 24 | \belowcaptionskip=\skip42 25 | \bibindent=\dimen102 26 | ) 27 | No file test.aux. 28 | \openout1 = `test.aux'. 29 | 30 | LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 2. 31 | LaTeX Font Info: ... okay on input line 2. 32 | LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 2. 33 | LaTeX Font Info: ... okay on input line 2. 34 | LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 2. 35 | LaTeX Font Info: ... okay on input line 2. 36 | LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 2. 37 | LaTeX Font Info: ... okay on input line 2. 38 | LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 2. 39 | LaTeX Font Info: ... okay on input line 2. 40 | LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 2. 41 | LaTeX Font Info: ... okay on input line 2. 42 | ) 43 | Runaway argument? 44 | {We forgot the closing brace on this caption! \end {figure} \end {doc\ETC. 45 | ! File ended while scanning use of \@xdblarg. 46 | 47 | \par 48 | <*> test 49 | 50 | I suspect you have forgotten a `}', causing me 51 | to read past where you wanted me to stop. 52 | I'll try to recover; but if the error is serious, 53 | you'd better type `E' or `X' now and fix your file. 54 | 55 | ! Emergency stop. 56 | <*> test 57 | 58 | *** (job aborted, no legal \end found) 59 | 60 | 61 | Here is how much of TeX's memory you used: 62 | 194 strings out of 493938 63 | 2002 string characters out of 6148857 64 | 51899 words of memory out of 5000000 65 | 3590 multiletter control sequences out of 15000+600000 66 | 3640 words of font info for 14 fonts, out of 8000000 for 9000 67 | 1144 hyphenation exceptions out of 8191 68 | 23i,1n,17p,147b,100s stack positions out of 5000i,500n,10000p,200000b,80000s 69 | No pages of output. 70 | -------------------------------------------------------------------------------- /test/runaway-caption/log.test--pdflatex: -------------------------------------------------------------------------------- 1 | This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013) (format=pdflatex 2013.5.30) 11 JUN 2015 09:47 2 | entering extended mode 3 | restricted \write18 enabled. 4 | file:line:error style messages enabled. 5 | %&-line parsing enabled. 6 | **test 7 | (./test.tex 8 | LaTeX2e <2011/06/27> 9 | Babel <3.9f> and hyphenation patterns for 78 languages loaded. 10 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls 11 | Document Class: article 2007/10/19 v1.4h Standard LaTeX document class 12 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo 13 | File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option) 14 | ) 15 | \c@part=\count79 16 | \c@section=\count80 17 | \c@subsection=\count81 18 | \c@subsubsection=\count82 19 | \c@paragraph=\count83 20 | \c@subparagraph=\count84 21 | \c@figure=\count85 22 | \c@table=\count86 23 | \abovecaptionskip=\skip41 24 | \belowcaptionskip=\skip42 25 | \bibindent=\dimen102 26 | ) 27 | No file test.aux. 28 | \openout1 = `test.aux'. 29 | 30 | LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 2. 31 | LaTeX Font Info: ... okay on input line 2. 32 | LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 2. 33 | LaTeX Font Info: ... okay on input line 2. 34 | LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 2. 35 | LaTeX Font Info: ... okay on input line 2. 36 | LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 2. 37 | LaTeX Font Info: ... okay on input line 2. 38 | LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 2. 39 | LaTeX Font Info: ... okay on input line 2. 40 | LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 2. 41 | LaTeX Font Info: ... okay on input line 2. 42 | ) 43 | Runaway argument? 44 | {We forgot the closing brace on this caption! \end {figure} \end {doc\ETC. 45 | ! File ended while scanning use of \@xdblarg. 46 | 47 | \par 48 | <*> test 49 | 50 | I suspect you have forgotten a `}', causing me 51 | to read past where you wanted me to stop. 52 | I'll try to recover; but if the error is serious, 53 | you'd better type `E' or `X' now and fix your file. 54 | 55 | ! Emergency stop. 56 | <*> test 57 | 58 | *** (job aborted, no legal \end found) 59 | 60 | 61 | Here is how much of TeX's memory you used: 62 | 195 strings out of 493315 63 | 2086 string characters out of 6137904 64 | 52158 words of memory out of 5000000 65 | 3739 multiletter control sequences out of 15000+600000 66 | 3640 words of font info for 14 fonts, out of 8000000 for 9000 67 | 957 hyphenation exceptions out of 8191 68 | 23i,1n,17p,147b,100s stack positions out of 5000i,500n,10000p,200000b,80000s 69 | ! ==> Fatal error occurred, no output PDF file produced! 70 | -------------------------------------------------------------------------------- /dependency-chart.dot: -------------------------------------------------------------------------------- 1 | digraph "g" { 2 | rankdir=TB 3 | size="9,9" 4 | edge [fontsize=12 weight=10] 5 | node [shape=box fontsize=14 style=rounded] 6 | 7 | eps [ 8 | shape=Mrecord 9 | label="{{ GNUplot| GZip| Dot| XFig}| eps}" 10 | ] 11 | pstex [label="%.pstex"] 12 | pstex_t [label="%.pstex_t"] 13 | tex_outputs [shape=point] 14 | extra_tex_files [shape=point] 15 | gpi_data [label=""] 16 | gpi_includes [label="_include_.gpi"] 17 | aux [label="%.aux"] 18 | fls [label="%.fls"] 19 | idx [label="%.idx"] 20 | glo [label="%.glo"] 21 | ind [label="%.ind"] 22 | log [label="%.log"] 23 | tex_sh [label="%.tex.sh"] 24 | rst [label="%.rst"] 25 | tex [ 26 | shape=record 27 | label=" %.tex| _include_.tex" 28 | ] 29 | include_aux [label="_include_.aux"] 30 | file_bib [label=".bib"] 31 | bbl [label="%.bbl"] 32 | dvi [label="%.dvi"] 33 | ps [label="%.ps"] 34 | pdf [label="%.pdf"] 35 | fig [label=".fig"] 36 | dot [label=".dot"] 37 | gpi [label=".gpi"] 38 | eps_gz [label=".eps.gz"] 39 | 40 | gpi_files [shape=point] 41 | 42 | rst -> tex:tex [label="reST"] 43 | tex_sh -> tex:tex [label="sh"] 44 | tex_pl -> tex:tex [label="perl"] 45 | tex_py -> tex:tex [label="python"] 46 | tex -> tex_outputs [label="latex"] 47 | tex_outputs -> dvi 48 | tex_outputs -> aux 49 | tex_outputs -> log 50 | tex_outputs -> fls 51 | tex_outputs -> idx 52 | tex_outputs -> include_aux 53 | aux -> bbl [label="bibtex"] 54 | file_bib -> bbl [label="bibtex"] 55 | idx -> ind [label="makeindex"] 56 | glo -> gls [label="makeindex"] 57 | nlo -> nls [label="makeindex"] 58 | gls -> extra_tex_files 59 | nls -> extra_tex_files 60 | ind -> extra_tex_files 61 | bbl -> extra_tex_files 62 | eps -> extra_tex_files 63 | extra_tex_files -> dvi [label="latex"] 64 | gpi_files -> eps:gpi [label="gnuplot"] 65 | gpi -> gpi_files 66 | gpi_data -> gpi_files 67 | gpi_includes -> gpi_files 68 | eps_gz -> eps:epsgz [label="gunzip"] 69 | fig -> eps:fig [label="fig2dev"] 70 | fig -> pstex [label="fig2dev"] 71 | fig -> pstex_t [label="fig2dev"] 72 | pstex -> pstex_t [label="fig2dev"] 73 | dot -> eps:dot [label="dot"] 74 | dvi -> ps [label="dvips"] 75 | include_aux -> bbl [label="bibtex"] 76 | ps -> pdf [label="ps2pdf"] 77 | 78 | edge [ color=blue label="" style=dotted weight=1 fontcolor=blue] 79 | fls -> tex:include [label="INPUT: *.tex"] 80 | fls -> file_bib [label="INPUT: *.aux"] 81 | aux -> file_bib [label="\\bibdata{...}"] 82 | include_aux -> file_bib [label="\\bibdata{...}"] 83 | log -> gpi [label="Graphic file"] 84 | log -> fig [label="Graphic file"] 85 | log -> eps_gz [label="Graphic file"] 86 | log -> dot [label="Graphic file"] 87 | log -> idx [label="No file *.ind"] 88 | log -> glo [label="No file *.gls"] 89 | log -> nlo [label="No file *.nls"] 90 | gpi -> gpi_data [label="plot '...'"] 91 | gpi -> gpi_includes [label="load '...'"] 92 | tex:tex -> ps [label="paper"] 93 | tex:tex -> pdf [label="embedding"] 94 | } 95 | -------------------------------------------------------------------------------- /oldtest/graph.dot: -------------------------------------------------------------------------------- 1 | digraph "g" { 2 | rankdir=TB 3 | size="9,9" 4 | edge [fontsize=12 weight=10] 5 | node [shape=box fontsize=14 style=rounded] 6 | 7 | eps [ 8 | shape=Mrecord 9 | label="{{ GNUplot| GZip| Dot| XFig}| eps}" 10 | ] 11 | pstex [label="%.pstex"] 12 | pstex_t [label="%.pstex_t"] 13 | tex_outputs [shape=point] 14 | extra_tex_files [shape=point] 15 | gpi_data [label=""] 16 | gpi_includes [label="_include_.gpi"] 17 | aux [label="%.aux"] 18 | fls [label="%.fls"] 19 | idx [label="%.idx"] 20 | glo [label="%.glo"] 21 | ind [label="%.ind"] 22 | log [label="%.log"] 23 | tex_sh [label="%.tex.sh"] 24 | rst [label="%.rst"] 25 | tex [ 26 | shape=record 27 | label=" %.tex| _include_.tex" 28 | ] 29 | include_aux [label="_include_.aux"] 30 | file_bib [label=".bib"] 31 | bbl [label="%.bbl"] 32 | dvi [label="%.dvi"] 33 | ps [label="%.ps"] 34 | pdf [label="%.pdf"] 35 | fig [label=".fig"] 36 | dot [label=".dot"] 37 | gpi [label=".gpi"] 38 | eps_gz [label=".eps.gz"] 39 | 40 | gpi_files [shape=point] 41 | 42 | rst -> tex:tex [label="reST"] 43 | tex_sh -> tex:tex [label="sh"] 44 | tex_pl -> tex:tex [label="perl"] 45 | tex_py -> tex:tex [label="python"] 46 | tex -> tex_outputs [label="latex"] 47 | tex_outputs -> dvi 48 | tex_outputs -> aux 49 | tex_outputs -> log 50 | tex_outputs -> fls 51 | tex_outputs -> idx 52 | tex_outputs -> include_aux 53 | aux -> bbl [label="bibtex"] 54 | file_bib -> bbl [label="bibtex"] 55 | idx -> ind [label="makeindex"] 56 | glo -> gls [label="makeindex"] 57 | nlo -> nls [label="makeindex"] 58 | gls -> extra_tex_files 59 | nls -> extra_tex_files 60 | ind -> extra_tex_files 61 | bbl -> extra_tex_files 62 | eps -> extra_tex_files 63 | extra_tex_files -> dvi [label="latex"] 64 | gpi_files -> eps:gpi [label="gnuplot"] 65 | gpi -> gpi_files 66 | gpi_data -> gpi_files 67 | gpi_includes -> gpi_files 68 | eps_gz -> eps:epsgz [label="gunzip"] 69 | fig -> eps:fig [label="fig2dev"] 70 | fig -> pstex [label="fig2dev"] 71 | fig -> pstex_t [label="fig2dev"] 72 | pstex -> pstex_t [label="fig2dev"] 73 | dot -> eps:dot [label="dot"] 74 | dvi -> ps [label="dvips"] 75 | include_aux -> bbl [label="bibtex"] 76 | ps -> pdf [label="ps2pdf"] 77 | 78 | edge [ color=blue label="" style=dotted weight=1 fontcolor=blue] 79 | fls -> tex:include [label="INPUT: *.tex"] 80 | fls -> file_bib [label="INPUT: *.aux"] 81 | aux -> file_bib [label="\\bibdata{...}"] 82 | include_aux -> file_bib [label="\\bibdata{...}"] 83 | log -> gpi [label="Graphic file"] 84 | log -> fig [label="Graphic file"] 85 | log -> eps_gz [label="Graphic file"] 86 | log -> dot [label="Graphic file"] 87 | log -> idx [label="No file *.ind"] 88 | log -> glo [label="No file *.gls"] 89 | log -> nlo [label="No file *.nls"] 90 | gpi -> gpi_data [label="plot '...'"] 91 | gpi -> gpi_includes [label="load '...'"] 92 | tex:tex -> ps [label="paper"] 93 | tex:tex -> pdf [label="embedding"] 94 | } 95 | -------------------------------------------------------------------------------- /test/graphic-in-style/log.doc--xelatex: -------------------------------------------------------------------------------- 1 | This is XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013) (format=xelatex 2013.5.30) 4 SEP 2014 15:08 2 | entering extended mode 3 | restricted \write18 enabled. 4 | file:line:error style messages enabled. 5 | %&-line parsing enabled. 6 | **doc 7 | (./doc.tex 8 | LaTeX2e <2011/06/27> 9 | Babel <3.9f> and hyphenation patterns for 78 languages loaded. 10 | (./texmf/myclass.cls 11 | Document Class: myclass 2014/08/22 Test Class 12 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls 13 | Document Class: article 2007/10/19 v1.4h Standard LaTeX document class 14 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo 15 | File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option) 16 | ) 17 | \c@part=\count80 18 | \c@section=\count81 19 | \c@subsection=\count82 20 | \c@subsubsection=\count83 21 | \c@paragraph=\count84 22 | \c@subparagraph=\count85 23 | \c@figure=\count86 24 | \c@table=\count87 25 | \abovecaptionskip=\skip41 26 | \belowcaptionskip=\skip42 27 | \bibindent=\dimen102 28 | ) (/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/graphicx.sty 29 | Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR) 30 | (/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/keyval.sty 31 | Package: keyval 1999/03/16 v1.13 key=value parser (DPC) 32 | \KV@toks@=\toks14 33 | ) (/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/graphics.sty 34 | Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR) 35 | (/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/trig.sty 36 | Package: trig 1999/03/16 v1.09 sin cos tan (DPC) 37 | ) (/usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/graphics.cfg 38 | File: graphics.cfg 2010/04/23 v1.9 graphics configuration of TeX Live 39 | ) 40 | Package graphics Info: Driver file: xetex.def on input line 91. 41 | (/usr/local/texlive/2013/texmf-dist/tex/xelatex/xetex-def/xetex.def 42 | File: xetex.def 2013/04/29 v0.96 LaTeX color/graphics driver for XeTeX (RRM/JK) 43 | 44 | )) 45 | \Gin@req@height=\dimen103 46 | \Gin@req@width=\dimen104 47 | )) 48 | No file doc.aux. 49 | \openout1 = `doc.aux'. 50 | 51 | LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 3. 52 | LaTeX Font Info: ... okay on input line 3. 53 | LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 3. 54 | LaTeX Font Info: ... okay on input line 3. 55 | LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 3. 56 | LaTeX Font Info: ... okay on input line 3. 57 | LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 3. 58 | LaTeX Font Info: ... okay on input line 3. 59 | LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 3. 60 | LaTeX Font Info: ... okay on input line 3. 61 | LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 3. 62 | LaTeX Font Info: ... okay on input line 3. 63 | File: graphic.pdf Graphic file (type QTm) 64 | [1 65 | 66 | ] (./doc.aux) ) 67 | Here is how much of TeX's memory you used: 68 | 548 strings out of 493938 69 | 6615 string characters out of 6148857 70 | 58144 words of memory out of 5000000 71 | 3915 multiletter control sequences out of 15000+600000 72 | 3640 words of font info for 14 fonts, out of 8000000 for 9000 73 | 1144 hyphenation exceptions out of 8191 74 | 32i,4n,21p,192b,107s stack positions out of 5000i,500n,10000p,200000b,80000s 75 | 76 | Output written on doc.pdf (1 page). 77 | -------------------------------------------------------------------------------- /test/undefined-sequence/log.test--xelatex: -------------------------------------------------------------------------------- 1 | This is XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013) (format=xelatex 2013.5.30) 22 AUG 2014 08:31 2 | entering extended mode 3 | restricted \write18 enabled. 4 | file:line:error style messages enabled. 5 | %&-line parsing enabled. 6 | **test 7 | (./test.tex 8 | LaTeX2e <2011/06/27> 9 | Babel <3.9f> and hyphenation patterns for 78 languages loaded. 10 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls 11 | Document Class: article 2007/10/19 v1.4h Standard LaTeX document class 12 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo 13 | File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option) 14 | ) 15 | \c@part=\count80 16 | \c@section=\count81 17 | \c@subsection=\count82 18 | \c@subsubsection=\count83 19 | \c@paragraph=\count84 20 | \c@subparagraph=\count85 21 | \c@figure=\count86 22 | \c@table=\count87 23 | \abovecaptionskip=\skip41 24 | \belowcaptionskip=\skip42 25 | \bibindent=\dimen102 26 | ) 27 | ./test.tex:3: Undefined control sequence. 28 | l.3 \titl 29 | {broken control sequence (misspelled `title')} 30 | The control sequence at the end of the top line 31 | of your error message was never \def'ed. If you have 32 | misspelled it (e.g., `\hobx'), type `I' and the correct 33 | spelling (e.g., `I\hbox'). Otherwise just continue, 34 | and I'll forget about whatever was undefined. 35 | 36 | 37 | ./test.tex:3: LaTeX Error: Missing \begin{document}. 38 | 39 | See the LaTeX manual or LaTeX Companion for explanation. 40 | Type H for immediate help. 41 | ... 42 | 43 | l.3 \titl{b 44 | roken control sequence (misspelled `title')} 45 | You're in trouble here. Try typing to proceed. 46 | If that doesn't work, type X to quit. 47 | 48 | No file test.aux. 49 | \openout1 = `test.aux'. 50 | 51 | LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 5. 52 | LaTeX Font Info: ... okay on input line 5. 53 | LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 5. 54 | LaTeX Font Info: ... okay on input line 5. 55 | LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 5. 56 | LaTeX Font Info: ... okay on input line 5. 57 | LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 5. 58 | LaTeX Font Info: ... okay on input line 5. 59 | LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 5. 60 | LaTeX Font Info: ... okay on input line 5. 61 | LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 5. 62 | LaTeX Font Info: ... okay on input line 5. 63 | ./test.tex:6: Undefined control sequence. 64 | l.6 \halp 65 | 66 | The control sequence at the end of the top line 67 | of your error message was never \def'ed. If you have 68 | misspelled it (e.g., `\hobx'), type `I' and the correct 69 | spelling (e.g., `I\hbox'). Otherwise just continue, 70 | and I'll forget about whatever was undefined. 71 | 72 | [1 73 | 74 | ] (./test.aux) ) 75 | Here is how much of TeX's memory you used: 76 | 197 strings out of 493938 77 | 2028 string characters out of 6148857 78 | 51899 words of memory out of 5000000 79 | 3590 multiletter control sequences out of 15000+600000 80 | 3640 words of font info for 14 fonts, out of 8000000 for 9000 81 | 1144 hyphenation exceptions out of 8191 82 | 23i,4n,17p,131b,107s stack positions out of 5000i,500n,10000p,200000b,80000s 83 | 84 | Output written on test.pdf (1 page). 85 | -------------------------------------------------------------------------------- /test/undefined-sequence/log.test--latex: -------------------------------------------------------------------------------- 1 | This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013) (format=latex 2013.5.30) 22 AUG 2014 08:31 2 | entering extended mode 3 | restricted \write18 enabled. 4 | file:line:error style messages enabled. 5 | %&-line parsing enabled. 6 | **test 7 | (./test.tex 8 | LaTeX2e <2011/06/27> 9 | Babel <3.9f> and hyphenation patterns for 78 languages loaded. 10 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls 11 | Document Class: article 2007/10/19 v1.4h Standard LaTeX document class 12 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo 13 | File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option) 14 | ) 15 | \c@part=\count79 16 | \c@section=\count80 17 | \c@subsection=\count81 18 | \c@subsubsection=\count82 19 | \c@paragraph=\count83 20 | \c@subparagraph=\count84 21 | \c@figure=\count85 22 | \c@table=\count86 23 | \abovecaptionskip=\skip41 24 | \belowcaptionskip=\skip42 25 | \bibindent=\dimen102 26 | ) 27 | ./test.tex:3: Undefined control sequence. 28 | l.3 \titl 29 | {broken control sequence (misspelled `title')} 30 | The control sequence at the end of the top line 31 | of your error message was never \def'ed. If you have 32 | misspelled it (e.g., `\hobx'), type `I' and the correct 33 | spelling (e.g., `I\hbox'). Otherwise just continue, 34 | and I'll forget about whatever was undefined. 35 | 36 | 37 | ./test.tex:3: LaTeX Error: Missing \begin{document}. 38 | 39 | See the LaTeX manual or LaTeX Companion for explanation. 40 | Type H for immediate help. 41 | ... 42 | 43 | l.3 \titl{b 44 | roken control sequence (misspelled `title')} 45 | You're in trouble here. Try typing to proceed. 46 | If that doesn't work, type X to quit. 47 | 48 | No file test.aux. 49 | \openout1 = `test.aux'. 50 | 51 | LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 5. 52 | LaTeX Font Info: ... okay on input line 5. 53 | LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 5. 54 | LaTeX Font Info: ... okay on input line 5. 55 | LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 5. 56 | LaTeX Font Info: ... okay on input line 5. 57 | LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 5. 58 | LaTeX Font Info: ... okay on input line 5. 59 | LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 5. 60 | LaTeX Font Info: ... okay on input line 5. 61 | LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 5. 62 | LaTeX Font Info: ... okay on input line 5. 63 | ./test.tex:6: Undefined control sequence. 64 | l.6 \halp 65 | 66 | The control sequence at the end of the top line 67 | of your error message was never \def'ed. If you have 68 | misspelled it (e.g., `\hobx'), type `I' and the correct 69 | spelling (e.g., `I\hbox'). Otherwise just continue, 70 | and I'll forget about whatever was undefined. 71 | 72 | [1 73 | 74 | ] (./test.aux) ) 75 | Here is how much of TeX's memory you used: 76 | 198 strings out of 493316 77 | 2112 string characters out of 6137930 78 | 52155 words of memory out of 5000000 79 | 3739 multiletter control sequences out of 15000+600000 80 | 3640 words of font info for 14 fonts, out of 8000000 for 9000 81 | 957 hyphenation exceptions out of 8191 82 | 23i,4n,17p,131b,107s stack positions out of 5000i,500n,10000p,200000b,80000s 83 | 84 | Output written on test.dvi (1 page, 268 bytes). 85 | -------------------------------------------------------------------------------- /oldtest/convert.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # strict mode 4 | set -u 5 | 6 | # unmatching globs expand to the empty string 7 | shopt -s nullglob 8 | 9 | function run { 10 | if [ "$JUSTPRINT" = "0" ]; then 11 | $* 12 | else 13 | echo $* 14 | fi 15 | } 16 | 17 | function debug { 18 | [ "$DEBUG" != "0" ] && echo ". $@" >&2 19 | } 20 | 21 | function info { 22 | echo "$@" >&2 23 | } 24 | 25 | function warning { 26 | echo "WARNING: $@" >&2 27 | } 28 | 29 | function error { 30 | echo "ERROR: $@" >&2 31 | } 32 | 33 | function backup-file { 34 | local dfile=${1%.*}.backup.${1##*.} 35 | if [ -e $dfile ]; then 36 | warning "Backup file '$dfile' already exists. Skipping." 37 | else 38 | cp $1 $dfile 39 | fi 40 | echo $dfile 41 | } 42 | 43 | function convert-tex { 44 | local sfile=$1 45 | local dfile=$2 46 | if [ "$JUSTPRINT" = "1" ]; then 47 | echo "Converting tex file $sfile to $dfile" 48 | else 49 | sed \ 50 | -e 's/\.gpi\.eps/.eps/' \ 51 | -e 's/\.gz\.eps/.eps/' \ 52 | $sfile > $dfile 53 | fi 54 | } 55 | 56 | function convert-graphics { 57 | for g in *.eps.gpi; do 58 | newg=${g//.eps.gpi/.gpi} 59 | info "Copying $g to $newg" 60 | run "${MV} $g $newg" 61 | done 62 | } 63 | 64 | function get-graphics { 65 | # We'll handle the .fig.gpi case separately, if ever. I was only using it in 66 | # one place, and it never really worked very well, so I doubt anyone else is 67 | # using it. 68 | echo *.{eps.gpi,eps.gz} 69 | } 70 | 71 | #------------------------------------------------------------------------------ 72 | # Main code 73 | #------------------------------------------------------------------------------ 74 | 75 | # Get command-line parameters 76 | declare -a workdirs 77 | 78 | # Move command (for moving graphics files) 79 | MV=mv 80 | DEBUG=0 81 | JUSTPRINT=0 82 | 83 | for parm in "$@"; do 84 | arg=${parm#*=} 85 | case $parm in 86 | --justprint) 87 | JUSTPRINT=1 88 | ;; 89 | 90 | --debug=*) 91 | if (( arg > 0 )); then 92 | DEBUG=1 93 | fi 94 | if (( arg > 1 )); then 95 | set -x 96 | fi 97 | ;; 98 | 99 | --mv=*) 100 | cmdloc=`which $arg` 101 | if [ "$cmdloc" != "" -a -e "$cmdloc" ]; then 102 | MV=$arg 103 | else 104 | warning "Ignoring invalid move command '$arg'" 105 | fi 106 | ;; 107 | 108 | *) 109 | if [ -d $parm ]; then 110 | workdirs[${#workdirs}]=$parm 111 | else 112 | warning "Ignoring non-directory '$parm'" 113 | fi 114 | ;; 115 | esac 116 | done 117 | 118 | if [ ${#workdirs} = '0' ]; then 119 | error "No directories specified. Exiting" 120 | exit -1 121 | fi 122 | 123 | for workdir in ${workdirs[@]}; do 124 | debug "Changing to directory '$workdir'" 125 | pushd $workdir >/dev/null 126 | graphics=`get-graphics` 127 | debug "Found the following graphics files in '$workdir'" 128 | for g in $graphics; do 129 | debug $g; 130 | done 131 | 132 | if [ "$graphics" != "" ]; then 133 | convert-graphics 134 | else 135 | warning "No graphics to convert in '$workdir'" 136 | fi 137 | info "Converting .tex files" 138 | for texfile in *.tex; do 139 | if [ "$texfile" = "${texfile/.backup//}" ]; then 140 | debug "Converting '$texfile'" 141 | backupfile=`backup-file $texfile` 142 | convert-tex $backupfile $texfile "$graphics" 143 | else 144 | debug "Ignoring backup '$texfile'" 145 | fi 146 | done 147 | popd >/dev/null 148 | done 149 | 150 | -------------------------------------------------------------------------------- /get-graphics.sed: -------------------------------------------------------------------------------- 1 | #(##defaults(stem="TESTSTEM", build_target_extension="pdf")##) 2 | 3 | # Existing graphics files look different than missing files. We still want to 4 | # extract them, though. Also, the paragraph structure is much simpler, so we 5 | # short-circuit paragraph logic and just get the target off the line. 6 | /^File: \(.*\) Graphic file (type [^)]*)/{ 7 | s//\1/ 8 | # If the file has a ps extension, kill that first. 9 | s/\.e\{0,1\}ps$// 10 | b addtargets 11 | } 12 | 13 | #(##include("paragraphs.sed")##) 14 | 15 | /^[^[:cntrl:]:]*:[[:digit:]]\{1,\}:[[:space:][:cntrl:]]*LaTeX[[:space:][:cntrl:]]*Error:[[:space:][:cntrl:]]*File `/{ 16 | # Get rid of trailing newlines for every paragraph, since LaTeX errors are 17 | # often split at arbitrary (not word) boundaries. 18 | s/\n//g 19 | b needonemore 20 | } 21 | # We have all the paragraphs we need - so extract the file name and extensions 22 | /^::0::.*: LaTeX Error: File `/{ 23 | # Request one more paragraph if we ended in a newline. This is a very 24 | # strange corner case that hits us when the filename error line ends in a 25 | # newline, and latex breaks the error line right before that newline 26 | # (creating a double empty line, which looks like an extra empty paragraph). 27 | # Yes, LaTeX log output is that weird. 28 | /\n\n$/{ 29 | s/^::0::// 30 | b needonemore 31 | } 32 | # Kill all newlines, since the filename information can be split across lines 33 | s/\n\{1,\}/ /g 34 | # Collapse spaces 35 | s/[[:space:]]\{1,\}/ /g 36 | # Remove information before filename 37 | s/^.*File `// 38 | # If we have a pdflatex-style error (specifying which extensions are 39 | # allowed), handle that. 40 | /extensions: /{ 41 | # Remove suffix and get extensions 42 | s/' not found\..*extensions: \([^[:space:]]*\).*/::::\1/ 43 | b fileparsed 44 | } 45 | # graphic file names with extensions specified in the .tex file (bad news, 46 | # but it happens, especially with old latex-dvi-ps pipelines) don't give the 47 | # same error, so we generate an empty extension list. 48 | s/' not found\..*/::::/ 49 | :fileparsed 50 | 51 | # If there are no extensions, that typically means that an extension was 52 | # specified. We only want stems (extensions determined dynamically), so 53 | # remove it (but only do so for eps includes - pdf stuff is handled differently). 54 | # Other extensions get labeled "UNKNOWN" so we can at least debug what's happening. 55 | /\(\.e\{0,1\}ps\)::::$/{ 56 | s//::::\1/ 57 | b psext 58 | } 59 | s/\(\.[^.]*\)::::$/:::: UNKNOWN=\1/ 60 | :psext 61 | # Now we have filename::::extensionlist in the pattern space 62 | # Place in the hold buffer, add missing stem comment 63 | h 64 | s/\(.*\)::::\(.*\)/# MISSING stem "\1" - allowed extensions: \2/ 65 | p 66 | # Now get the hold buffer back, get rid of extension list, and call addtargets 67 | g 68 | s/::::.*// 69 | b addtargets 70 | } 71 | 72 | # If we didn't detect something known, trash it and go get another paragraph 73 | d 74 | 75 | :addtargets 76 | # Attempt to deal with filenames that contain spaces 77 | s/[[:space:]]/\\\\\\&/g 78 | # Add -include .gpi.d line in case this is a gnuplot file 79 | h 80 | s/.*/-include &.gpi.d/ 81 | p 82 | g 83 | 84 | # Add graphics source files as dependencies of this file - it makes it rebuild 85 | # when they change. 86 | s!.*!(##stem##).d: $$(call graphics-source,&,(##stem##))! 87 | p 88 | s/.*// 89 | x 90 | # Add graphics dependencies to main document 91 | s!.*!(##stem##).(##build_target_extension##) (##stem##)._graphics: $$(call graphics-target,&,(##stem##))! 92 | p 93 | d 94 | -------------------------------------------------------------------------------- /test/existing-graphics/log.test--xelatex: -------------------------------------------------------------------------------- 1 | This is XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013) (format=xelatex 2013.5.30) 22 AUG 2014 08:31 2 | entering extended mode 3 | restricted \write18 enabled. 4 | file:line:error style messages enabled. 5 | %&-line parsing enabled. 6 | **test 7 | (./test.tex 8 | LaTeX2e <2011/06/27> 9 | Babel <3.9f> and hyphenation patterns for 78 languages loaded. 10 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls 11 | Document Class: article 2007/10/19 v1.4h Standard LaTeX document class 12 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo 13 | File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option) 14 | ) 15 | \c@part=\count80 16 | \c@section=\count81 17 | \c@subsection=\count82 18 | \c@subsubsection=\count83 19 | \c@paragraph=\count84 20 | \c@subparagraph=\count85 21 | \c@figure=\count86 22 | \c@table=\count87 23 | \abovecaptionskip=\skip41 24 | \belowcaptionskip=\skip42 25 | \bibindent=\dimen102 26 | ) (/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/graphicx.sty 27 | Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR) 28 | (/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/keyval.sty 29 | Package: keyval 1999/03/16 v1.13 key=value parser (DPC) 30 | \KV@toks@=\toks14 31 | ) (/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/graphics.sty 32 | Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR) 33 | (/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/trig.sty 34 | Package: trig 1999/03/16 v1.09 sin cos tan (DPC) 35 | ) (/usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/graphics.cfg 36 | File: graphics.cfg 2010/04/23 v1.9 graphics configuration of TeX Live 37 | ) 38 | Package graphics Info: Driver file: xetex.def on input line 91. 39 | (/usr/local/texlive/2013/texmf-dist/tex/xelatex/xetex-def/xetex.def 40 | File: xetex.def 2013/04/29 v0.96 LaTeX color/graphics driver for XeTeX (RRM/JK) 41 | 42 | )) 43 | \Gin@req@height=\dimen103 44 | \Gin@req@width=\dimen104 45 | ) 46 | No file test.aux. 47 | \openout1 = `test.aux'. 48 | 49 | LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 5. 50 | LaTeX Font Info: ... okay on input line 5. 51 | LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 5. 52 | LaTeX Font Info: ... okay on input line 5. 53 | LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 5. 54 | LaTeX Font Info: ... okay on input line 5. 55 | LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 5. 56 | LaTeX Font Info: ... okay on input line 5. 57 | LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 5. 58 | LaTeX Font Info: ... okay on input line 5. 59 | LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 5. 60 | LaTeX Font Info: ... okay on input line 5. 61 | File: g1.pdf Graphic file (type QTm) 62 | 63 | File: g2.pdf Graphic file (type QTm) 64 | 65 | File: g3.pdf Graphic file (type QTm) 66 | 67 | Overfull \hbox (49.5021pt too wide) in paragraph at lines 11--12 68 | [][] 69 | [] 70 | 71 | [1 72 | 73 | ] 74 | File: g4.pdf Graphic file (type QTm) 75 | [2] (./test.aux) ) 76 | Here is how much of TeX's memory you used: 77 | 547 strings out of 493938 78 | 6553 string characters out of 6148857 79 | 57188 words of memory out of 5000000 80 | 3915 multiletter control sequences out of 15000+600000 81 | 3640 words of font info for 14 fonts, out of 8000000 for 9000 82 | 1144 hyphenation exceptions out of 8191 83 | 25i,5n,19p,177b,177s stack positions out of 5000i,500n,10000p,200000b,80000s 84 | 85 | Output written on test.pdf (2 pages). 86 | -------------------------------------------------------------------------------- /test/missing-dollar/log.test--latex: -------------------------------------------------------------------------------- 1 | This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013) (format=latex 2013.5.30) 22 AUG 2014 08:31 2 | entering extended mode 3 | restricted \write18 enabled. 4 | file:line:error style messages enabled. 5 | %&-line parsing enabled. 6 | **test 7 | (./test.tex 8 | LaTeX2e <2011/06/27> 9 | Babel <3.9f> and hyphenation patterns for 78 languages loaded. 10 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls 11 | Document Class: article 2007/10/19 v1.4h Standard LaTeX document class 12 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo 13 | File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option) 14 | ) 15 | \c@part=\count79 16 | \c@section=\count80 17 | \c@subsection=\count81 18 | \c@subsubsection=\count82 19 | \c@paragraph=\count83 20 | \c@subparagraph=\count84 21 | \c@figure=\count85 22 | \c@table=\count86 23 | \abovecaptionskip=\skip41 24 | \belowcaptionskip=\skip42 25 | \bibindent=\dimen102 26 | ) (/usr/local/texlive/2013/texmf-dist/tex/latex/base/inputenc.sty 27 | Package: inputenc 2008/03/30 v1.1d Input encoding file 28 | \inpenc@prehook=\toks14 29 | \inpenc@posthook=\toks15 30 | (/usr/local/texlive/2013/texmf-dist/tex/latex/base/latin1.def 31 | File: latin1.def 2008/03/30 v1.1d Input encoding file 32 | )) 33 | No file test.aux. 34 | \openout1 = `test.aux'. 35 | 36 | LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 3. 37 | LaTeX Font Info: ... okay on input line 3. 38 | LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 3. 39 | LaTeX Font Info: ... okay on input line 3. 40 | LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 3. 41 | LaTeX Font Info: ... okay on input line 3. 42 | LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 3. 43 | LaTeX Font Info: ... okay on input line 3. 44 | LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 3. 45 | LaTeX Font Info: ... okay on input line 3. 46 | LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 3. 47 | LaTeX Font Info: ... okay on input line 3. 48 | ./test.tex:7: Missing $ inserted. 49 | 50 | $ 51 | l.7 ó 52 | 53 | I've inserted a begin-math/end-math symbol since I think 54 | you left one out. Proceed, with fingers crossed. 55 | 56 | LaTeX Font Info: External font `cmex10' loaded for size 57 | (Font) <7> on input line 7. 58 | LaTeX Font Info: External font `cmex10' loaded for size 59 | (Font) <5> on input line 7. 60 | ./test.tex:7: Extra }, or forgotten $. 61 | \maththreesuperior ->{^3} 62 | 63 | l.7 ó 64 | 65 | I've deleted a group-closing symbol because it seems to be 66 | spurious, as in `$x}$'. But perhaps the } is legitimate and 67 | you forgot something else, as in `\hbox{$x}'. In such cases 68 | the way to recover is to insert both the forgotten and the 69 | deleted material, e.g., by typing `I$}'. 70 | 71 | ./test.tex:8: Missing $ inserted. 72 | 73 | $ 74 | l.8 75 | 76 | I've inserted a begin-math/end-math symbol since I think 77 | you left one out. Proceed, with fingers crossed. 78 | 79 | [1 80 | 81 | ] (./test.aux) ) 82 | (\end occurred inside a group at level 1) 83 | 84 | ### simple group (level 1) entered at line 7 ({) 85 | ### bottom level 86 | Here is how much of TeX's memory you used: 87 | 244 strings out of 493316 88 | 2915 string characters out of 6137930 89 | 52155 words of memory out of 5000000 90 | 3778 multiletter control sequences out of 15000+600000 91 | 3640 words of font info for 14 fonts, out of 8000000 for 9000 92 | 957 hyphenation exceptions out of 8191 93 | 23i,4n,17p,160b,113s stack positions out of 5000i,500n,10000p,200000b,80000s 94 | 95 | Output written on test.dvi (1 page, 276 bytes). 96 | --------------------------------------------------------------------------------