baposter icon indicating copy to clipboard operation
baposter copied to clipboard

wrong poster size with xelatex

Open GoogleCodeExporter opened this issue 10 years ago • 7 comments

What steps will reproduce the problem?
1. Compile with xelatex.

What is the expected output? What do you see instead?

The generated pdf is expected to be of a0 size, but with xelatex the pdf page 
covers only the top-left corner.

What version of the product are you using? On what operating system?

MiKTeX 2.9 on Windows 7 x64

Please provide any additional information below.

I suspect that this has something to do with geometry or font setup. I tried 
with giving xetex as driver for geometry in baposter.cls, but no success.

Original issue reported on code.google.com by [email protected] on 9 Apr 2013 at 6:28

Attachments:

GoogleCodeExporter avatar Dec 15 '15 10:12 GoogleCodeExporter

I figured out, based on a post on the Internet regarding a different issue, 
this is due to a bug in pgfpages. Perhaps the author may add the following into 
baposter.cls following \usepackage{pgfpages}:

\usepackage{ifxetex}
\ifxetex
\renewcommand\pgfsetupphysicalpagesizes{%
    \pdfpagewidth\pgfphysicalwidth\pdfpageheight\pgfphysicalheight%
}
\fi

Original comment by [email protected] on 10 Apr 2013 at 2:48

GoogleCodeExporter avatar Dec 15 '15 10:12 GoogleCodeExporter

I put the text following \usepackage{pgfpages} in baposter.cls , however  it 
dose not
work,  can you help?

\usepackage{ifxetex}
\ifxetex
\renewcommand\pgfsetupphysicalpagesizes{%
    \pdfpagewidth\pgfphysicalwidth\pdfpageheight\pgfphysicalheight%
}
\fi

Original comment by [email protected] on 3 Sep 2013 at 4:25

GoogleCodeExporter avatar Dec 15 '15 10:12 GoogleCodeExporter

Sorry, I have no idea what xetex is, and how it interacts with pgfpages.

Brian

Original comment by [email protected] on 4 Sep 2013 at 12:53

GoogleCodeExporter avatar Dec 15 '15 10:12 GoogleCodeExporter

[deleted comment]

GoogleCodeExporter avatar Dec 15 '15 10:12 GoogleCodeExporter

[deleted comment]

GoogleCodeExporter avatar Dec 15 '15 10:12 GoogleCodeExporter

I can confirm this works

Original comment by [email protected] on 3 Jun 2014 at 7:13

GoogleCodeExporter avatar Dec 15 '15 10:12 GoogleCodeExporter

@Brian Amberg: XeTeX is a newer LaTeX compiler, with (among other improvements) 
much better support for using non-default fonts. It's included in most major 
TeX distributions, including TeX Live, MiKTeX and MacTeX 
http://en.wikipedia.org/wiki/XeTeX

And I can also confirm that inserting 

\usepackage{ifxetex}
\ifxetex
\renewcommand\pgfsetupphysicalpagesizes{%
    \pdfpagewidth\pgfphysicalwidth\pdfpageheight\pgfphysicalheight%
}
\fi

directly following \usepackage{pgfpages} solves this problem.

Original comment by [email protected] on 4 Jun 2014 at 12:49

GoogleCodeExporter avatar Dec 15 '15 10:12 GoogleCodeExporter