# [tex-live] Fontspec overriding default paper size with LuaTeX

David Carlisle d.p.carlisle at gmail.com
Thu May 26 15:55:19 CEST 2016

>
>
> \documentclass{article}
\begin{document}
Hello World!
\end{document}

yields A4 output with all of TeX+dvips, pdfTeX and XeTeX. Only LuaTeX gives
US Letter.

The internal page size setting in the pdf is whatever your local
customisation is, but
the _latex_ typesets that as US letter, the text block and left margin are
set to center it on a US letter page
if you view it or print it on A4 it just sort of accidentally works as they
are not that different.

If you load a driver that knows about the back end the back end will be
informed that this is a us letter document and
set things up accordingly.

It's been that way with pdftex since latex had a standard driver  .def
configuration in 1994.

If you specify [a4paper] the text block and margins are set for A4, and (if
the internal pdf page size will be set to match, even if your local default
is US letter.

So the unfortunate part is that the specified pdf page size only matches
the size used for typesetting
if a package is loaded. But that's due to compatibility with latex 2.09 and
no standard dvi driver page configuration
at that time. It's a wart in the system but had relatively few complaints
about it in all that time:-)

David

On 26 May 2016 at 14:35, Bruno Voisin <bvoisin at icloud.com> wrote:

> > Le 26 mai 2016 à 15:28, David Carlisle <d.p.carlisle at gmail.com> a écrit
> :
> >
> > so far it looks like expected behaviour, I don't see a bug.
> >
> > \documentclass{article}
> >
> > specifies a USletter document and (once you load a package that knows
> > anything about the back end) that is what you are getting.
>
> Not here (Mac with MacTeX-2016 pretest, everything set up for A4 paper --
> through tlmgr I believe -- at install time, no specific customization):
>
> \documentclass{article}
> \begin{document}
> Hello World!
> \end{document}
>
> yields A4 output with all of TeX+dvips, pdfTeX and XeTeX. Only LuaTeX
> gives US Letter.
>
> Bruno
>
>

--
http://dpcarlisle.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/tex-live/attachments/20160526/9fd2a9b3/attachment.html>