PDF default A4 or US Letter?

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

PDF default A4 or US Letter?

tsphillips
I am running asciidoctor on a Mac. I had thought the default paper size for PDF output was US Letter, but I am seeing A4 as the default. Is this normal? Should I declare the paper size explicitly in every document?

----
$ asciidoctor -v
Asciidoctor 1.5.4 [http://asciidoctor.org]
Runtime Environment (ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin15]) (lc:UTF-8 fs:UTF-8 in:- ex:UTF-8)

$ asciidoctor-pdf -v
Asciidoctor PDF 1.5.0.alpha.11 using Asciidoctor 1.5.4 [http://asciidoctor.org]
Runtime Environment (ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin15]) (lc:UTF-8 fs:UTF-8 in:- ex:UTF-8)

$ defaults read .GlobalPreferences AppleLanguages | tr -d [:space:] | cut -c2-3
en

$ defaults read -g AppleLocale
en_US
----
Reply | Threaded
Open this post in threaded view
|

Re: PDF default A4 or US Letter?

mojavelinux
Administrator
@tsphillips,

The default is now A4. This was changed in 1.5.0.alpha.11 by the following issue: https://github.com/asciidoctor/asciidoctor-pdf/issues/319

We live in a world that is split over default page size. In Europe, it tends to be A4, in the US it tends to be LETTER. There can only be one default. Since A4 is historically the default page size in PDF, we decided to make that the default.

You'll need to set the page size in your AsciiDoc document:

or in a custom theme.

:pdf-page-size: LETTER

or in a custom theme:

page:
  size: LETTER


Cheers,

-Dan

On Thu, May 19, 2016 at 1:49 PM, tsphillips [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I am running asciidoctor on a Mac. I had thought the default paper size for PDF output was US Letter, but I am seeing A4 as the default. Is this normal? Should I declare the paper size explicitly in every document?

----
$ asciidoctor -v
Asciidoctor 1.5.4 [http://asciidoctor.org]
Runtime Environment (ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin15]) (lc:UTF-8 fs:UTF-8 in:- ex:UTF-8)

$ asciidoctor-pdf -v
Asciidoctor PDF 1.5.0.alpha.11 using Asciidoctor 1.5.4 [http://asciidoctor.org]
Runtime Environment (ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin15]) (lc:UTF-8 fs:UTF-8 in:- ex:UTF-8)

$ defaults read .GlobalPreferences AppleLanguages | tr -d [:space:] | cut -c2-3
en

$ defaults read -g AppleLocale
en_US
----



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/PDF-default-A4-or-US-Letter-tp4683.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



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