Latex¶
manualy install package¶
download the package from CTAN (e.g., foo.zip)
extract the files and place them in an appropriate directory
generate the .sty file by running
latex foo.ins(.sty) andlatex foo.dtx(manual)copy .sty file into the LaTeX Texlive installation in Ubuntu:
sudo cp foo.sty /usr/share/texlive/texmf-dist/tex/latex/baseupdate the ls-R file in this source tree:
sudo mktexlsr
create a makefile¶
makefile¶
$@for the makefile target$<for the first prerequisite$^for names of all the prerequisites$*only for the%part#create pdf: make simple.pdf from my_simple.tex %.pdf : my_%.tex rm -f my_pdf_name.pdf pdflatex $< -o my_$* 2>&1 | tee errors.err bibtex $(basename $<) 2>&1 | tee errors.err pdflatex $< -o my_$* 2>&1 | tee errors.err pdflatex $< -o my_$* 2>&1 | tee errors.err cp my_$*.pdf my_pdf_name.pdf #clean rm -f *.o errors.err rm -f *.aux *.bbl *.blg *.log *.out rm -f *.synctex.gz rm -f BUILD @echo