下面的乳胶码产生一个定义,它的文本与第二列重叠。ijcai18包使它成为一篇2栏的文章,所以可能存在问题吗?我不知道怎么读。
\documentclass{article}
\usepackage{ijcai18}
\usepackage{lipsum}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{definition}[theorem]{Definition}
\begin{document}
\begin{definition} [This is a long definition title that does not wrap to the next line]
...
\end{definition}
\lipsum[1-5]
\end{document}发布于 2017-12-28 17:28:04
会议风格没有添加任何与定理相关的功能。因此,\newtheorem{definition}[.]{Definition}仍然依赖于LaTeX最初的定义来创建类似定理的环境。
在LaTeX中,通过\newtheorem定义的定理被设为一个列表,整个定理由一个奇异的\item组成。定理的标题作为可选参数传递给\item (即\item[<theorem title stuff>] ),该可选参数设置在不允许断线的框内。
下面,我重新定义了专门为具有可选参数的定理设置\item的部分(就像在您的例子中,\begin{definition}[..])。下面是最初的定义(来自LaTeX内核):
\def\@opargbegintheorem#1#2#3{\trivlist
\item[\hskip \labelsep{\bfseries #1\ #2\ (#3)}]\itshape}

这是修改后的定义:
\def\@opargbegintheorem#1#2#3{\trivlist
\item[]{\bfseries #1\ #2\ (#3)} \itshape}

\documentclass{article}
\usepackage{ijcai18}% http://www.ijcai.org/authors_kit
\usepackage{lipsum}
\newtheorem{definition}{Definition}
\makeatletter
\def\@opargbegintheorem#1#2#3{\trivlist
\item[]{\bfseries #1\ #2\ (#3)} \itshape}
\makeatother
\begin{document}
\begin{definition}[This is a long definition title that does not wrap to the next line]
\lipsum[1]
\end{definition}
\lipsum[2-5]
\end{document}https://stackoverflow.com/questions/48007420
复制相似问题