1

I'm writing my thesis. To be printed, the paper must have a height of 24cm and a width of 16cm. The margins must be of 2cm.

\geometry{paperheight=24cm,paperwidth=16cm,centering,textheight=20cm,textwidth=12cm}

The first version that I've submitted in April had the right dimensions. Now, I have to modify the text. When I start to modify the text, without changing anything in the packages that I use, the compilation gives me the right textwidth and textheight BUT not the right paper size (it seems to be an a4paper or something like this. Even by changing the paperheight and paperwidth in the option of the geometry package, nothing is changing. The log file gives me:

*geometry* driver: auto-detecting
*geometry* detected driver: dvips
*geometry* verbose mode - [ preamble ] result:
* driver: dvips
* paper: custom
* layout: <same size as paper>
* layoutoffset:(h,v)=(0.0pt,0.0pt)
* hratio: 1:1
* vratio: 1:1
* modes: twoside 
* h-part:(L,W,R)=(56.9055pt, 341.43306pt, 56.90552pt)
* v-part:(T,H,B)=(56.9055pt, 569.05511pt, 56.90552pt)
* \paperwidth=455.24408pt
* \paperheight=682.86613pt
* \textwidth=341.43306pt
* \textheight=569.05511pt
* \oddsidemargin=-15.36449pt
* \evensidemargin=-15.36447pt
* \topmargin=-45.43198pt
* \headheight=12.0pt
* \headsep=18.06749pt
* \topskip=10.0pt
* \footskip=25.29494pt
* \marginparwidth=125.0pt
* \marginparsep=7.0pt
* \columnsep=10.0pt
* \skip\footins=9.0pt plus 4.0pt minus 2.0pt
* \hoffset=0.0pt
* \voffset=0.0pt
* \mag=1000
* \@twocolumnfalse
* \@twosidetrue
* \@mparswitchtrue
* \@reversemarginfalse
* (1in=72.27pt=25.4mm, 1cm=28.453pt)

Does anybody know what is wrong with my latex file ?

Thank you !

  • Which engine are you using? – Joseph Wright May 20 '16 at 15:27
  • I'm using TeXMaker 4.4.1 with MiKTeX 2.9. – Xavier May 20 '16 at 15:29
  • Yes, but pdfTeX, XeTeX, LuaTeX, ...? – Joseph Wright May 20 '16 at 15:30
  • Oups sorry: pdfTeX. – Xavier May 20 '16 at 15:32
  • 1
    2.54cm=1in=72.27pt so 24cm=682.866...pt you're fine – touhami May 20 '16 at 15:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.