Here is a patch that contains a complete rewrite of the export mechanism (by
'export' I also mean generating a preview DVI/Postscript).
The new code works by defining converters in lyxrc, and then chaining the
appropriate converters to get the desired output format.

The code is still incomplete, so I disable it by default. To enable it, you
need to define NEW_EXPORT in exporter.h
Please apply it to the CVS as Baruch wants to use the code in his
GraphicsInset.

PS: Lars, can you give Baruch & me CVS write access to exporter.[Ch] and
converter.[Ch] ?

Example lyxrc file:

\converter tex dvi "latex"      noflag
\converter tex pdf "pdflatex"   noflags
\converter dvi ps "dvips $$FName -o $$OutName"  noflags
\converter ps pdf "ps2pdf $$FName $$OutName"    noflags
\converter tex html "tth -e2 -t -L$$BaseName  < $$FName > $$OutName" origdir
\converter sgml tex "sgml2latex $$FName"        noflags
\converter sgml html "sgml2html -s 0 $$FName"   noflags

\viewer dvi "xdvi $$FName"
\viewer ps "gv $$FName"
\viewer pdf "acroread $$FName"
\viewer html "netscape $$FName"

patch.gz

Reply via email to