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

TikZ (Palestra)
O aspecto mais triste da humanidade hoje
É que ela cresce mais em ciência do que em sabedoria.
Isaac Asimov
< Intersections | Programming | Plotting >

Programming Structure

  • Not Tuhring Consistent...
  • Define a TeX string:
    \def\CaseText{Horisontal};
  • Define a number:
    \pgfmathparse{90} \let\Angle\pgfmathresult;
    \pgfmathparse{cos(\Angle)} \let\LCos\pgfmathresult;
  • Input:
    \input{path/to/file}
  • Foreach:
    \foreach \n in {1,2,3,4,5,6,7}
    {
    \draw (0,\n) node[left] {\n};
    }
  • If (numerical test):
    \pgfmathparse{3*pi/4} \let\LIMIT\pgfmathresult;
    \ifthenelse{\lengthtest{ \Angle pt < \LIMIT pt}}
    {
    \pgfmathparse{3} \let\Case\pgfmathresult;
    \def\CaseText{II.b};;
    }
< Intersections | Programming | Plotting >
Messages:
0 secs.