Stephan Hennig wrote:
Hi,
I didn't have the opportunity to touch luaTeX yet, but let me ask one
question in advance: Since luaTeX has a built-in MetaPost interpreter,
is it possible to refer to a certain figure in a MetaPost source file
for inclusion, instead of a compiled figure?
As an
Stephan Hennig wrote:
Hi,
I didn't have the opportunity to touch luaTeX yet, but let me ask one
question in advance: Since luaTeX has a built-in MetaPost interpreter,
is it possible to refer to a certain figure in a MetaPost source file
for inclusion, instead of a compiled figure?
As an
Hans Hagen schrieb:
glue to tex:
\def\includeMetaPost#1#2% io.loaddata is part of l-io.lua
{\directlua0{tex.print(filterfromMPblob(io.loaddata(#1,#2)))}}
of course this need to be embeded in some general mp support
(i'll add it to my todolist; actually a bit more is involved since
Stephan Hennig wrote:
Thank you for the outline. For the exact mechanism of how to process an
.mp file I think there are three possible cases:
1. Strictly process what's between figure(n)..endfig only.
2. Process everything up-to the specified figure, omitting stuff inside
non-matching
Taco Hoekwater wrote:
it is
much easier to correct and diagnose the problem.
Although these actions are usually done in reverse order ;-)
___
If your question is
Stephan Hennig wrote:
Note, this is not a pressing feature for me. The advantage is that
MetaPost and TeX code can be held in separate files (which has several
advantages) and users can easily compile the code in a single TeX run,
without knowing about Makefiles. Well, there is the \write18
Hi,
I didn't have the opportunity to touch luaTeX yet, but let me ask one
question in advance: Since luaTeX has a built-in MetaPost interpreter,
is it possible to refer to a certain figure in a MetaPost source file
for inclusion, instead of a compiled figure?
As an example, I would like to say