KTUG 한국 텍 사용자 그룹

Menu

KTUG :: Q&A 마당 › .cls 파일에 정의된 이름을 무효화하는 명령어?

lazyswamp | 2018.01.20 17:38:24 | 메뉴 건너뛰기 쓰기

 

화살표 위에 심볼을 올릴 수 있는 \xrightarrow를 사용하기 위해 \usepackage{amsmath}를 두었습니다만,

제가 사용하는 (저널에서 사용하라고 제공한) .cls 파일에 equation* 명령어가 다음과 같이 정의되어서

\@namedef{equation*}{$$}
\@namedef{endequation*}{$$}
amsmath의 equation*와 이 .cls의 equation*가 충돌이 발생합니다. 그 결과 이 이름이 이미 정의되었다는 레이텍 컴파일 에러가 아래와 같이 발생합니다.

 

(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsmath.sty

For additional information on amsmath, use the `?' option.

(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amstext.sty

(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsgen.sty))

(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsbsy.sty)

(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsopn.sty)

 

! LaTeX Error: Command \equation* already defined.

Or name \end... illegal, see p.192 of the manual.

 

See the LaTeX manual or LaTeX Companion for explanation.

Type H <return> for immediate help.

...

 

l.2738 }

 

================

.cls 파일에서 equation*를 정의하는 부분을 주석 처리하면 충돌나지 않고 컴파일에 문제가 없네요.

.cls 파일을 건드리지 않고, 제 latex source 파일에서 이 이름을 undefined 되게 무효화하는 명령어는 없을까요?

 

감사합니다!!

 

 

 

댓글 [10]

댓글 쓰기

목록 삭제

KTUG 한국 텍 사용자 그룹