Mats,

This is where the block role comes in to play. You would first assign a
role to the paragraph that flags the content with additional semantics:

[role="reference"]
This paragraph is for reference purposes.

Than, you would need to alter the formatting rules to look for that role
and apply a different font size using the configuration appropriate to the
rendering technology.

You might also consider using one of the built-in blocks, such as a sidebar
or admonition block.

****
This paragraph is for reference purposes.
****

The tricky part is modifying the formatting rules for PDF. Again, this
lands you in the world of XSLT editing. You'd have to find the template
match for simpara, match the value of the role attribute, than set the font
size explicitly in the FO output. Once you learn how to customize the FO
output in the DocBook toolchain, then you'll get what you need to do.

-Dan


On Wed, Jun 18, 2014 at 7:58 AM, Mats Johnson <[email protected]> wrote:

> I haven't been able to figure out a way to create text with a smaller font
> size in asciidoctor.
> I don't want to change the text size of the whole document, but rather
> create a paragraph
> that uses a smaller text size. The point being that the text would not
> normally be read,
> but is there for reference purposes and should not be allowed to take up
> too much space.
>
> I could do it using CSS classes, but I am rendering ascidoc to docbook to
> pdf, so that does not work.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "asciidoc" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/asciidoc.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Dan Allen | http://google.com/profiles/dan.j.allen

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/d/optout.

Reply via email to