On Sat, Nov 22, 2003 at 05:38:45PM +0100, Lars Gullik Bj�nnes spake thusly: > Martin Vermeer <[EMAIL PROTECTED]> writes: > > | Here's a small patch to fix the problem that command-line export > | doesn't work for CharStyle insets. > > > | Unfortunately this means that the LyX format changes. Instead of, > | e.g., (CharStyle 'Filename'): > > > | \begin_inset Filename > > > | we will have > > > | \begin_inset CharStyle Filename > > I do not quite get what export has to do with this, can you explain > the problem?
I don't really understand it deeply either... but what happened was
that I could interactively do everyting OK, load a doc with char
styles and export it... but when using the command line
(./lyx -e docbook myfile.lyx) it refused to read any of the char style
insets. It printed an error for each of them. Apparently it expects
predefined names for insets, entries in a dynamic list won't do. So I
made the name 'CharStyle' and the name of the charstyle the first
argument after that.
> Also if we want to go the
>
> \begin_inset CharStyle way, I'll prefere
>
> \begin_inset CharStyle
> XXX Filename
> \end_inset
Ah! I think I see what leads you astray... 'Filename' here is not
itself a filename, but the *type* of the inset! Substitute 'Noun' and
you see what I mean. [Note added after the below]
> if possible... (XXX is some nice name on a variable)
>
> similar to how InsetFloat and similar handle arguments.
Actually
\begin_inset Float figure
wide true
collapsed false
...
\end_inset
\begin_inset LatexCommand \cite{pannekoek24:_de}
\begin_inset Quotes eld
\begin_inset Formula $x,y$
...
in CVS (LyX format 225). It may be your preference, but it's not
current status ;-)
> --
> Lgb
>
- Martin
pgp00000.pgp
Description: PGP signature
