On 11/10/2009 09:28 AM, Jean-Marc Lasgouttes wrote:
rgheck<rgh...@bobjweil.com>  writes:
Richard, it is nice to see you working on that. One thing that would be
nice is to be able to have the graph depend on the document, or rather
of its class: this would allow to handle unsupported classes, which can
currently not be output at all. We should be able to export to LaTeX, at
least.
Can you explain this a bit further? As I understand this code, it's
just calculating conversion paths. Why would it matter what the class
is? Isn't what prevents LaTeX output when we don't support the
document class that we have no Layout information, which is what we
need to know what to do with the different paragraph types?
This is useful when we have the layout file, but no latex support file
(or no latex at all). We should be able to output to latex (or docbook
or...), even though we cannot produce pdf from it.

I think all it requires is to rebuild the graph every time we need it
(or after each change to document class).

So far as I can see, the graph itself does not depend in any way upon the document class (see Converters::buildGraph()). If we don't have LaTeX installed, then we won't get DVI as an export option, because we lack a LaTeX-->DVI converter. But we still might get RTF as an option, if we have a LaTeX-->RTF converter, as we should. So I think the simple patch attached to
    http://www.lyx.org/trac/ticket/4149
may be enough. Yes?

Richard



Reply via email to