anriseth / baposter

Automatically exported from code.google.com/p/baposter
GNU General Public License v3.0
14 stars 2 forks source link

wrong poster size with xelatex #44

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 buaas...@gmail.com on 9 Apr 2013 at 6:28

Attachments:

GoogleCodeExporter commented 8 years ago
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 buaas...@gmail.com on 10 Apr 2013 at 2:48

GoogleCodeExporter commented 8 years ago
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 markov...@gmail.com on 3 Sep 2013 at 4:25

GoogleCodeExporter commented 8 years ago
Sorry, I have no idea what xetex is, and how it interacts with pgfpages.

Brian

Original comment by brian.amberg@gmail.com on 4 Sep 2013 at 12:53

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I can confirm this works

Original comment by freer...@gmail.com on 3 Jun 2014 at 7:13

GoogleCodeExporter commented 8 years ago
@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 tomas.ly...@gmail.com on 4 Jun 2014 at 12:49