
이것이 약간 구체적이라는 것을 알고 있지만 이것은 지속적으로 오류를 생성하는 유일한 KOMA-Script 명령이며 어디에서도 해결책을 찾을 수 없기 때문에 미치게 만듭니다(그리고 저는 일반적으로 매우 철저합니다). 저는 Windows에서 KOMA가 내장된 TeXstudio를 환경으로 사용하고 있습니다.
[최종 업데이트]touhami가 게시한 답변을 참조하세요.
다음은 이 질문에서 직접 가져온 약간의 코드입니다 http://tex.stackexchange.com/questions/193178/specific-epigraph-style
.
\documentclass{scrbook}
\setkomafont{dictumtext}{\itshape\small}
\setkomafont{dictumauthor}{\normalfont}
\renewcommand*\dictumwidth{.75\linewidth}
\renewcommand*\dictumauthorformat[1]{--- #1}
\renewcommand*\dictumrule{}
\begin{document}
\thispagestyle{empty}
\vspace*{\fill}
\dictum[Lewis Carroll, \emph{Alice in Wonderland}]{Begin at the beginning, the King said gravely, ``and go on till you come to the end: then stop.''}
\end{document}
그리고 컴파일할 때 나타나는 오류 메시지는 다음과 같습니다.
\dictumrule undefined. \renewcommand*\dictumrule
대신 문서의 어딘가에 넣으면 \dictumrule
더 일반적인 오류 형식이 나타납니다.
Undefined control sequence. \dictumrule
구체적 으로 관련된 오류의 경우 \dictumrule
검색을 통해 찾은 유일한 오류는 LyX 도움말 사이트의 이 질문에서 나온 오류였습니다 http://t101479.editors-lyx-general.editortalk.info/changing-the-dictum-style-in-koma-script-t101479.html
.
command \dictumrule already defined
이것은 내 문제와 거의 정반대이므로 특별히 도움이 되지 않습니다.
내 의도는 기사의 시작 부분에 제목과 본문 사이에 인용문을 넣는 것입니다. 나는 를 사용하여 이와 동일한 결과를 얻을 수 있다는 것을 충분히 알고 있지만 \epigraph
(여기서 작동하는 솔루션을 얻을 수 없으면 그렇게 할 것입니다) 어떤 종류의 솔루션도 찾지 않고 포기하기에는 이 문제를 알아내는 데 너무 많은 에너지를 투자했습니다.
[업데이트]touhami의 답변에 대한 답변: 제가 달성하고 싶은 것이 정확히 무엇인지 자세히 설명하지 않은 점 사과드립니다.
epigraph
다음은 이전 코드의 출력을 대략적으로 모방한 패키지를 사용하는 코드입니다 .
\documentclass{scrbook}
\usepackage{epigraph}
\setlength{\epigraphwidth}{0.75\textwidth}
\begin{document}
\thispagestyle{empty}
\vspace*{\fill}
\epigraph{\itshape\small Begin at the beginning, the King said gravely, ``and go on till you come to the end: then stop.''}{Lewis Carroll, \emph{Alice in Wonderland}}
\end{document}
내가 실제로 원하는 것은 인용문과 저자 사이의 규칙을 없애는 것입니다. 패키지 의 경우 epigraph
추가하겠습니다.
\setlength{\epigraphrule}{0pt}
얻을 서문에
이론적으로 이와 동일한 변경을 수행
\dictum
하려면
\renewcommand*\dictumrule{}
~와 함께
\newcommand*{\dictumrule}{\vskip-1ex\hrulefill\par}
\renewcommand*\dictumrule{0pt}
그러나 이것은
나는 이것이 근본적인 오류의 증상일 뿐이라고 생각했기 때문에 처음에 이것을 말하지 않았습니다.
[업데이트2]@touhami
이것이 바로 @egreg의 제안을 따른 후 편집기에 있는 내용입니다.
\documentclass{scrbook}
\setkomafont{dictumtext}{\itshape\small}
\setkomafont{dictumauthor}{\normalfont}
\renewcommand*\dictumwidth{.75\linewidth}
\renewcommand*\dictumauthorformat[1]{--- #1}
\providecommand\dictumrule{}
\renewcommand*{\dictumrule}{}
\begin{document}
\thispagestyle{empty}
\vspace*{\fill}
\dictum[Lewis Carroll, \emph{Alice in Wonderland}]{Begin at the beginning, the King said gravely, ``and go on till you come to the end: then stop.''}
\end{document}
내가 얻는 출력은 출력과 똑같습니다.~와 함께위의 규칙.
규칙을 어떻게 없애나요?