listoftables にエントリのない KOMA スクリプトの 2 番目のキャプション

listoftables にエントリのない KOMA スクリプトの 2 番目のキャプション

私が使うこれKOMA スクリプトでキャプションを取得する方法。これは、キャプション パッケージの caption* のように動作します。このコマンドは、表や図の説明文に使用するため、listoftables にエントリを追加したくありません。どうすれば削除できますか?

\documentclass[12pt,DIV=11,oneside,appendixprefix,numbers=noenddot]{scrartcl} 
\usepackage[utf8]{inputenc}         
\usepackage[english]{babel}

\makeatletter
\newcommand\WLcaption[1]{%
    \renewcommand*{\figureformat}{}
    \renewcommand*{\tableformat}{}
    \renewcommand*{\captionformat}{}
    \addtocounter{\@captype}{-1}
    \caption{#1}}
\makeatother
%\usepackage{caption}
\begin{document}
    \listoftables
\begin{table}
    \centering
    \captionabove{Reform threshold as a function of the degree of risk aversion}

    \begin{tabular}{| c  c|  c  c | p{5cm} |}
        \hline
        \textbf{Risk aversion \(\gamma\)} & \textbf{Reform threshold \(\tau\)} \\ \hline
        0 &  48.3 \\ \hline
        1 &  55.2 \\ \hline
        2 &  61.0 \\ \hline
        3 &  65.9 \\ \hline
        4 &  69.9 \\ \hline
    \end{tabular}  

    \WLcaption{\textit{Note:} Some Note without number but unfortunately with an entrance in the list of tables}

\end{table}

\end{document}

答え1

私は単に表の下にメモを置くだけです:

\documentclass[12pt,DIV=11,oneside,numbers=noenddot]{scrartcl} 
\usepackage[utf8]{inputenc}         
\usepackage[english]{babel}

\makeatletter
\newcommand\WLcaption[1]{%
    \begin{minipage}{\textwidth}
        \vspace*{\baselineskip}
    #1
        \end{minipage}
}

\makeatother
%\usepackage{caption}
\begin{document}
    \listoftables
\begin{table}

    \centering
    \captionabove{Reform threshold as a function of the degree of risk aversion}

    \begin{tabular}{| c  c|  c  c | p{5cm} |}
        \hline
        \textbf{Risk aversion \(\gamma\)} & \textbf{Reform threshold \(\tau\)} \\ \hline
        0 &  48.3 \\ \hline
        1 &  55.2 \\ \hline
        2 &  61.0 \\ \hline
        3 &  65.9 \\ \hline
        4 &  69.9 \\ \hline
    \end{tabular}  

        \WLcaption{\textit{Note:} Some Note without number but unfortunately with an entrance in the list of tables}

\end{table}

\end{document}

関連情報