Login  Register

Rendering in Landscape mode using asciidoctor-fopub

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Rendering in Landscape mode using asciidoctor-fopub

Daniel Hinojosa
17 posts
How do I render an asciidoctor-fopub into landscape mode instead of portrait.
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Rendering in Landscape mode using asciidoctor-fopub

mojavelinux
Administrator
2681 posts
Daniel,

Prompted by this question, I've updated the fopub script to pass parameters directly through to fop. One of those parameters you can set is the orientation.

Here's the command you can use to set the orientation:

./fopub README.xml -param page.orientation landscape

All arguments after the source file name (in this case, README.xml) are now passed to fop.

As an alternative, you can set the parameter directly in the fo-pdf.xsl template:

<xsl:param name="page.orientation">landscape</xsl:param>

You can also use this feature to set any parameter defined in DocBook XSL [1]

Cheers,

-Dan

p.s. Note that this feature is only available in the Unix version of the script atm.

[1] http://docbook.sourceforge.net/release/xsl/1.78.1/doc/param.html



On Wed, Nov 27, 2013 at 10:46 PM, Daniel Hinojosa [via Asciidoctor :: Discussion] <[hidden email]> wrote:
How do I render an asciidoctor-fopub into landscape mode instead of portrait.


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Rendering-in-Landscape-mode-using-asciidoctor-fopub-tp1148.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--