when I moved the dvips from the usepackage, the image loaded but the margin will be reduced. If I kept the dvips, the image does not show on the paper.

the code in thesis.tex is





\setlength{\oddsidemargin} {2. cm}
\setlength{\evensidemargin} {2. cm}
\addtolength{\oddsidemargin} {-0.4 cm}
\addtolength{\evensidemargin} {-0.4 cm}

\renewcommand{\captionfont}{\normalfont \sffamily \itshape \small}


\thispagestyle{empty} \normalfont \cleardoublepage
\thispagestyle{empty}  \cleardoublepage
\thispagestyle{empty} \vspace*{.75truecm} \cleardoublepage
\thispagestyle{empty} \vspace*{.75truecm} \normalfont \cleardoublepage
\pagestyle{plain}\renewcommand{\chaptermark}[1]{\markboth{\chaptername\ \thechapter.\ #1}{}} 
\renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}         




% ---- Bibliography ----


\renewcommand{\chaptermark}[1]{\markboth{\appendixname\ \thechapter.\ #1}{}} 
\renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}         



and code in cover.tex is

\vspace*{-1.5cm} \bfseries{
  Corso di Laurea MAGISTRALE in Ingegneria Informatica\\
  Dipartimento di Elettronica e Informazione\\
%   \psfig{file=./pictures/logopm.jpg,width=3.5cm}
  \vspace*{0.3cm} \LARGE

  \textbf{Analysis of Different Footprints for JPEG Compression Detection}\\

  \vspace*{.75truecm} \large

\vspace*{3.0cm} \large

  Supervisor: Prof.Paolo Bestagini \\
  Associate Supervisor: Dr.Luca Bondi


  Tesi di Laurea di:\\ Chen Ke, matricola 833240 \\ 


  Anno Accademico 2016-2017
\end{center} \clearpage
  • 2
    you do not say but presumably you are not using latex and dvips but pdflatex? in which case remove the dvips option and then set whatever page size/margins you need using the geometry package. – David Carlisle Mar 25 '17 at 21:29
  • 1
    I think that at least knowing which engine are you using is in order... – Moriambar Mar 25 '17 at 21:40
  • 1
    but you have not said what program you are using to typeset the document (nor shown any usable code) if you are not using latex+dvips do not use the dvips option otherwise nothing will work. If th epage margins are wrong then the simplest way to fix them is using the geometry package as I said above. i can not guess what you mean by /setlength(/paperwidth=16cm,/paperheight=24cm,/oddsidemargin‌​=/evensidemargin=2cm‌​), /addtolength(/oddsidemargin=/evensidemargin=-0.4) as it isn't tex syntax at all – David Carlisle Mar 25 '17 at 22:05
  • 1
    @Chan, please move code from your comment to question! – Zarko Mar 25 '17 at 22:24
  • 1
    @Chan Thanks for adding the code to your question, but please can you replace the images with copyable code? We don't want to retype everything. And can you please answer the questions which tex engine you are using? – user36296 Mar 25 '17 at 22:34

dvips is no option to be used with pdflatex, simply remove it.

With your specific document, this means that now your setting for paperwidth, margins etc. are taken into account - so adjust (or remove) these numbers to get back the large margins you are used to from the dvips option.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.