Fußnoten in Tabellenüberschriften, aber nicht im Tabellenverzeichnis

Fußnoten in Tabellenüberschriften, aber nicht im Tabellenverzeichnis

Ich habe folgendes Problem: Meine Tabellen sind per formatiert caption[title]{long description...}. Nun muss ich bei einigen Tabellen die Quellenangaben als Fußnote in der Überschrift angeben, wie im folgenden Beispiel:

Bildbeschreibung hier eingeben

Ich habe Folgendes versucht:Verwendung von \footnote in der \caption einer Abbildung, das Problem besteht allerdings darin, dass die Fußnoten auch im Tabellenverzeichnis am Anfang des Dokuments auftauchen.

Beachten Sie, dass „Der Rotfuchs – Attribute“ das ist [title]und der Rest des Textes das ist {long description}, das hier wie folgt verwendet wird:Tabellentitel aus Beschriftungen in der Klasse „scrreprt“ hinzufügen

Außerdem verwende ich nicht für jede einzelne Bildunterschrift Fußnoten, daher müsste die Lösung flexibel sein und die Möglichkeit bieten, eine hinzuzufügen (dies ist jedoch nicht zwingend erforderlich).

Ist das obige Format möglich?

Suche nach einer Lösung, die sicher funktioniert, ohne unerwünschte Ergebnisse.

MWE:

\documentclass[a4paper, 12pt, headsepline, smallheadings]{scrreprt}
\usepackage[labelfont={small,bf}, textfont=small, labelsep=colon,singlelinecheck=false,format=plain, parindent=1em]{caption}
\newlength\myindention
\setlength\myindention{1em} 
\usepackage{chngcntr}
\counterwithout{table}{chapter}

\let\oldcaption\caption
\renewcommand*\caption[2][]{%
\oldcaption[#1]{#1\\\hspace*{\myindention}#2}%
}

\begin{document}

\listoftables

\chapter{Introduction}
\begin{table}[h]
\caption[title table 1]{description table 1}
\fbox{content}
\end{table}

\end{document} 

Danke.

Antwort1

Wenn dasnur\footnotemarkDer Unterschied besteht darin, dass Sie manchmal am Ende des Titels ein benötigen . Sie können einen Umschalter (Verallgemeinerung der mit Sternchen versehenen Makros) definieren, +der es hinzufügt.

\documentclass{scrreprt}

\usepackage[labelfont={small,bf}, textfont=small, labelsep=colon,
    singlelinecheck=false,format=plain, parindent=1em]{caption}


\usepackage{xparse}

\newlength\myindention
\setlength\myindention{1em} 

\let\oldcaption\caption
\RenewDocumentCommand { \caption } { t{+} O{} m } {%
    \oldcaption[#2]{%
        #2%
        \IfBooleanT{#1}{\footnotemark}
        \\%
        \hspace*{\myindention}#3
    }%
}

\begin{document}

\listoftables

\chapter{Introduction}
\begin{table}[h]
\caption[title table 1]{description table 1}
\fbox{content}
\end{table}

\begin{table}[h]
\caption+[title table 2]{description table 2}
\fbox{content}
\end{table}
\footnotetext{Source.}

\end{document}

Funktioniert dann \captionwie in Ihrem MWE und \caption+macht dasselbe, fügt aber \footnotemarkam Ende des Titels (das ist die \IfBooleanTZeile) hinzu. Um es klarzustellen:

  • Tabelle mit Quelle: \caption+[title]{description}und \footnotetextdanach
  • Tabelle ohne Quelle: \caption[title]{description}nur

Antwort2

Nicht sehr elegant, aber es scheint zu funktionieren:

\documentclass[a4paper, 12pt, headsepline, smallheadings]{scrreprt}
\usepackage[labelfont={small,bf}, textfont=small, labelsep=colon,singlelinecheck=false,format=plain, parindent=1em]{caption}
\newlength\myindention
\setlength\myindention{1em}
\usepackage{chngcntr}
\counterwithout{table}{chapter}
\usepackage{xparse}

\let\oldcaption\caption
\RenewDocumentCommand\caption{D [] {} D [] {} m}{%
  \def\tempa{}%
  \def\tempb{#1}%
  \def\tempc{#2}%
  \ifx\tempa\tempb\def\tempb{#3}\fi%
  \ifx\tempa\tempc\let\tempc\tempb\fi%
  \oldcaption[\tempb]{\tempc\\\hspace*{\myindention}#3}%
  }

\begin{document}

\listoftables

\chapter{Introduction}
\begin{table}[h]
\caption[title table 1][title table 1\footnotemark]{description table 1}
\fbox{content}
\end{table}

Anywhere on the same page where the float appears\footnotetext{blah}
but at least before the next footnote\footnote{the nextone}

\end{document}

Bildbeschreibung hier eingeben

Ich gehe allerdings davon aus, dass jemand anderes etwas Besseres vorschlagen kann. Daher würde ich dies nur empfehlen, wenn die Zeit drängt!

verwandte Informationen