> then i suggest you write a script to do the "little bit too much work"
> part.
Then I'll do that. It's basically just a script that reads the LaTeX file 
until it finds the environment, and then extract the code to another file, 
runs highlight, and then inserts it again into the LaTeX file.


Another way to put my earlier question is:
I know that I can put some latex commands (I have a LyX shortcut for that) 
that will take the text that follows, put it in another file, and then at the 
end of the file I use  \include{file}.

I'm not quite sure exactly how this works, I just copied it from an example of 
making an test with answers at the end of the file.

The question is then: can I produce a unique filename in the /tmp directory, 
put the code in that, and then from within LaTeX (or LyX?) run an external 
program (highlight) that does the magic, and then the result is includeed 
with \include{...}?

> how about showing us an example of the task?

>
> martin
>
> On 20/01/06, Gunnar <[EMAIL PROTECTED]> wrote:
> > > perhaps listings.sty ?
> >
> > Thanks for your reply,
> > but I feel that highlight makes it beautiful, listings doesn't. :-(

Reply via email to