最新 ACM latex 模板中新定理没有加粗

最新 ACM latex 模板中新定理没有加粗

最近我应用了最新的 ACM 程序模板(可在ACM ACM SIG 会议录模板将“ACM LaTeX2e 样式文件版本 2.8(2015 年 5 月 CLS)”链接到我的论文。生成的 PDF 没问题,但一些小改动似乎很奇怪。

一个变化是\newtheorem。我以前的代码:

\usepackage{amsmath}
\usepackage{amssymb}
%\usepackage{amsthm}
\usepackage{listings}
\usepackage{graphicx}
\usepackage{listings}
\usepackage{algorithm}% http://ctan.org/pkg/algorithms
\usepackage{algpseudocode}% http://ctan.org/pkg/algorithmicx
\usepackage{url}
\usepackage{booktabs}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{color}
\usepackage{courier}
\usepackage{xspace}
\usepackage{lipsum}



\newtheorem{myDefine}{Definition}
\newtheorem{mydef}{Rule}
\newtheorem{myFind}{Finding}
\lstset{basicstyle=\footnotesize\ttfamily,breaklines=false}

\begin{document}

\begin{myDefine}
The given two method handle graphs $G_{mh}$ = ($V$, $E$) and $G_{mh'}$ = ($V'$, $E'$) are equivalent if there exists two mapping functions, i.e., $f: V \to V'$ and $g: E \to E'$, so that the conditions $f(u) \in V', f(v) \in V'$, and $g(\{f(u),f(v)\}) \in E'$ are also true for any $u \in V, v \in V$, and \{$u,v$\} $\in E$. $G_{mh}$ represents the MHG that starts from the method handle $mh$.
\label{define1}
\end{myDefine} 

\end{document}

[ 原来的] [ 使用最新模板]

如您所见,使用最新模板时,原始模板中的“定义”和“规则”是粗体,但在最新模板中却不是。

如何修改模板让其和原有的保持一致?

答案1

您需要重新定义一些内部命令(\@begintheorem\@opargbegintheorem):

\documentclass{sig-alternate}

\makeatletter
\def\@begintheorem#1#2{%
    \parskip 0pt % GM July 2000 (for tighter spacing)
    \trivlist
    \item[%
        \hskip 10\p@
        \hskip \labelsep
        {{\bfseries #1\hskip 5\p@\relax#2.}}%
    ]
    \it
}
\def\@opargbegintheorem#1#2#3{%
    \parskip 0pt % GM July 2000 (for tighter spacing)
    \trivlist
    \item[%
        \hskip 10\p@
        \hskip \labelsep
        {\bfseries #1\ #2\       % This mod by Gerry to enumerate corollaries
   \setbox\@tempboxa\hbox{(#3)}  % and bracket the 'corollary title'
        \ifdim \wd\@tempboxa>\z@ % and retain the correct numbering of e.g. theorems
            \hskip 5\p@\relax    % if they occur 'around' said corollaries.
            \box\@tempboxa       % Gerry - Nov. 1999.
        \fi.}%
    ]
    \it
}
\makeatother

\newtheorem{myDefine}{Definition}
\newtheorem{mydef}{Rule}
\newtheorem{myFind}{Finding}

\begin{document}

\begin{myDefine}
\label{define}
A test definition
\end{myDefine} 

\begin{mydef}
\label{rule}
A test rule
\end{mydef} 

\end{document}

结果:

在此处输入图片描述

原始定义在我的示例代码中的两处用\sc(旧命令!)代替了。\bfseries

考虑到此更改是在 2013 年春季根据 ACM 会议和期刊的新规范做出的,因此对于新的会议和期刊,他们很可能会撤消您的修改。

相关内容