OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook] How to decrease font in the code examples


The attribute-set named 'monospace.verbatim.properties' lets you set 
properties on all programlisting elements.  See this reference:

http://www.sagehill.net/docbookxsl/ProgramListings.html#ReduceFontSize

If you only want to change the size when a programlisting is within an 
example element, then you would need to use an xsl:choose statement within 
the font-size attribute setting, as shown in the example (but you would use 
a different test, testing for ancestor::example).

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Markus Innerebner" <markus@innerebner.net>
To: <docbook@lists.oasis-open.org>
Sent: Wednesday, May 16, 2007 2:24 AM
Subject: [docbook] How to decrease font in the code examples


> Hello to everyone,
>
> I am trying to decrease the font size of the examples.
>
>    <para>
>      <example>
>        <title>My First Example</title>
>        <programlisting>
>        <![CDATA[
>          <root>
>             <child id="123"/>
>          </root>
>       ]]>
>      </programlisting>
>      </example>
>    </para>
>
>
> Is there a way to specify it somewhere? The problem is, I have a big xml 
> document,  that actually occupies the hole page.
> Therefore I want to decrease the font of the example.
>
> Thanks for any help
>
> Markus
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-help@lists.oasis-open.org
>
>
> 




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]