Michael Gerz schrieb:
Herbert Voss schrieb:
better, _after_ the user preamble:
\providecolor{lyxinserted}{rgb}{1,0,0}
\providecolor{lyxdeleted}{rgb}{0,0,1}
+ "\\newcommand{\\lyxinserted}[3]{\\textcolor{lyxinserted}{#3}}\n"
+
"\\newcommand{\\lyxdeleted}[3]{\\textcolor{lyxdeleted}{\\st{#3}}}\n";
then the user can define his own colors in his own color model.
I may be wrong but AFAICS, all LyX header stuff is above the user
preamble, probably in order to give the user the opportunity to
overwrite the LyX settings.
Isn't that possible in this scenario, too? Any help is greatly
appreciated.
look for babel, it is loaded after the user stuff, see
BufferParams::writeLaTeX
at least you can define it by \AtBeginDocument{..., just like LyX
does for the itemize bullets.
After some sleep: Is this really the way we want to go?
With your proposal, the CT-related definitions are scattered over two
places in the LaTeX output. Moreover, we have to introduce two
LyX-specific colors.
Why don't we ask the user to re-define \lyxdeleted and \lyxinserted
directly? The overhead looks rather marginal in comparison to
redefining the colors only.
After some (short) investigation, I came to the conclusion that using
the colors defined within LyX is not that trivial.
Would you agree if I commit the patch that we have at the moment? I am
afraid that I slowly run out of time and them we have nothing at all.
Michael