[XeTeX] Generating cropped PDF graphics file

R (Chandra) Chandrasekhar chandra at ee.uwa.edu.au
Wed Apr 16 10:04:36 CEST 2008

William Adams wrote:

> \usepackage{geometry} to set the xelatex file to the correct size to  
> begin with.

I have included below a sample file of the sort I am working with:
% logo.tex
% Demo file to generate a sample logo
\usepackage[active,tightpage,xetex]{preview} % Does not work with xelatex
\setlength\PreviewBorder{0pt} % valid with tightpage option
\setmainfont{Minion Pro}
\definecolor[named]{lettercolor}{cmyk}{0, 0.75, 0.75, 0.50}
\definecolor[named]{linecolor}{cmyk}{0.5, 0.1, 0.5, 0.25}

Given that the "bounding box" of the logo text is not known beforehand, how 
might I use the geometry package to the correct size initially in the preamble?


16 Apr 08

More information about the XeTeX mailing list