On Fri, Aug 25, 2000 at 01:45:56PM +0300, Dekel Tsur wrote:
> 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

  One question Dekel, is the converter able to distinguish the linuxdoc and
the docbook cases, since both use the sgml extension?

  I am trying to figure what your code does, to update the docbook and
linuxdoc generations.

should it be:

\converter linuxdoc dvi "sgml2latex -o dvi $$FName"
\converter docbook  dvi "sgmltools -b dvi $$FName"

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

  Also is it possible to have different viewers for docbook and linuxdoc.
Example: most of the times the lyx file, when converted from docbook (or
linuxdoc) to html generates a directory.

  This directory is called `basename $$FName .sgml`
  
  With the present scheme this isn't possible. Or at least have a way
that works with both linuxdoc/docbook and latex.

-- 
José

Reply via email to