On Tuesday 10 December 2002 10:26, Chris Lale wrote: >> proper fix is to add support for styles in lyx. >> If you still want to make this work, I can give some tips where to >> look for. >> >> Actually you only need to change the code in one function, so it >> shouldn't be too hard. > > If this means modifying text configuration files, yes please - I will > have a go. I am not proficient in C though.
I was speaking of a C++ function, Buffer::simpleDocBookOnePar in src/buffer.C > I did try this (modified from the troubleshooters.com Linux Productivity > Magazine), but it did not work in 'DocBook article (SGML)': > > ------------------------------------------------ > Layout > LaTex Preamble... > > % %%% Pseudo character styles indexed by color %%% > \usepackage{ifthen} > \providecommand{\textcolor}[2]{#2} > \renewcommand{\textcolor}[2]{% > \ifthenelse{\equal{#1}{blue}}{{<filename>{#2}</filename>}}{}% SGML > filename tags > \ifthenelse{\equal{#1}{magenta}}{{\large{\texttt{#2}}}}{}% Large text > \ifthenelse{\equal{#1}{magenta}\or\equal{#1}{blue}}{}{#2}% fallthrough > } This trick will only work with latex, I was proposing a similar hack but for docbook, we would need to output the colour changes, something that we don't do now. This is the part that needs coding. [...] > Any ideas? > Cheers, > > Chris. -- José Abílio