SmtC: Show me the Code
Ole Peter Smith
Instituto de Matemática e Estatística
Universidade Federal de Goiás
http://www.olesmith.com.br

Scripting Python, $\LaTeX$/TikZ
O bem que a violência faz, é - sempre - passageiro.
O mal que ela faz, é permanente.
Mahatma Gandhi
< TikZ | tikz2pdf.py | tikzanim.py >

Run pdflatex

  1. Manage $\LaTeX$ Generation: More than once?
  2. Make Style: Generate, if newer

    make;make configure;make install

  3. Bibliographics & References

    Run $\LaTeX$ twice!!!

  4. Insert Default Preambles (TikZ)
  5. What's my Name?
    if (re.search('2pdf$',argv[0])): ....
  6. latex2pdf, latex2zip
    #ln -s /usr/local/Python/bin/tikz2pdf.py /usr/local/bin/latex2pdf
    #ln -s /usr/local/Python/bin/tikz2pdf.py /usr/local/bin/latex2zip
  7. tikz2svg, tikz2png, tikz2zip
    #ln -s /usr/local/Python/bin/tikz2pdf.py /usr/local/bin/tikz2svg
    #ln -s /usr/local/Python/bin/tikz2pdf.py /usr/local/bin/tikz2png
    #ln -s /usr/local/Python/bin/tikz2pdf.py /usr/local/bin/tikz2zip
  8. CLI or CGI: changeroot!?
  9. SmtC: Show me the Code
  10. MathJaX vs tikz2svg
tikz2pdf Help Screen:
??tikz2pdf.txt Listing: tikz2pdf.txt.
[root@wessel]:# tikz2pdf -h
usage: tikz2pdf [-h] [-v] [-s] [-n] [-f] [-ff] [-l] [-w] [-t T] [-x]
                tex_files [tex_files ...]

Generate PDF or SVG/PNG from LaTeX/TiKZ

positional arguments:
  tex_files       Files to process

optional arguments:
  -h, --help      show this help message and exit
  -v, --Verbose   Verbose Echo actions taken.
  -s, --Silent    Be silent.
  -n, --NoClean   Do NOT delete created files on exit.
  -f, --Force     Force regeneration even if destination files are newer.
  -ff, --Figs     Try to detect figs () files from log.
  -l, --Log       Display latex log on stdout.
  -w, --Warnings  Display LaTeX warnings.
  -t T, --T T     Value of Parameter t, include a \tikzmath{\T=t;} line.
  -x, --Exit      Show Arguments and Exit.
[root@wessel]:#
< TikZ | tikz2pdf.py | tikzanim.py >
Messages:
0 secs.