<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jan 16, 2019 at 7:35 PM Eduardo Ochs <<a href="mailto:eduardoochs@gmail.com">eduardoochs@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi list,</div><div><br></div><div>I am not sure if this is the right place to ask open-ended questions,</div><div>but let me try.</div><div><br></div><div>I wrote a package called Dednat6 - here:</div><div><br></div><div>  <a href="http://angg.twu.net/LATEX/2018tugboat-rev1.pdf" target="_blank">http://angg.twu.net/LATEX/2018tugboat-rev1.pdf</a> (TUGBoat article)</div><div>  <a href="http://angg.twu.net/LATEX/2018dednat6-extras.pdf" target="_blank">http://angg.twu.net/LATEX/2018dednat6-extras.pdf</a> (extra features/docs)</div><div>  <a href="http://angg.twu.net/dednat6.zip" target="_blank">http://angg.twu.net/dednat6.zip</a> (zip file)</div><div>  <a href="http://angg.twu.net/dednat6.html" target="_blank">http://angg.twu.net/dednat6.html</a> (home page)</div><div><br></div><div>and it includes a nice Lua REPL. If we run this,</div><div><br></div><div>  rm -Rfv /tmp/dn6-test/</div><div>  mkdir   /tmp/dn6-test/</div><div>  cd      /tmp/dn6-test/</div><div>  wget <a href="http://angg.twu.net/dednat6.zip" target="_blank">http://angg.twu.net/dednat6.zip</a></div><div>  unzip dednat6.zip</div><div>  lualatex 2018dednat6-repl.tex</div><div><br></div><div>we enter the REPL in the middle of the compilation of a document; more</div><div>precisely, in this context:</div><div><br></div><div>  \documentclass{article}</div><div>  \begin{document}</div><div>    \catcode`\^^J=10</div><div>    \directlua{dofile "dednat6load.lua"}</div><div>    \directlua{luarepl()}</div><div><br></div><div><div>which means that we can use the REPL to inspect, *from Lua*, the</div><div>current definitions and macros - for example, the current definitions</div><div>for \section and \subsection. I am just beginning to play with this</div><div>idea, writing code that uses the these functions from the token</div><div>library (section 9.6 in the LuaTeX reference manual),</div></div><div><br></div><div>  token.create(...)</div><div>  token.get_macro(...)</div><div>  token.get_meaning(...)</div><div>  </div><div>and inspecting the fields "command", "cmdname", "csname", "id",</div><div>"active", "expandable", "protected" of token objects... clearly I</div><div>haven't gone very far.</div><div><br></div><div>What tools do you people use to inspect \defs from Lua? Where do you</div><div>suggest me to look? Any suggestions of packages, articles (in TUGBoat</div><div>or elsewhere), webpages, code, comments in source code?...</div><div><br></div><div>Thanks in advance!</div><div>  Eduardo Ochs</div><div>  <a href="http://angg.twu.net/math-b.html" target="_blank">http://angg.twu.net/math-b.html</a></div><div><br></div><div><br></div><div><br></div><div>P.S.: this question is connected to the one in this thread -</div><div><a href="http://tug.org/pipermail/luatex/2018-January/006736.html" target="_blank">http://tug.org/pipermail/luatex/2018-January/006736.html</a> - but I know</div><div>much more now...</div><div><br></div></div></div></div>
</blockquote></div>cool.. thank you very much for your links !<br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">luigi<br></div></div>