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
Liberdade é um prato facil de comer.
Mas deficil de digerir
Jean-Jaques Rousseau

Animation: Each TikZ has Parameter \T

  1. Run tikz2svg on Equidistant $t$'s.
    Generic Python Code:
    dt=(tstart-\tend}/(1.0*N)
    for n in range(N):
       t=tstart+N*dt
       os.system(" ".join([
          "/usr/local/bin/tikz2svg",
          "-n", #noclean
          "-t "+str(t),
       ])
       %Copy generated (SVG) file
       no="%3d" %n
       outname="Images/name"+"-"+no
       os.system( ".join([
          "cp -p", 
          name+".svg", 
          outname+".svg", 
       ])
  2. ??tikzanim.txt Listing: tikzanim.txt.
    [root@wessel:] tikzanim -h
    usage: tikzanim [-h] [-p PATH] [-t1 T1] [-t2 T2] [-n N] [-x] Files [Files ...]
    
    Generate SVG using TikZ
    
    positional arguments:
      Files                 File(s) to process
    
    optional arguments:
      -h, --help            show this help message and exit
      -p PATH, --path PATH  Path to store images in (default: ./Images).
      -t1 T1, --t1 T1       First value of Parameter t.
      -t2 T2, --t2 T2       Last value of Parameter t.
      -n N, --n N           Number of frames.
      -x, --Exit            Show Arguments and Exit.
    [root@wessel:/usr/local/Slides/2_Palestras/2020/04_Scripting/05_LaTeX/02_NewCommand]# 
    
  3. Scaling drawing:
    \begin{tikzícture}[scale=\T]
      %Scaled drawing
      \tikzmath{\scale=\T;}
    \end{tikzpicture}
Messages:
0 secs.