#1312 Support font size in verbatim texts

closed-fixed
5
2014-03-25
2013-09-09
Thomas Schraitle
No

Currently, any verbatim element (be it screen, programlisting, or synopsis) supports a keep-together pseudo-attribute from a dbfo PI:

<screen><?dbfo keep-together="always"?> ... </screen>

However, in some cases it would be very convenient to extend it that the user can adapt the font size:

<screen><?dbfo keep-together="always" font-size="8pt"?> ... </screen>

or even:

<screen><?dbfo font-size="8pt"?> ... </screen>

We could even try to select a <?dbfo ...?> as sibling:

<?dbfo font-size="8pt"?>
<screen> A </screen>
<para> ... </para>
<screen> B </screen>

That would allow us to set the font size for consecutive verbatim elements together (here for A and B). If a reader wants to reset it, we could use this syntax:

<?dbfo font-size="8pt"?>
<screen> A </screen>
<para> ... </para>
<?dbfo font-size=""?>
<screen> B </screen>

Discussion

  • Robert Stayton
    Robert Stayton
    2013-09-17

    • status: open --> pending-fixed
     
  • Robert Stayton
    Robert Stayton
    2014-01-20

    • Status: pending-fixed --> closed-fixed