我刚刚保存了一个 .eps 文件,无法将其上传到 latex,并且它显示为照片中的样子,我该如何解决?这是代码,当我使用较小的尺寸时,它位于中心,但是对于这个,我稍微增加了一点,它就超出了中心
\begin{figure}[H]
\centering
\label{fig:f419}
\caption{Deflection and weight as functions of D11 and D12}
\includegraphics[width=15cm, height=8cm]{4-23.eps}
\end{figure}
这也是我的主要文件代码,我不知道如何制作一个最小的,我的意思是,我知道最小的链接,但这里太多了,令人困惑
\documentclass[11pt,a4paper,twoside,openright]{report}
\usepackage{setspace}
\usepackage{graphicx}
\usepackage{tabularx}
\usepackage{tabu}
\usepackage{subfigure}
\usepackage{afterpage}
\usepackage{amsmath,amssymb}
\usepackage{rotating}
\usepackage{fancyhdr}
\usepackage[scriptsize]{caption}
\hyphenation{a-gen-tiz-za-zio-ne}
\usepackage{float}
\usepackage[parfill]{parskip}
\graphicspath{ {images/} }
\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[USenglish]{babel}
\usepackage[latin1]{inputenc}
\renewcommand{\captionfont}{\normalfont \sffamily \itshape \small}
\pagestyle{empty}
\begin{document}
\include{frontespizio}
\thispagestyle{empty} \normalfont \cleardoublepage
\include{dedica}
\thispagestyle{empty} \cleardoublepage
\pagenumbering{Roman}
\include{sommario}
\thispagestyle{empty} \vspace*{.75truecm} \cleardoublepage
\include{ringraziamenti}
\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}
\include{capitolo1}
\include{capitolo2}
\include{capitolo3}
\include{capitolo4}
\include{capitolo5}
\include{capitolo6}
\include{capitolo7}
\cleardoublepage
% ---- Bibliography ----
\addcontentsline{toc}{chapter}{Bibliografia}
\bibliographystyle{plain}
\bibliography{bibl_tesi}
%\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}
\renewcommand\bibname{references}
\tableofcontents\addtocontents{toc}{\protect\thispagestyle{empty}}\newpage
\renewcommand\listfigurename{list of figures}\listoffigures
\renewcommand\listtablename{list of tables}\listoftables
%\phantomsection\addcontentsline{toc}{chapter}{list of symbols}\input{FrontMat/Symbols}
\include{appendiceA}
\include{appendiceB}
\include{appendiceC}
\include{appendiceD}
\include{appendiceE}
\include{appendiceF}
\include{references}
\end{document}
答案1
在最小化示例之后,以下是您可能想要的内容的猜测:
\documentclass[11pt,a4paper,twoside,openright]{report}
\usepackage[demo]{graphicx}
\usepackage{float}
\usepackage[scriptsize]{caption}
\usepackage[textwidth=160mm, textheight=240mm, hmarginratio=1:1, showframe]{geometry}
\pagestyle{empty}
\begin{document}
\begin{figure}[H]
\centering
\caption{Deflection and weight as functions of D11 and D12\label{fig:f419}}
\includegraphics[width=15cm, height=8cm]{4-23.eps}
\end{figure}
\end{document}