
LaTeX로 석사 논문을 쓰고 있는데 사용하고 싶습니다.minted
소스 코드 구문 강조를 위한 패키지입니다. 성공적으로 설치했으며 minted
문서의 최소한의 예도 제대로 작동합니다.
문제는 프라하 기술 대학에서 미리 정의된 문서 클래스인 FITthesis
. (첨부파일) 파일 인 것 같아요 Fitthesis.cls
.
명령 후에 pdflatex -shell-escape MintedTest
오류가 발생합니다.
! Undefined control sequence.
\set@color ...\@pdfcolorstack push{\current@color
}\aftergroup \reset@color
l.8 \begin{document}
이것은 최소한의 예입니다.
\documentclass[thesis=M,english]{FITthesis}[2012/10/20]
\usepackage{minted}
\begin{document}
\begin{minted}{c}
int main() {
printf("hello, world");
return 0;
}
\end{minted}
\end{document}
무엇을 해야할지 아이디어가 있나요? 저는 LaTeX 초보자입니다. 이 오류가 있는 파일을 찾지도 못했습니다.
Fitthesis.cls
로그 파일 및 파일 링크 :http://cl.ly/OGSm
답변1
이는 내부 색상 오류 없이 실행되며, 키워드 및 기타 데이터를 제공하지 않는다는 오류만 발생합니다.
\documentclass[thesis=M,english]{FITthesis}[2012/10/20]
\usepackage{color}
\usepackage{graphicx}
\makeatletter
\color{black}
\let\default@color\current@color
\makeatother
\department{ddd}
\title{ttt}
\supervisor{sss}
\author{aaa}
\authorFN{aaa}
\authorGN{aaa}
\begin{document}
aaa
\end{document}
답변2
삽입하면\RequirePackage{색상}~ 전에\AtBeginDocument{ ... }
수업시간에FITThesis.cls그것은 잘 작동합니다 ;-)