<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">From: Michiel Kamermans <<a href="mailto:pomax@nihongoresources.com">pomax@nihongoresources.com</a>> </blockquote>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Interesting. A test with xelatex for \documentclass[letterpaper]{article} also yields a PDF with A4 page dimensions... the geometry package, however, correctly sets page dimensions for letter:<br>
<br>
\documentclass[10pt]{article}<br>
\usepackage[paper=letterpaper]{geometry}<br>
<br>
- Mike "Pomax" Kamermans<br>
<a href="http://nihongoresources.com" target="_blank">nihongoresources.com</a><br></blockquote><div> </div><div>This is an OK work around for the time being (although I'd rather understand what are the internals involved). Thank you!<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">From: Vladimir Lomov <<a href="mailto:lomov.vl@gmail.com">lomov.vl@gmail.com</a>><br>
<br>
Try 'geometry' package. For example, add following lines into your<br>
document<br>
<code><br>
\usepackage{geometry}<br>
\geometry{letter,hmargin=2cm,vmargin=2cm}<br>
</code><br>
See 'geometry' package documentation.<br>
<br>
N.B. In order to always get correct paper size use 'geometry' package.<br>
It could help you in most cases.<br>
<br>
--<br>
No one goes to that restaurant anymore-it's always too crowded.<br>
(attributed to Yogi Berra)<br>
<br></blockquote><div> </div><div>Thanks to you too!<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">From: Paul Isambert <<a href="mailto:zappathustra@free.fr">zappathustra@free.fr</a>><br>
<br>TeX distributions have a default paper size, which might be A4.<br>
This doesn't explain why \documentclass[lettersize]{article} doesn't work, but it explains at least (I hope) why Maxim's second example still yields an A4 page.<br>
<br>
Paul<br>
<br></blockquote><div><br>I am pretty sure that my TeXLive distribution default paper type is letter. I've written other documents with XeLaTeX before and the resulting papersize would always be "letter" if not otherwise instructed. The current case is the exception.<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">From: Vladimir Lomov <<a href="mailto:lomov.vl@gmail.com">lomov.vl@gmail.com</a>><br>
<br>** Paul Isambert [2010-01-27 10:49:14 +0100]:<br>
<br>
> TeX distributions have a default paper size, which might be A4.<br>
> This doesn't explain why \documentclass[lettersize]{article} doesn't<br>
> work, but it explains at least (I hope) why Maxim's second example still<br>
> yields an A4 page.<br>
If I understand this correctly the 'letterpaper' option sets two special<br>
macros which are not passed to xelatex (or pdflatex) engine (in sense they<br>
don't know what this macros should do). The information about paper size<br>
is inserted into document in apropriate form by geometry<br>
package (with the help of \special command).<br></blockquote><div><br> XeLaTeX usually understands the paper type in the \documentclass declaration. I've tried setting a4paper in previous documents I had made and it worked alright. I tested it with both the article and memoir classes. So this seems to invalidate that there is a problem with XeLaTeX \documentclass papertype parsing.<br>
<br>Maxim<br></div></div>