[Dev-luatex] Very simple sample?
Javier Bezos
lists at texytipografia.com
Wed Dec 6 18:14:10 CET 2006
Another question:
How can I read arbitrary TeX input? Or is this part
still unfinished? Currently, LuaTeX only accepts
UTF-8 input, right? But let's assume we have:
<latin 1 text> \arabic{<iso arabic text>} <latin 1 tex>
ie, two input encodings in the same line. I don't still
understand how encodings work.
Javier
PS. Here is a more complete example with LaTeX (or
more exactly TeX inside LaTeX...):
\documentclass{book}
\def\lua#1{\directlua0\expandafter{\detokenize{#1}}}
\def\sub#1{%
\lua{
tex.print("\\subsection{#1}");
tex.print("\\message{Show a message}");
tex.print("Argument \\\#1 is #1")
}}
\begin{document}
\lua{tex.print("\\section{Hola $\\sin a_0^2$}");}
\sub{Sub section}
\end{document}
More information about the dev-luatex
mailing list