Gunnar Lindholm wrote:
I know that this has 'been done' but I'm not sure how to go about it
myself. I would like to link to an external source code file and 'pull
it in' to my compiled document when I use pdflatex. I would like to
apply source code highlighting, although that's not essential (the
language I'm using is not one that is supported by any of the tools).
What language? Highlight manages over 120 of them.
I worked out how to import external code, but not how to maintain a
link. Do I need to use ERT? Can LyX be set to use 'highlight' on-the-fly
as for graphics formats, or must I prepare the latex by hand?
Here are how I do it. When setup, it works automatically.
http://www.taljaren.se/MinLyXTutorial.html
(same as pdf) http://www.taljaren.se/MinLyXTutorial.pdf
Could you consider putting this in the Wiki?
Abdel.