I work in a company that produces its product manual using Latex and have developed standard ways of generating a .pdf
document from a .tex
file. One or two of us have installed the CTAN build 2013 package over the CentOS default rpms. The rest of users are using the default CentOS LaTeX RPMS which are quite out of date as they're from the CTAN 2007 build.
I had come across a problem where documents were defaulting to US paper size format even though I was using the following \documentclass
in the TeX file header:
\documentclass[DIV=12,paper=A4,twoside]{scrartcl}
I thought that the statement
paper=A4
ensured that the formatting of the document output was A4. This was not the case! I found that the page size was still shown as 'US Letter' in the document properties in the pdf viewer. On the machines that had CTAN build 2013 package installed (and where the directory path was correctly set to ensure that the 2013 CTAN build was used) it was relatively simple thing to change the default paper size for the LaTeX environment using the command
tlmgr paper a4
However this command is not available where the LaTeX has been installed from the CentOS RPMS. Apparently it's not possible to install this utility on its own.
Is there a command to specify the A4 page size as a global default when you don't have the tlmgr
command available. One solution might be to use a command like
\usepackage[a4paper]{geometry}
In the .tex
header file that would ensure that A4 paper size is always used however I need to be sure that it won't interfere (or override) with the Koma scrartcl
document class?
I'd be very interested to get advice and thoughts from other users who've had this issue.
pdflatex
using the following command line:pdflatex \AtBeginDocument{\usepackage[a4paper]{geometry}} \input{<file>}
where<file>.tex
is the file you want to compile.