2017-12-28 22 views
1

다음 라텍스 코드는 텍스트가 두 번째 열과 겹치는 정의를 만듭니다. ijcai18 패키지는 2 열짜리 기사이므로 문제가있을 수 있습니까? 나는 그것을 읽는 법을 모른다.라텍스 정리가 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} 

답변

1

ijcai18 conference style은 정리 관련 기능을 추가하지 않습니다. 따라서 \newtheorem{definition}[.]{Definition}은 아직 정리와 같은 환경을 만들기위한 LaTeX의 원래 정의에 의존합니다. 라텍스

\newtheorem 통해 정의 정리는 단수 \item 이루어진 전체 정리 더불어 리스트로서 설정된다. 정리의 제목은 (즉, \item[<theorem title stuff>]이며,이 선택적 인수는 라인 파괴를 허용하지 않는 상자 안에 설정되어 \item에 선택적 인수로 전달됩니다.

나는를 설정하는 부분을 재정의 아래 . 특히 (귀하의 경우, \begin{definition}[..]처럼) 선택적 인수가있는 정리에 대한 \item 다음은 원래합니다 (LaTeX kernel에서) 정의입니다 :

\def\@opargbegintheorem#1#2#3{\trivlist 
    \item[\hskip \labelsep{\bfseries #1\ #2\ (#3)}]\itshape} 

enter image description here

여기 변경된 정의의 :

\def\@opargbegintheorem#1#2#3{\trivlist 
    \item[]{\bfseries #1\ #2\ (#3)} \itshape} 

enter image description here

\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} 
+0

영원히 감사! 그것은 문제를 해결했습니다. ijcar 패키지를 변경해야합니다. –

+0

@Oferstrichman : 다음 *이 대답을 수락하십시오. [어떻게 대답합니까?] (https://tex.meta.stackexchange.com/q/1852/5764)를 참조하십시오. – Werner