pgf, xetex, and landscape

So I am starting to use the pgf package for graphics in LaTeX, because it rocks. The biggest thing is that it is compatible with both postscript and pdf output, which is very nice. I have been using mostly pdftex lately, because it means a faster compile time, and has other features like advanced typography (more on that in a different post).

I have also been toying around with XeTeX, which allows one to use any old font with latex, and do some really fancy things as well (see The beauty of LaTeX). And finally, I am working on a greeting card, which I want to print in landscape mode. To do all of this, I found I need to do the following

In the preamble, include the following:

\def\pgfsysdriver{pgfsys-dvipdfm.def}
\usepackage{pgf}

and when compiling, use

xelatex -output-driver=xdvipdfmx -papersize="letter -l" %

Join 165 other subscribers

archives

  • 2024 (10)
  • 2023 (8)
  • 2022 (15)
  • 2021 (19)
  • 2020 (1)
  • 2019 (1)
  • 2018 (2)
  • 2017 (1)
  • 2016 (2)
  • 2015 (5)
  • 2014 (5)
  • 2013 (2)
  • 2011 (7)
  • 2010 (10)
  • 2009 (50)
  • 2008 (28)
  • 2007 (31)
  • 2006 (8)

Category