summaryrefslogtreecommitdiff
path: root/manual/LaTeX.Rules
diff options
context:
space:
mode:
Diffstat (limited to 'manual/LaTeX.Rules')
-rw-r--r--manual/LaTeX.Rules12
1 files changed, 10 insertions, 2 deletions
diff --git a/manual/LaTeX.Rules b/manual/LaTeX.Rules
index 5a1e58589a..cfe43b055c 100644
--- a/manual/LaTeX.Rules
+++ b/manual/LaTeX.Rules
@@ -119,6 +119,14 @@ OTHER_FILES := $(DOCUMENT).blg $(DOCUMENT).log $(DOCUMENT).out
119INDEX_ARGS := -s mkidx.ist 119INDEX_ARGS := -s mkidx.ist
120LATEXOPTS := -interaction=nonstopmode 120LATEXOPTS := -interaction=nonstopmode
121 121
122# program to pipe stdout through. Note: this needs to start with a pipe symbol
123# to not make the command fail if no filter is defined.
124ifndef V
125LATEXFILTER := | ./latexfilter.pl
126else
127LATEXFILTER := | ./latexfilter.pl -v
128endif
129
122# grab the contents of \bibliograph{} commands 130# grab the contents of \bibliograph{} commands
123ifeq ($(BIB_FILES),) 131ifeq ($(BIB_FILES),)
124 BIB_FILES := $(shell for source in $(TEX_FILES) ; do sed -e '{' -e 'y/,/ /' -e 's?.*\\bibliography[{]\(.*\)[}].*?\1?' -e 't' -e 'd' -e '}' <$$source ; done) 132 BIB_FILES := $(shell for source in $(TEX_FILES) ; do sed -e '{' -e 'y/,/ /' -e 's?.*\\bibliography[{]\(.*\)[}].*?\1?' -e 't' -e 'd' -e '}' <$$source ; done)
@@ -222,7 +230,7 @@ define run-latex
222 makeobsolete() { touch -r $$(ls *.old | tail -n 1) $${1} ; true ; } ; \ 230 makeobsolete() { touch -r $$(ls *.old | tail -n 1) $${1} ; true ; } ; \
223 nochange() { for file ; do [ ! -f $${1} ] || cmp $${1} $${1}.old >/dev/null || return ; done ; true ; } ; \ 231 nochange() { for file ; do [ ! -f $${1} ] || cmp $${1} $${1}.old >/dev/null || return ; done ; true ; } ; \
224 saveold $(MONITOR_FILES) ; \ 232 saveold $(MONITOR_FILES) ; \
225 if $(LATEX) $(LATEXOPTS) $* ; then \ 233 if $(LATEX) $(LATEXOPTS) $* $(LATEXFILTER) ; then \
226 if nochange $(MONITOR_FILES) ; then \ 234 if nochange $(MONITOR_FILES) ; then \
227 echo "$(MAKE): LaTeX auxiliary files did not change (processing is complete)" ; \ 235 echo "$(MAKE): LaTeX auxiliary files did not change (processing is complete)" ; \
228 restoreold $(MONITOR_FILES) ; \ 236 restoreold $(MONITOR_FILES) ; \
@@ -267,7 +275,7 @@ $(PDF_FILE) : %.pdf : $(TEX_FILES) $(MONITOR_FILES) $(GRAPHIC_FILES) $(XFIG_TEX)
267# 275#
268 276
269%.aux %.idx : $(XFIG_TEX) 277%.aux %.idx : $(XFIG_TEX)
270 $(LATEX) $(LATEXOPTS) $* 278 $(LATEX) $(LATEXOPTS) $* $(LATEXFILTER)
271 279
272# 280#
273# Distill xfig .fig files into .fig.tex and either .fig.pdf or .fig.ps 281# Distill xfig .fig files into .fig.tex and either .fig.pdf or .fig.ps