「\dictumrule undefined.」または「Undefined control sequence. \dictumrule」エラーが発生するのはなぜですか?

「\dictumrule undefined.」または「Undefined control sequence. \dictumrule」エラーが発生するのはなぜですか?

これは少し特殊だとは思いますが、これは一貫してエラーを生成した唯一の 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}

前文に

ルイス・キャロルの引用 理論的には、同じ変更をするためには\dictum

\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}

そして、私が得た出力は、上記のルール。

ルールを解除するにはどうすればいいですか?

答え1

更新しましたKoma スクリプト ドキュメント

ここに画像の説明を入力してください

\newcommand*{\dictumrule}{\vskip-1ex\hrulefill\par}

したがって、パッケージを更新すると問題は解決します。

関連情報