有一个*.eps尺寸正好6.5 英寸 x 6.5 英寸(无白色边框)。此图形需要精确放置在文档内,文档的宽度为 a \textwidth
= 6.5 英寸。
从逻辑上讲,*.eps 应该完全占据\textwidth
空间(正好是 6.5 英寸),但由于某些未知的原因,输出中仍留有空间(很少pt
)*.pdf
,如下所示。
(*.eps 图形不能缩放,因为其物理尺寸(英寸)需要在最终出版时保留。)
使用带有 TexLive 的 LuaTex。
\RequirePackage[l2tabu, orthodox]{nag}
\RequirePackage{fix-cm}
\overfullrule=1mm
\documentclass[11pt,draftclsnofoot,onecolumn,conference]{IEEEtran}
\usepackage[showframe,pass]{geometry}
%\usepackage[pass]{geometry}
\usepackage[]{layout}
\usepackage{graphicx}
\usepackage[cmex10]{amsmath}
\interdisplaylinepenalty=2500
\usepackage{amssymb}
\usepackage{amsfonts}
%\usepackage{caption}
\usepackage{subcaption}
%\usepackage[labelformat=simple]{subcaption}
%\usepackage{subfig}
%\usepackage[caption=false]{subfig}
\usepackage[noadjust]{cite}
\usepackage{epstopdf}
%\usepackage[outdir=./]{epstopdf}
\usepackage[x11names]{xcolor}
\usepackage{setspace}
%\usepackage{showkeys}
%\usepackage[disable,colorinlistoftodos]{todonotes}
\usepackage[obeyDraft,colorinlistoftodos]{todonotes}
\usepackage[T1]{fontenc}
%\usepackage[utf8]{inputenc}
\usepackage{charter}
\usepackage{environ}
\usepackage{tikz}
\usetikzlibrary{calc,matrix}
\usepackage[section]{placeins} % it keeps the figures in the respective section
\usepackage{stackengine}
\usepackage{microtype}
\usepackage[colorlinks]{hyperref}
\hypersetup{%
colorlinks = true,
citecolor=Green4,
linkcolor = blue
}
\pagebreak
% *** GRAPHICS RELATED PACKAGES ***
%
\ifCLASSINFOpdf
% \usepackage[pdftex]{graphicx}
% declare the path(s) where your graphic files are
% \graphicspath{{../pdf/}{../jpeg/}}
% and their extensions so you won't have to specify these with
% every instance of \includegraphics
% \DeclareGraphicsExtensions{.pdf,.jpeg,.png}
\else
% or other class option (dvipsone, dvipdf, if not using dvips). graphicx
% will default to the driver specified in the system graphics.cfg if no
% driver is specified.
% \usepackage[dvips]{graphicx}
% declare the path(s) where your graphic files are
% \graphicspath{{../eps/}}
% and their extensions so you won't have to specify these with
% every instance of \includegraphics
% \DeclareGraphicsExtensions{.eps}
\fi
% graphicx was written by David Carlisle and Sebastian Rahtz. It is
% required if you want graphics, photos, etc. graphicx.sty is already
% installed on most LaTeX systems. The latest version and documentation can
% be obtained at:
% correct bad hyphenation here
\hyphenation{}
\begin{document}
\begin{figure}[h]
% \centering
% \captionsetup{justification=centering}
\includegraphics[width=6.5in,height=6.5in,keepaspectratio]{out.eps}
\caption{My caption}
\label{f02}
\end{figure}
\layout
\end{document}