
これは少し特殊だとは思いますが、これは一貫してエラーを生成した唯一の KOMA スクリプト コマンドであり、どこにも解決策が見つからないため困っています (私は通常、かなり徹底して調べるのですが)。私は、KOMA が組み込まれた Windows 上の 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}
前文に
\renewcommand*\dictumrule{}
と
\newcommand*{\dictumrule}{\vskip-1ex\hrulefill\par}
\renewcommand*\dictumrule{0pt}
しかし、これは
最初は、これが根本的なエラーの単なる症状だと思っていたので、これを言いませんでした。
[アップデート2]とぅはみ
これはまさに @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}
そして、私が得た出力は、と上記のルール。
ルールを解除するにはどうすればいいですか?