[opensuse-doc] How to make color background in LfL Docbook XML ?
hi all ! How to make color background in LfL Docbook XML ? This would be great for this: http://www.virtualbox.org/wiki/Guest_OSes -- -Alexey Eremenko "Technologov" --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-doc+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-doc+help@opensuse.org
Hi Alexey, On Samstag, 21. April 2007, Alexey Eremenko wrote:
How to make color background in LfL Docbook XML ?
This would be great for this: http://www.virtualbox.org/wiki/Guest_OSes
Use a processing instruction (PI) with the target dbhtml, for example: <?dbhtml bgcolor="RGB_COLOR_CODE"?> Replace RGB_COLOR_CODE with a RGB value or a color name, for example "#DDAAFF" or "red". Depending where you place the PI you can set the background color for a cell only or for a row: <table> <title>...</title> <tgroup cols="2"> <tbody> <row> <entry><?dbhtml bgcolor="#96a7ca"?>Cell with background</entry> <entry>Cell with standard background</entry> </row> <row><?dbhtml bgcolor="#EEEEEE" ?> <entry>Cell 1/entry> <entry>Cell 2</entry> </row> </tbody> </tgroup> </table> Always keep legibility in mind if you insert colors. The above PI works for HTML only. You need an additional PI for PDF: <?dbfo bgcolor="RGB_COLOR_CODE"?> Please be careful with colors in PDF as they are printed in grayscale normally. Some combinations of background and foreground colors lead to almost unreadable text. Probably the safest way is to avoid it and try to add an additional column with further explanations and a legend/caption or use table footnotes. Bye, Tom -- ---------------------------------------------------------------------- SUSE LINUX Products GmbH >o) Maxfeldstrasse 5 /\\ Documentation Specialist 90409 Nuernberg, Germany _\_v http://en.opensuse.org/Documentation_Team SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-doc+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-doc+help@opensuse.org
On 4/21/07, Thomas Schraitle <thomas.schraitle@suse.de> wrote:
Hi Alexey,
On Samstag, 21. April 2007, Alexey Eremenko wrote:
How to make color background in LfL Docbook XML ?
This would be great for this: http://www.virtualbox.org/wiki/Guest_OSes
Use a processing instruction (PI) with the target dbhtml, for example:
<?dbhtml bgcolor="RGB_COLOR_CODE"?>
Replace RGB_COLOR_CODE with a RGB value or a color name, for example "#DDAAFF" or "red". Depending where you place the PI you can set the background color for a cell only or for a row:
<table> <title>...</title> <tgroup cols="2"> <tbody> <row> <entry><?dbhtml bgcolor="#96a7ca"?>Cell with background</entry> <entry>Cell with standard background</entry> </row> <row><?dbhtml bgcolor="#EEEEEE" ?> <entry>Cell 1/entry> <entry>Cell 2</entry> </row> </tbody> </tgroup> </table>
Always keep legibility in mind if you insert colors. The above PI works for HTML only. You need an additional PI for PDF:
<?dbfo bgcolor="RGB_COLOR_CODE"?>
Please be careful with colors in PDF as they are printed in grayscale normally. Some combinations of background and foreground colors lead to almost unreadable text.
Probably the safest way is to avoid it and try to add an additional column with further explanations and a legend/caption or use table footnotes.
Bye, Tom
Well, how about adding colors to HTML only, leaving PDF normal ? -- -Alexey Eremenko "Technologov" --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-doc+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-doc+help@opensuse.org
Hi Alexey, On Samstag, 21. April 2007, Alexey Eremenko wrote:
[...]
Please be careful with colors in PDF as they are printed in grayscale normally. Some combinations of background and foreground colors lead to almost unreadable text.
Probably the safest way is to avoid it and try to add an additional column with further explanations and a legend/caption or use table footnotes.
Well, how about adding colors to HTML only, leaving PDF normal ?
IMHO this is dangerous. The background colors reflect some meaning and it's good practise to describe it somewhere, for example in a legend or in a caption. If you refer in your text to backgound colors and they do not appear in PDF the reader is confused and has no way to find it out. Therefor my warning to be careful about this. :) Bye, Tom -- ---------------------------------------------------------------------- SUSE LINUX Products GmbH >o) Maxfeldstrasse 5 /\\ Documentation Specialist 90409 Nuernberg, Germany _\_v http://en.opensuse.org/Documentation_Team SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-doc+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-doc+help@opensuse.org
Well, how about adding colors to HTML only, leaving PDF normal ?
IMHO this is dangerous. The background colors reflect some meaning and it's good practise to describe it somewhere, for example in a legend or in a caption. If you refer in your text to backgound colors and they do not appear in PDF the reader is confused and has no way to find it out. Therefor my warning to be careful about this. :)
I agree with toms. You should only use the colors at all if they have some significant meaning. This means that they need to be described. And if they are so important, why can they be skipped so easily in PDF? --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-doc+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-doc+help@opensuse.org
participants (3)
-
Alexey Eremenko
-
Rebecca Walter
-
Thomas Schraitle