I am trying to work on a paper with specific size : 240mm x 160 mm. To generate my paper I am using pdflatex from texlive.
I used to do this :
\usepackage{ifpdf}
\ifpdf
\pdfpageheight=240mm
\pdfpagewidth=160mm
\else
\special{papersize=240mm,160mm}
\fi
It was working perfectly, but it is not compatible with TikZ (see my previous thread).
Someone told me to use geometry: unfortunately, it doesn't seem to work. Here is my rather simple code :
\documentclass[12pt,twoside,draft]{book}
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usepackage{geometry}
\usepackage[paperheight=240mm,paperwidth=160mm]{geometry}
\pdfpagewidth=\paperwidth
\pdfpageheight=\paperheight
\begin{document}
\end{document}
Unfortunately, the page is not correctly shaped... Any help would be really appreciated!
\pdfpage...
geometry will do that for you, has done for yearsgeometry
twice where the first is without options and the latter is with options.