diff options
Diffstat (limited to 'macros/luatex/latex/luacas/doc/tutorial/tut3/demotut3.dat')
-rw-r--r-- | macros/luatex/latex/luacas/doc/tutorial/tut3/demotut3.dat | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/macros/luatex/latex/luacas/doc/tutorial/tut3/demotut3.dat b/macros/luatex/latex/luacas/doc/tutorial/tut3/demotut3.dat new file mode 100644 index 0000000000..95139afaf2 --- /dev/null +++ b/macros/luatex/latex/luacas/doc/tutorial/tut3/demotut3.dat @@ -0,0 +1,46 @@ +\parseforest{q} +\bracketset{action character = @} +\begin{forest} + for tree = { + font=\ttfamily, + rectangle, + rounded corners=1pt + }, + where level=0{% + fill=orange!25 + }{}, + @\forestresult +\end{forest} + +\begin{CAS} + r = diff(q,x,h) +\end{CAS} +\whatis{q} vs \whatis{r} + +\luaexec{if q.operation == BinaryOperation.ADD then + tex.print("I'm an \\texttt{ADD}") +end} + +\luaexec{tex.print("I'm an order", r.degree, "derivative.")} + +\parseshrub{q} +\begin{forest} + for tree = {draw,rectangle,rounded corners=1pt,fill=lightgray!20 font=\ttfamily} + @\shrubresult +\end{forest} + +\parseshrub{q.expressions[1]} +\begin{forest} + for tree = {draw,rectangle, + rounded corners=1pt,fill=lightgray!20, + font=\ttfamily, s sep=2cm} + @\shrubresult +\end{forest} + +\parseshrub{r} +\begin{forest} + for tree = {draw,rectangle, + rounded corners=1pt,fill=lightgray!20, + font=\ttfamily, s sep=1cm} + @\shrubresult +\end{forest}
\ No newline at end of file |