首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >胶乳定理不把文本用2列括起来。

胶乳定理不把文本用2列括起来。
EN

Stack Overflow用户
提问于 2017-12-28 12:20:30
回答 1查看 905关注 0票数 4

下面的乳胶码产生一个定义,它的文本与第二列重叠。ijcai18包使它成为一篇2栏的文章,所以可能存在问题吗?我不知道怎么读。

代码语言:javascript
复制
\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}
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-12-28 17:28:04

会议风格没有添加任何与定理相关的功能。因此,\newtheorem{definition}[.]{Definition}仍然依赖于LaTeX最初的定义来创建类似定理的环境。

在LaTeX中,通过\newtheorem定义的定理被设为一个列表,整个定理由一个奇异的\item组成。定理的标题作为可选参数传递给\item (即\item[<theorem title stuff>] ),该可选参数设置在不允许断线的框内。

下面,我重新定义了专门为具有可选参数的定理设置\item的部分(就像在您的例子中,\begin{definition}[..])。下面是最初的定义(来自LaTeX内核):

代码语言:javascript
复制
\def\@opargbegintheorem#1#2#3{\trivlist
  \item[\hskip \labelsep{\bfseries #1\ #2\ (#3)}]\itshape}

这是修改后的定义:

代码语言:javascript
复制
\def\@opargbegintheorem#1#2#3{\trivlist
   \item[]{\bfseries #1\ #2\ (#3)} \itshape}

代码语言:javascript
复制
\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}
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48007420

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档