我在用informs3.cls模板来写论文。我在制作带有子图的图形时遇到了严重的困难。问题是:
subfigure
包已过时。subfig
与 不兼容hyperref
。subcaption
informs3
与模板冲突。
这是我在网上收集到的关于这个主题的其他问题。由于这种依赖关系,我尝试过这些包的每种组合都会引发一些错误。在这种情况下,我应该如何为 INFORMS 论文制作子图?
答案1
informs3
我尝试了一个与课堂使用相关的示例subfig
,并向其中添加了hyperref
。
subfig
实际上与并不存在真正的不兼容性hyperref
:交叉引用按预期变成了链接;锚点可能不是最佳的,但链接可以工作。
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Author template for Organization Science (orsc)
%% Mirko Janc, Ph.D., INFORMS, [email protected]
%% ver. 0.95, December 2010
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\documentclass[orsc,blindrev]{informs3}
\documentclass[orsc,nonblindrev]{informs3} % current default for manuscript submission
\DoubleSpacedXI % Made default on 4/4/2014 per request
%%\OneAndAHalfSpacedXI % current default line spacing
%%\OneAndAHalfSpacedXII
%%\DoubleSpacedXII
% If hyperref is used, dvi-to-ps driver of choice must be declared as
% an additional option to the \documentclass. For example
%\documentclass[dvips,orsc]{informs3} % if dvips is used
%\documentclass[dvipsone,orsc]{informs3} % if dvipsone is used, etc.
%%% ORSC uses endnotes!
\usepackage{endnotes}
\let\footnote=\endnote
\let\enotesize=\normalsize
\def\notesname{Endnotes}%
\def\enoteformat{\rightskip0pt\leftskip0pt\parindent=0em
\leavevmode\hbox{\makeenmark}}
% Private macros here (check that there is no clash with the style)
\usepackage[caption=false]{subfig}
% Natbib setup for author-year style
\usepackage{natbib}
\bibpunct[, ]{(}{)}{,}{a}{}{,}%
\def\bibfont{\small}%
\def\bibsep{\smallskipamount}%
\def\bibhang{24pt}%
\def\newblock{\ }%
\def\BIBand{and}%
\usepackage{hyperref}
%% Setup of theorem styles. Outcomment only one.
%% Preferred default is the first option.
\TheoremsNumberedThrough % Preferred (Theorem 1, Lemma 1, Theorem 2)
%\TheoremsNumberedByChapter % (Theorem 1.1, Lema 1.1, Theorem 1.2)
%% Setup of the equation numbering system. Outcomment only one.
%% Preferred default is the first option.
\EquationsNumberedThrough % Default: (1), (2), ...
%\EquationsNumberedBySection % (1.1), (1.2), ...
% In the reviewing and copyediting stage enter the manuscript number.
%\MANUSCRIPTNO{} % When the article is logged in and DOI assigned to it,
% this manuscript number is no longer necessary
%%%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%%%
% Outcomment only when entries are known. Otherwise leave as is and
% default values will be used.
%\setcounter{page}{1}
%\VOLUME{00}%
%\NO{0}%
%\MONTH{Xxxxx}% (month or a similar seasonal id)
%\YEAR{0000}% e.g., 2005
%\FIRSTPAGE{000}%
%\LASTPAGE{000}%
%\SHORTYEAR{00}% shortened year (two-digit)
%\ISSUE{0000} %
%\LONGFIRSTPAGE{0001} %
%\DOI{10.1287/xxxx.0000.0000}%
% Author's names for the running heads
% Sample depending on the number of authors;
% \RUNAUTHOR{Jones}
% \RUNAUTHOR{Jones and Wilson}
% \RUNAUTHOR{Jones, Miller, and Wilson}
% \RUNAUTHOR{Jones et al.} % for four or more authors
% Enter authors following the given pattern:
%\RUNAUTHOR{}
% Title or shortened title suitable for running heads. Sample:
% \RUNTITLE{Bundling Information Goods of Decreasing Value}
% Enter the (shortened) title:
%\RUNTITLE{}
% Full title. Sample:
\TITLE{Bundling Information Goods of Decreasing Value}
% Enter the full title:
%\TITLE{}
% Block of authors and their affiliations starts here:
% NOTE: Authors with same affiliation, if the order of authors allows,
% should be entered in ONE field, separated by a comma.
% \EMAIL field can be repeated if more than one author
\ARTICLEAUTHORS{%
\AUTHOR{Author1}
\AFF{Author1 affiliation, \EMAIL{}, \URL{}}
\AUTHOR{Author2}
\AFF{Author2 affiliation, \EMAIL{}, \URL{}}
% Enter all authors
} % end of the block
\ABSTRACT{%
Text of your abstract % Enter your abstract
}%
% Sample
%\KEYWORDS{deterministic inventory theory; infinite linear programming duality;
% existence of optimal policies; semi-Markov decision process; cyclic schedule}
% Fill in data. If unknown, outcomment the field
\KEYWORDS{}
\maketitle
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Samples of sectioning (and labeling) in ORSC
% NOTE: (1) \section and \subsection do NOT end with a period
% (2) \subsubsection and lower need end punctuation
% (3) capitalization is as shown (title style).
%
%\section{Introduction.}\label{intro} %%1.
%\subsection{Duality and the Classical EOQ Problem.}\label{class-EOQ} %% 1.1.
%\subsection{Outline.}\label{outline1} %% 1.2.
%\subsubsection{Cyclic Schedules for the General Deterministic SMDP.}
% \label{cyclic-schedules} %% 1.2.1
%\section{Problem Description.}\label{problemdescription} %% 2.
% Text of your paper here
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
occaecat cupidatat non proident, sunt in culpa qui officia deserunt
mollit anim id est laborum.\endnote{Lex I: Corpus omne perseverare
in statu suo quiescendi vel movendi uniformiter in directum, nisi quatenus a viribus
impressis cogitur statum illum mutare (excerpit de {\it Philosophi\ae\ Naturalis Principia Mathematica}).}
\begin{figure}[htp]
\centering
\subfloat[$\rho^2-\theta_1$ and $\rho^2-\theta_2$]{%
\includegraphics[width=0.45\textwidth]{example-image-a}%
}%
\subfloat[$\delta_1-\theta_1$ and $\delta_1-\theta_2$]{%
\includegraphics[width=0.45\textwidth]{example-image-b}%
}
\subfloat[The variation of $\theta_1$ with $\rho^2$ and $\delta_1$]{%
\includegraphics[width=0.45\textwidth]{example-image-c}%
}%
\subfloat[The variation of $\theta_2$ with $\rho^2$ and $\delta_1$]{%
\includegraphics[width=0.45\textwidth]{example-image}%
\label{subfigure}%
}
\medskip
\begin{minipage}{0.9\textwidth}
\small
(a) evaluated at $(\delta_0, \delta_1)=(0.1,0.01)$ and $(\alpha,\beta)=(1,1)$, \\
(b) evaluated at $(\delta_0,\rho^2)=(0.1,1)$ and $(\alpha,\beta)=(1,1)$, \\
and (c) (d) evaluated at $\delta_0=0.1$ and $(\alpha,\beta)=(1,1)$.
\end{minipage}
\medskip
\caption{The variation of $\theta_1$ and $\theta_2$ with respect to $\rho^2$and $\delta_1$}
\label{figure}
\end{figure}
Now we cite the subfigure~\ref{subfigure} in figure~\ref{figure}
\clearpage
Now we cite the subfigure~\ref{subfigure} in figure~\ref{figure}
% Acknowledgments here
\ACKNOWLEDGMENT{%
% Enter the text of acknowledgments here
}% Leave this (end of acknowledgment)
% Appendix here
% Options are (1) APPENDIX (with or without general title) or
% (2) APPENDICES (if it has more than one unrelated sections)
% Outcomment the appropriate case if necessary
%
% \begin{APPENDIX}{<Title of the Appendix>}
% \end{APPENDIX}
%
% or
%
% \begin{APPENDICES}
% \section{<Title of Section A>}
% \section{<Title of Section B>}
% etc
% \end{APPENDICES}
\bigskip
% Endnotes here
\theendnotes
\bigskip
% References here (outcomment the appropriate case)
% CASE 1: BiBTeX used to constantly update the references
% (while the paper is being written).
%\bibliographystyle{ormsv080} % outcomment this and next line in Case 1
%\bibliography{<your bib file(s)>} % if more than one, comma separated
% CASE 2: BiBTeX used to generate mypaper.bbl (to be further fine tuned)
%\input{mypaper.bbl} % outcomment this line in Case 2
\end{document}
答案2
回复晚了,但我最近遇到了这个问题。我将每个图放入一个子图环境中,将所有这些子图放入一个 minipage 中,然后将 minipage 作为 \FIGURE 的参数。
如果您要处理多个子表,则可以使用 \TABLE 执行相同的操作。