Burak Arslan wrote:
hi,

i used to use makefiles for compiling tex files into pdf. before invoking pdflatex et al, those makefiles incorporated various information from its context like current svn revision number, user who invokes the operation etc. i did this by writing the output of the command (e.g. whoami > user) to a file, then \input'ting it where necessary.

is there any way to duplicate this behaviour using lyx?

Yes, there is a way: Define a custom output format, and have LyX call a script when it converts to that format. I'm not sure exactly what the best way to do this would be. You might have a "PDFLaTeX (makefile)" format, and then define a "LaTeX (pdflatex) -> PDFLaTeX (makefile)" converter that would call your script. Or if you want to be able to export hat kind of LaTeX file, do an intermediate "LaTeX (makefile)" format, which just calls the script; then define a "LaTeX (makefile) -> PDF (pdflatex) converter that would call pdflatex. Some such thing will work.

rh

Reply via email to