
나는 내 논문에서 Algorithm2e 패키지를 사용하고 있는데 어떤 이유에서인지 TexStudio는 어떤 메시지나 줄 번호도 없는 Algorithm2e.sty에서 이 두 가지 경고를 보고하고 있습니다.
이러한 경고의 출처를 확인하기 위해 탭을 활성화하면 Issues and Log
로그 파일의 다음 출력에서 별표가 포함된 줄을 가리키는 것 같습니다.
********************************************************
Package `algorithm2e' Release 5.0 -- january 06 2013 --
- [email protected] mailing list for announcement about releases
- [email protected] mailing list for discussion about package
subscribe by emailing [email protected] with 'subscribe <list> <firstname name>'
- Author: Christophe Fiorio ([email protected])
********************************************************
어딘가에 실제 경고가 있는지 또는 TexStudio가 이를 잘못 해석한 것인지는 알 수 없습니다.
실제로 이러한 경고는 다른 곳에서 오는 것입니까? 아니면 TexStudio가 잘못 해석한 것일까요?
답변1
메시지는 다음 줄로 인해 발생합니다 algorithm2e.sty
.
1214 %%%%%%%%%%%%%%%%%%%%%%%%%%%%% Main Part %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1215 %
1216 \newcommand{\algocf@name}{algorithm2e}%
1217 \newcommand{\algocf@date}{january 06 2013}%
1218 \newcommand{\algocf@version}{Release 5.0}%
1219 \newcommand{\algocf@id}{\algocf@version\space -- \algocf@date\space --}%
1220 \typeout{********************************************************^^JPackage `\algocf@name'\space\algocf@id^^J%
1221 - [email protected] mailing list for announcement about releases^^J%
1222 - [email protected] mailing list for discussion about package^^J%
1223 subscribe by emailing [email protected] with 'subscribe <list> <firstname name>'^^J%
1224 - Author: Christophe Fiorio ([email protected])^^J********************************************************}%
불행하게도 패키지 코드를 변경하거나 다음과 같은 불쾌한 트릭을 사용하지 않고서는 메시지를 제거하는 것이 불가능합니다.
\let\latextypeout\typeout\def\typeout#1{}
\usepackage{algorithm2e}
\let\typeout\latextypeout
나는 추천하지 않을 것입니다.
대신 코드는 다음을 사용해야 합니다 \PackageInfo
.
\PackageInfo{algorithm2e}{%
********************************************************\MessageBreak
Package `\algocf@name'\space\algocf@id\MessageBreak
- [email protected] mailing list for announcement about releases\MessageBreak
- [email protected] mailing list for discussion about package\MessageBreak
subscribe by emailing [email protected] with 'subscribe <list> <firstname name>'\MessageBreak
- Author: Christophe Fiorio ([email protected])\MessageBreak
********************************************************%
}
이렇게 하면 터미널 출력 대신 로그 파일에만 정보가 기록되므로 TeXStudio의 파서가 혼동되는 것 같습니다.