Tuesday, August 18, 2015

How to configure XeLatex for US Letter (8.5x11 inches) pdf size?

Most conferences and journals only accept US Letter size formatted PDF. However, most latex compilers produce A4 size PDF by default. You need to explicitly tell the compiler to generate US Letter size.

XeLatex is one of those compilers that allow you to use both PDF and EPS figures. To configure XeLatex for US Letter size, follow this:

  • In whatever editor you are using, find the place where you provide arguments for XeLatex compiler. For texmaker, it is at "Preferences" or "Configure texmaker", depending on your version.
  • Add -papersize=letter to the arguments. The modified arguments should look something like this:
    • xelatex -synctex=1 -papersize=letter   -interaction=nonstopmode %.tex
  • Save and compile your code.