source: doc/theses/mike_brooks_MMath/content/string/sharing-demo.tex.liquid @ 8e819a9

enumpthread-emulationqualifiedEnum
Last change on this file since 8e819a9 was 8e819a9, checked in by Michael Brooks <mlbrooks@…>, 10 months ago

Mike MMath initial

  • Property mode set to 100644
File size: 1.1 KB
Line 
1{% for item in demo1 -%}
2  {% if item.type == "text" %}{{
3      item.value
4  }}{% elsif item.type == "demo" %} \\
5    \begin{tabular}{l{%for var in item.vars %}c{% endfor %}}
6      {%for var in item.vars %} & @{{var}}@ {% endfor %} \\
7{% for step in item.steps -%}
8{%-if step.code -%}
9\begin{lstlisting}
10{% for line in step.code %}{{ line }}
11{% endfor -%}
12\end{lstlisting}
13{%- endif -%}
14      {% for var in item.vars -%}
15        & {{ step.endvals[var] }}
16      {%- endfor %} \\
17    {% endfor -%}
18    \end{tabular} \vspace{6pt} \\
19  {% else %}
20    BAD ITEM
21  {% endif %}
22{%- endfor -%}
23
24{% for item in demo2 -%}
25  {% if item.type == "text" %}{{
26      item.value
27  }}{% elsif item.type == "demo" %} \\
28    \begin{tabular}{l{%for var in item.vars %}c{% endfor %}}
29      {%for var in item.vars %} & @{{var}}@ {% endfor %} \\
30{% for step in item.steps -%}
31{%-if step.code -%}
32\begin{lstlisting}
33{% for line in step.code %}{{ line }}
34{% endfor -%}
35\end{lstlisting}
36{%- endif -%}
37      {% for var in item.vars -%}
38        & {{ step.endvals[var] }}
39      {%- endfor %} \\
40    {% endfor -%}
41    \end{tabular} \vspace{6pt} \\
42  {% else %}
43    BAD ITEM
44  {% endif %}
45{%- endfor -%}
Note: See TracBrowser for help on using the repository browser.