使用 dvips 时的图像加载问题

使用 dvips 时的图像加载问题

当我将 dvips 从 移开时usepackage,图像加载,但边距会减小。如果我保留 dvips,图像不会显示在纸上。

thesis.tex 中的代码是

\documentclass[12pt,a4paper,twoside,openright]{report}

\usepackage[dvips]{graphicx}
\usepackage{tabularx}
\usepackage{subfigure}
\usepackage{afterpage}
\usepackage{amsmath,amssymb}            
\usepackage{rotating}  
\usepackage{fancyhdr}  
\usepackage[scriptsize]{caption} 

\usepackage[setpagesize=false]{hyperref}

\hyphenation{a-gen-tiz-za-zio-ne}

\setlength{\paperwidth}{16cm}
\setlength{\paperheight}{24cm}
\setlength{\oddsidemargin} {2. cm}
\setlength{\evensidemargin} {2. cm}
\addtolength{\oddsidemargin} {-0.4 cm}
\addtolength{\evensidemargin} {-0.4 cm}
\linespread{1.1}

\usepackage[italian,english]{babel}
\usepackage[latin1]{inputenc}
\renewcommand{\captionfont}{\normalfont \sffamily \itshape \small}


\pagestyle{empty}

\begin{document}
\include{cover}
\thispagestyle{empty} \normalfont \cleardoublepage
\include{dedication}
\thispagestyle{empty}  \cleardoublepage
\pagenumbering{arabic}
\include{abstract}
\thispagestyle{empty} \vspace*{.75truecm} \cleardoublepage
\include{thanks}
\thispagestyle{empty} \vspace*{.75truecm} \normalfont \cleardoublepage
\pagestyle{plain}\renewcommand{\chaptermark}[1]{\markboth{\chaptername\ \thechapter.\ #1}{}} 
\renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}         
\fancyhead[LE,RO]{\bfseries\thepage}    

\fancyhead[RE]{\bfseries\leftmark}    
\fancyhead[LO]{\bfseries\rightmark}     
\renewcommand{\headrulewidth}{0.3pt} 

\tableofcontents


\include{capitolo1}
\include{capitolo2}
\include{chapter3}

\cleardoublepage
% ---- Bibliography ----
\addcontentsline{toc}{chapter}{Bibliography}
\bibliographystyle{plain}
\bibliography{biblio}
%\nocite{*}

\appendix

\pagestyle{fancy} 
\fancyfoot{}                                               
\renewcommand{\chaptermark}[1]{\markboth{\appendixname\ \thechapter.\ #1}{}} 
\renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}         
\fancyhead[LE,RO]{\bfseries\thepage}    

\fancyhead[RE]{\bfseries\leftmark}    
\fancyhead[LO]{\bfseries\rightmark}     
\renewcommand{\headrulewidth}{0.3pt} 

\end{document}

cover.tex 中的代码是

\thispagestyle{empty}
%\begin{titlepage}
\vspace*{-1.5cm} \bfseries{
\begin{center}
  \large
  POLITECNICO DI MILANO\\
  \normalsize
  Corso di Laurea MAGISTRALE in Ingegneria Informatica\\
  Dipartimento di Elettronica e Informazione\\
  \begin{figure}[htbp]
    \begin{center}
      \includegraphics[width=3.5cm]{./pictures/logopm}
%   \psfig{file=./pictures/logopm.jpg,width=3.5cm}
    \end{center}
  \end{figure}
  \vspace*{0.3cm} \LARGE



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



  \vspace*{.75truecm} \large

\end{center}
\vspace*{3.0cm} \large
\begin{flushleft}


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

\end{flushleft}
\vspace*{1.0cm}
\begin{flushright}


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



\end{flushright}
\vspace*{0.5cm}
\begin{center}



  Anno Accademico 2016-2017
\end{center} \clearpage
}

答案1

dvips没有可与 一起使用的选项pdflatex,只需将其删除。

对于您的特定文档,这意味着现在您的纸张宽度、边距等设置都被考虑在内 - 因此请调整(或删除)这些数字以从选项中恢复您习惯的较大边距dvips

相关内容