I'm trying to create a basic template for an A4 paper document. As always when I try to do any sort of precision in Latex, there seem to be annoying random margins popping up.
A4 paper is exactly 297mm high and 210mm wide. I'm using the fullpage package with [cm]
, hence I should have a remaining usable height of 277mm and width of 190mm. However, if I create one or several minipages (above each other) I'd expect their cumulative height to have 277mm available and their cumulative width (on each row) 190mm. However, a \begin{minipage}[c][277mm][c]{190mm}
causes Latex to emit a warning that
- the
\hbox
is 28.45273pt too wide (this is precisely 1cm) and - the
\vbox
is 53.45273pt too high (1.89cm)
and distributing that width/height among several minipages causes newlines and newpages.
How can I get rid of all these margins, to allow a precise template down to the mm. I will later add appropriate margins, but I want to be able to control them.
Perhaps there is a better documentclass for (fairly naked) one-page documents? I think beamerposter would be overkill for what I want to do.
Here is a MWE:
\documentclass[a4paper]{article}
\usepackage[cm]{fullpage}
\usepackage{ngerman}
\usepackage[utf8]{inputenc}
\pagestyle{empty}
\pagenumbering{gobble}
\setlength{\parindent}{0pt}
\begin{document}
\begin{minipage}[c][277mm][c]{190mm}
\it Lorem ipsum
\end{minipage}
\end{document}
ngerman
package but rather\usepackage[ngerman]{babel}
.