Good suggestions, Lex. Another approach a lot of teams are taking,
including some of the docs teams at Red Hat, is to produce HTML, then use a
headless browser (such as wkhtmltopdf or phantomjs) to convert the HTML to
PDF.

The main problem with PDF (even in Asciidoctor PDF) is that PDF doesn't
have the equivalent of CSS. The DocBook toolchain provides a who bunch of
parameters to tweak the output {1}, but they fall well short of CSS. I'm
using a something akin to the variables found in Bootstrap to style the
output in Asciidoctor PDF {2}, but again, it's not CSS. Nothing beats CSS
for separating content and presentation.

-Dan

:1: http://docbook.sourceforge.net/release/xsl/current/doc/fo/
:2:
https://github.com/opendevise/asciidoctor-pdf/blob/master/data/themes/default-theme.yml



On Thu, Jun 19, 2014 at 2:44 AM, Lex Trotman <[email protected]> wrote:

> As Dan says in his post, the normal way of styling PDFs is toolchain
> dependent.
>
> An alternative toolchain that may be more amenable to non-programmers
> (or the XML allergic like me :) is to use asciidoc(tor) to create
> docbook and then use pandoc to convert that to ODT or use the
> experimental ODT backend of asciidoc.
>
> In ODT you can of course set up styles interactively.
>
> I am not sure how well either of these techniques works in anger, but
> both should work at least basically.
>
> Cheers
> Lex
>
> On 18 June 2014 22:58, 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.
>
> --
> 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