[pstricks] Linux Shel Scripts for tex+dvips+ps2pdf or latex+dvips+ps2pdf
Boris Veytsman
borisv at lk.net
Fri Feb 20 17:22:35 CET 2009
WS> Date: Fri, 20 Feb 2009 22:30:20 +1100
WS> From: WWSH§ SH®WYWY <vafakh9 at gmail.com>
WS> http://www.neystadt.org/cyrillic/
WS> Is there any shell scripts for tex+dvips+ps2pdf or latex+dvips+ps2pdf?
WS> And if not, can you please help me to write one?
Here is a fragment of my Makefile:
----------------------------------------------------------------------
TEXFILES = \
01_intro.tex\
02_first.tex \
03_workflow.tex \
04_commands.tex \
05_structure.tex \
06_math.tex \
07_labels.tex \
08_floats.tex \
09_bibliography.tex\
10_visual.tex
PDFS = ${TEXFILES:%.tex=%.pdf}
%.pdf: %.tex %-pics.pdf
$(RM) $*.toc
pdflatex $*
- bibtex $*
pdflatex $*
while ( grep -q '^LaTeX Warning: Label(s) may have changed' $*.log || \
grep -q '^Package pdfscreen Warning: TOC file not available' $*.log ||\
grep -q '^Package natbib Warning: Citation(s) may have changed' $*.log ) \
do pdflatex $*; done
%-pics.pdf: %-pics.ps
ps2pdf $<
%-pics.ps: %.dvi
dvips -Ppdf -o $@ $<
%.dvi: %.tex
latex $<
-------------------------------------------------------------
--
Good luck
-Boris
Obey all traffic laws.
More information about the PSTricks
mailing list