docbook: Screen colour


Previous by date: 16 Jan 2003 15:42:27 -0000 Re: Stick a fork in it, it's done..., David Horton
Next by date: 16 Jan 2003 15:42:27 -0000 Re: Screen colour, Greg Ferguson
Previous in thread: 16 Jan 2003 15:42:27 -0000 Screen colour, Jacob C
Next in thread: 16 Jan 2003 15:42:27 -0000 Re: Screen colour, Greg Ferguson

Subject: Re: Screen colour
From: "Dennis Grace" ####@####.####
Date: 16 Jan 2003 15:42:27 -0000
Message-Id: <OF4F106BE8.705BDBD6-ON85256CB0.0055638A@pok.ibm.com>

HI Jacob,

I don't know what CSS file you're talking about, unless you've seen someone
discussing the use of DocBook Slides or DocBook Website, which both use
CSS2 adjuncts.

As for changing the <screen> background colors, I have a method.

Instead of setting the shade.verbatim property (I don't care for the
default that it produces, anyway), add the following to your customization
layer. Note, that I have my verbatim shading set to #E0E0E0 and a width of
90%, but you can insert any color and width that you like. Note also, that
my customization for the <programlisting>, <screen>, and <synopsis> tags,
but you can change the template match to "screen" only, if you want to
differentiate. To use this customization, you'll need the shade.verbatim
property in your html/param.xsl file set to "0".

<xsl:template match="programlisting|screen|synopsis">
   <xsl:param name="suppress-numbers" select="'0'"/>
   <xsl:variable name="vendor" select="system-property('xsl:vendor')"/>
   <xsl:variable name="id"><xsl:call-template
  name="object.id"/></xsl:variable>

   <xsl:if test="@id">
     <a href="{$id}"/>
   </xsl:if>

   <xsl:choose>
     <xsl:when test="$suppress-numbers = '0'
                     and @linenumbering = 'numbered'
                     and $use.extensions != '0'
                     and $linenumbering.extension != '0'">
       <xsl:variable name="rtf">
         <xsl:apply-templates/>
       </xsl:variable>
       <table border="0" bgcolor="#E0E0E0" width="90%">
       <tr><td>
       <pre class="{name(.)}">
         <xsl:call-template name="number.rtf.lines">
           <xsl:with-param name="rtf" select="$rtf"/>
         </xsl:call-template>
       </pre>
       </td></tr></table>
     </xsl:when>
     <xsl:otherwise>
       <table border="0" bgcolor="#E0E0E0" width="90%">
       <tr><td>
       <pre class="{name(.)}">
         <xsl:apply-templates/>
       </pre>
       </td></tr></table>
     </xsl:otherwise>
   </xsl:choose>
 </xsl:template>

 Dennis Grace

 Information Developer
 IBM Linux Technology Center
 (512) 838-3937  T/L 678-3937  cell: (512)-296-7830
 ####@####.####

 There are only 10 kinds of people in the world: those who understand
 binary and those who don't.


                                                                                                                                       
                      "Jacob C"                                                                                                        
                      <jacob@keystreams        To:       ####@####.####                                                         
                      .com>                    cc:                                                                                     
                                               Subject:  Screen colour                                                                 
                      01/15/2003 05:47                                                                                                 
                      PM                                                                                                               
                                                                                                                                       
                                                                                                                                       



Is there any way to change the background color for <screen>? Also, I've
seen a lot of people discuss the CSS file that is supposedly created during
conversion (xsltproc only?). When I convert using openjade no CSS file is
produced - am I missing something?

Thanks in advance,
Jacob





Previous by date: 16 Jan 2003 15:42:27 -0000 Re: Stick a fork in it, it's done..., David Horton
Next by date: 16 Jan 2003 15:42:27 -0000 Re: Screen colour, Greg Ferguson
Previous in thread: 16 Jan 2003 15:42:27 -0000 Screen colour, Jacob C
Next in thread: 16 Jan 2003 15:42:27 -0000 Re: Screen colour, Greg Ferguson


  ©The Linux Documentation Project, 2014. Listserver maintained by dr Serge Victor on ibiblio.org servers. See current spam statz.