Latex
Submitted by rac on 16 February, 2011 - 12:27.
MAKE file
-
PDFLATEX = pdflatex
-
BIBTEXT = bibtex
-
MAKEINDEX = makeindex
-
PDFVIEWER = evince
-
output_file = da-mracic-mapsu.pdf
-
output_file_latest = da-mracic-mapsu-latest.pdf
-
latex_main_file = doku
-
-
C_BLUE="`tput setb 1`"
-
C_NORM="`tput op`"
-
-
-
#-------------------------------------------------------------------------------
-
-
-
all: $(output_file)
-
-
view:
-
$(MAKE) all
-
$(MAKE) clean
-
$(PDFVIEWER) $(output_file_latest)
-
-
clean:
-
$(RM) *.aux *.dvi *.ilg *.ind *.log *.lol *.out *.toc *.ps *.glo *.nlo *.ilg *.nls *.bbl *.blg
-
$(RM) $(output_file) $(output_file:.pdf=.tdo)
-
$(RM) _contents_index.tex
-
find -name *.aux -delete
-
-
redo:
-
$(RM) $(output_file)
-
$(MAKE) all
-
-
preconditions:
-
sudo aptitude install texlive texlive-lang-german texlive-latex-extra
-
-
-
#-------------------------------------------------------------------------------
-
-
$(output_file):
-
$(PDFLATEX) $(@:.pdf=.tex)
-
$(BIBTEXT) $(@:.pdf=)
-
@echo "$(C_BLUE)=== Bibliographie build succesful ===$(C_NORM)"
-
$(MAKEINDEX) $(@:.pdf=.nlo) -s nomencl.ist -o $(@:.pdf=.nls)
-
@echo "$(C_BLUE)=== Index created succesful ===$(C_NORM)"
-
$(PDFLATEX) $(@:.pdf=.tex)
-
$(PDFLATEX) $(@:.pdf=.tex)
-
cp -p $(output_file) $(output_file_latest)
-
@echo "$(C_BLUE)=== DONE. ===$(C_NORM)"
Editors / IDEs
OSX only
Linux / Ubuntu
* http://projects.gnome.org/gedit/
Trackback URL for this post:
http://www.2030.tk/trackback/257
»
- Download PDF
- Printer-friendly version
- 869 reads

Post new comment