It says \latexlua, though being half a sleep, I'm pretty sure there is no latex in luatex, a Freudian slip? :P -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer
On 12 September 2010 Khaled Hosny wrote:
It says \latexlua, though being half a sleep, I'm pretty sure there is no latex in luatex, a Freudian slip? :P
Sure, Taco is secretly working on latexlib. This allows you to run LaTeX directly in Context: \startLaTeX \textbf{hello} \stopLaTeX Regards, Reinhard -- ---------------------------------------------------------------------------- Reinhard Kotucha Phone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannover mailto:reinhard.kotucha@web.de ---------------------------------------------------------------------------- Microsoft isn't the answer. Microsoft is the question, and the answer is NO. ----------------------------------------------------------------------------
On Sun, 12 Sep 2010, Reinhard Kotucha wrote:
On 12 September 2010 Khaled Hosny wrote:
It says \latexlua, though being half a sleep, I'm pretty sure there is no latex in luatex, a Freudian slip? :P
Sure, Taco is secretly working on latexlib. This allows you to run LaTeX directly in Context:
\startLaTeX \textbf{hello} \stopLaTeX
Oh, you underestimate the power of the dark side. Running latex inside context is already possible using the external filter module[1]. \usemodule[filter] \defineexternalfilter [LATEX] [filtercommand={pandoc -f latex -t context -o \externalfilteroutputfile\space \externalfilterinputfile}] \starttext \startLATEX Simple \LaTeX\ (this gets gobbled!) commands like \textbf{bold} and \textit{italic} work, as does \emph{emphasize}. Even equations work! \begin{equation} E = mc^2 \end{equation} though we end up loosing the numbering. Graphics also work: \includegraphics{dummy} but floats is a different story \begin{figure} \centering \includegraphics{dummy} \caption{A figure} \end{figure} \stopLATEX \stoptext I could also give an actual call to latex and simply include the resultant pdf, but this is more fun. Aditya [1]: http://www.github.com/adityam/filter
On Sun, Sep 12, 2010 at 5:24 PM, Aditya Mahajanwrote: > On Sun, 12 Sep 2010, Reinhard Kotucha wrote: > >> On 12 September 2010 Khaled Hosny wrote: >> >> > It says \latexlua, though being half a sleep, I'm pretty sure there >> > is no latex in luatex, a Freudian slip? :P >> >> Sure, Taco is secretly working on latexlib. This allows you to run >> LaTeX directly in Context: >> >> \startLaTeX >> \textbf{hello} >> \stopLaTeX > > Oh, you underestimate the power of the dark side. Running latex inside > context is already possible using the external filter module[1]. as I said to Reinhard to a private email it's also something that I'm thinking from a while. The Aditya idea (that I *must* know :-) ) is to call an external process, hence 1) doesn't share state (ie fonts) and this can be a limit 2) it's slow, but on multicore system this cannot be a problem 3) it has a safe separation of task , and this always matter An alternative is to use a luatex with more states and then 1) maybe can be resolved (with a good support from mkiv) but then 2) (locks on commons data structures) and 3) (threading) may fail. -- luigi
On Sun, 12 Sep 2010, luigi scarso wrote: > On Sun, Sep 12, 2010 at 5:24 PM, Aditya Mahajanwrote: >> On Sun, 12 Sep 2010, Reinhard Kotucha wrote: >> >>> On 12 September 2010 Khaled Hosny wrote: >>> >>>> It says \latexlua, though being half a sleep, I'm pretty sure there >>>> is no latex in luatex, a Freudian slip? :P >>> >>> Sure, Taco is secretly working on latexlib. This allows you to run >>> LaTeX directly in Context: >>> >>> \startLaTeX >>> \textbf{hello} >>> \stopLaTeX >> >> Oh, you underestimate the power of the dark side. Running latex inside >> context is already possible using the external filter module[1]. > as I said to Reinhard to a private email > it's also something that I'm thinking from a while. > The Aditya idea (that I *must* know :-) ) > is to call an external process, hence > 1) doesn't share state (ie fonts) and this can be a limit No, it does. pandoc is an (incomplete) parser that converts latex to context. So, the latex snippet is converted to context snippet and read back. > 2) it's slow, but on multicore system this cannot be a problem > 3) it has a safe separation of task , and this always matter > An alternative is to use a luatex with more states and then 1) maybe > can be resolved > (with a good support from mkiv) > but then 2) (locks on commons data structures) and 3) (threading) may fail. But seriously, if you want to read LaTeX commands, the simplest way is to write the "converter" in TeX. \let\textbf=\bold \let\bfseries=\bold ... etc. An easier solution might be to restrict to GELLMU aware commands and use GELLMU to transform LaTeX to SGML and then just write a Context XML parser for that. But this is way OT here. Aditya
On Sun, Sep 12, 2010 at 5:48 PM, Aditya Mahajan
On Sun, 12 Sep 2010, luigi scarso wrote:
On Sun, Sep 12, 2010 at 5:24 PM, Aditya Mahajan
wrote: On Sun, 12 Sep 2010, Reinhard Kotucha wrote:
On 12 September 2010 Khaled Hosny wrote:
It says \latexlua, though being half a sleep, I'm pretty sure there is no latex in luatex, a Freudian slip? :P
Sure, Taco is secretly working on latexlib. This allows you to run LaTeX directly in Context:
\startLaTeX \textbf{hello} \stopLaTeX
Oh, you underestimate the power of the dark side. Running latex inside context is already possible using the external filter module[1].
as I said to Reinhard to a private email it's also something that I'm thinking from a while. The Aditya idea (that I *must* know :-) ) is to call an external process, hence 1) doesn't share state (ie fonts) and this can be a limit
No, it does. pandoc is an (incomplete) parser that converts latex to context. So, the latex snippet is converted to context snippet and read back. yes, but pandoc must be in synch with latex and context. Maybe it's ok for pdflatex and mkii .
But seriously, if you want to read LaTeX commands, the simplest way is to write the "converter" in TeX. in luatex+mkiv
-- luigi
On 12 September 2010 luigi scarso wrote:
On Sun, Sep 12, 2010 at 5:24 PM, Aditya Mahajan
wrote: On Sun, 12 Sep 2010, Reinhard Kotucha wrote:
On 12 September 2010 Khaled Hosny wrote:
It says \latexlua, though being half a sleep, I'm pretty sure there is no latex in luatex, a Freudian slip? :P
Sure, Taco is secretly working on latexlib. This allows you to run LaTeX directly in Context:
\startLaTeX \textbf{hello} \stopLaTeX
Oh, you underestimate the power of the dark side. Running latex inside context is already possible using the external filter module[1]. as I said to Reinhard to a private email it's also something that I'm thinking from a while.
Sorry Luigi, but my mail was meant as a joke, just to explain the Freudian slip. Regards, Reinhard -- ---------------------------------------------------------------------------- Reinhard Kotucha Phone: +49-511-3373112 Marschnerstr. 25 D-30167 Hannover mailto:reinhard.kotucha@web.de ---------------------------------------------------------------------------- Microsoft isn't the answer. Microsoft is the question, and the answer is NO. ----------------------------------------------------------------------------
participants (5)
-
Aditya Mahajan
-
Khaled Hosny
-
luigi scarso
-
Reinhard Kotucha
-
Taco Hoekwater