š Edit page
ā Add page
LaTeX
Sample
Iām not interested in LaTeX itself so much as the code here.
- for loop
- shell choice
- help text
- all
Makefile
SHELL = /bin/sh all: make tex make clean tex: for number in 1 2 3; do \ echo $$number ; \ pdflatex -no-pdf --jobname=Mydocument-No-$$number "\newcommand\x{$$number} \input{main.tex}" ; \ pdflatex --jobname=Mydocument-No-$$number "\newcommand\x{$$number} \input{main.tex}" ; \ done;\ help: echo "USAGE: make [all/tex/clean]" clean: rm -f *.aux *.dvi *.idx *.ilg *.ind *.log *.nav *.out *.snm *.xdv *.toc *~