On Aug 12, 2006, at 6:20 AM, Georg Baum wrote:
Am Samstag, 12. August 2006 14:38 schrieb Jean-Marc Lasgouttes:
Rather than adding yet other export formats that clutter the
interface, could we have a buffer-export-raw lfun? It could have some
option to skip header.
I think that would work as well.
All this will become less important once LyX is more scriptable, but
for now being part of the export menu seems to make such a function
much easier to use. I personally will just use a workaround for this
issue for now (wrapping lyx in an additional script that puts figures
into comments before exporting), but there are some more points that
may be worth considering:
If you don't put bare latex export into the Export menu, this would
imply that you consider it more important to have ASCII text export,
than to export the latex format on which LyX itself is based.
One should also consider the following: There is a latex IMPORT menu
item, but none of the present two latex EXPORT functions are really
the inverse of that import. Importing a latex file "original.tex" and
then exporting it again, you will in general lose some or all of the
information about what graphics formats had been present in
"original.tex" (because of the suffix-stripping).
A bare (or "raw") latex export option would allow the user to get a
tex file that is unambiguously related to the initial file
"original.tex", and in that sense form the proper inverse of the
LaTeX import function. After all, a user might expect that Export and
Import should have this reciprocity property.
Jens