Latex


MAKE file

  1. PDFLATEX = pdflatex
  2. BIBTEXT = bibtex
  3. MAKEINDEX = makeindex
  4. PDFVIEWER = evince
  5. output_file = da-mracic-mapsu.pdf
  6. output_file_latest = da-mracic-mapsu-latest.pdf
  7. latex_main_file = doku
  8.  
  9. C_BLUE="`tput setb 1`"
  10. C_NORM="`tput op`"
  11.  
  12.  
  13. #-------------------------------------------------------------------------------
  14.  
  15.  
  16. all: $(output_file)
  17.  
  18. view:
  19.         $(MAKE) all
  20.         $(MAKE) clean
  21.         $(PDFVIEWER) $(output_file_latest)
  22.        
  23. clean:
  24.         $(RM) *.aux *.dvi *.ilg *.ind *.log *.lol *.out *.toc *.ps *.glo *.nlo *.ilg *.nls *.bbl *.blg
  25.         $(RM) $(output_file) $(output_file:.pdf=.tdo)
  26.         $(RM) _contents_index.tex
  27.         find -name *.aux -delete
  28.  
  29. redo:
  30.         $(RM) $(output_file)
  31.         $(MAKE) all
  32.  
  33. preconditions:
  34.         sudo aptitude install texlive texlive-lang-german texlive-latex-extra
  35.  
  36.  
  37. #-------------------------------------------------------------------------------
  38.  
  39. $(output_file):
  40.         $(PDFLATEX) $(@:.pdf=.tex)
  41.         $(BIBTEXT) $(@:.pdf=)
  42.         @echo "$(C_BLUE)=== Bibliographie build succesful ===$(C_NORM)"
  43.         $(MAKEINDEX) $(@:.pdf=.nlo) -s nomencl.ist -o $(@:.pdf=.nls)
  44.         @echo "$(C_BLUE)=== Index created succesful ===$(C_NORM)"
  45.         $(PDFLATEX) $(@:.pdf=.tex)
  46.         $(PDFLATEX) $(@:.pdf=.tex)
  47.         cp -p $(output_file) $(output_file_latest)
  48.         @echo "$(C_BLUE)=== DONE. ===$(C_NORM)"

Editors / IDEs

OSX only

* http://www.scriboapp.com

Linux / Ubuntu

* http://projects.gnome.org/gedit/

Trackback URL for this post:

http://www.2030.tk/trackback/257

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Use <fn>...</fn> to insert automatically numbered footnotes.
  • You can use the <go> tags just like the <a> for nicer urls.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]".
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.