Was mache ich da falsch?
Ich habe das jetzt so eingegeben:
\begin{figure[h]}
\centering
\includegraphics[width=\textwidth]{bild}
\caption[Name fürs Verzeichnis]{Unterschirft\endnote{Endnotentext}}
\end{figure}
\theendnotes
\begin{figure[h]}
\centering
\includegraphics[width=\textwidth]{bild}
\caption[Name fürs Verzeichnis]{Unterschirft\endnote{Endnotentext}}
\end{figure}
\theendnotes
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{endnotes}
\begin{document}
\listoffigures
\section{Abschnitt}
\begin{figure}[hb]
\centering
\includegraphics[width=\textwidth]{example-image}
\caption[Name fürs Verzeichnis]{Unterschirft\endnote{Endnotentext}}
\end{figure}
\theendnotes
\end{document}\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage{endnotes}
\renewcommand*{\enoteformat}{%
\setlength{\rightskip}{0pt}% kein rechter Einzug
\setlength{\leftskip}{1em}% linker Einzug von 1em verwenden
\setlength{\parindent}{1em}% Absätze in den Endnoten (auch den ersten)
% zusätzlich im 1em einziehen.
\noindent % Ersten Absatz nicht einziehen
\hspace*{-\leftskip}% Für die Marke den Einzug nicht verwenden!
\makebox[\leftskip][l]{\makeenmark\enskip}% die optionalen Argumente findet
% man im usrguide, \enskip ist ein
% zusätzlicher Abstand zwischen Marke und Text
}
\renewcommand{\notesname}{Einzelnachweise}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{makeidx}
\usepackage{graphicx}
\usepackage{lmodern}
\usepackage{ulem}
\usepackage{framed}
\newenvironment{rcases}
{\left.\begin{aligned}}
{\end{aligned}\right\rbrace}
\newenvironment{nocases}
{\left.\begin{aligned}}
{\end{aligned}\right.}
\newcommand{\Std}{\ensuremath{\text{\sout{$\circ$}}}}
\newcommand{\du}[1]{\underline{\underline{#1}}}
\newcommand{\ener}{\ensuremath{\;\nicefrac{\text{kJ}}{\text{mol}}}}
\newcommand{\enth}{\ensuremath{\Delta\text{H}}}
\newcommand{\temp}{\ensuremath{^\circ\text{C}}}
\newcommand{\ea}{\ensuremath{\text{E}_{\text{A}}}}
\newcommand{\arrh}{\ensuremath{e^{-\frac{\ea}{RT}}}}
\newcommand{\arrhenth}{\ensuremath{e^{-\frac{\enth}{RT}}}}
\newcommand{\lichttemp}{\ensuremath{h\cdot\nu\text{ oder }\Delta}}
\newcommand{\licht}{\ensuremath{h\cdot\nu}}
\newcommand{\mol}{\ensuremath{\;\nicefrac{\text{g}}{\text{mol}}}}
\newcommand{\zb}{z.B.}
\newcommand{\white}[1]{\textcolor{white}{#1}}
\newcommand{\red}[1]{\textcolor{red}{#1}}
\newcommand{\blue}[1]{\textcolor{blue}{#1}}
\newcommand{\green}[1]{\textcolor{green!70!black}{#1}}
\newcommand{\chemmovee}[1]{\chemmove[shorten <=3pt,shorten >=2pt,red]{#1}}
\newcommand{\op}{\scriptstyle\oplus}
\newcommand{\om}{\scriptstyle\ominus}
\newcommand{\rbl}[1]{{\raisebox{0pt}[0pt][0pt]{\begin{tabular}[t]{@{}l@{}}#1\end{tabular}}}}
\newcommand{\rbc}[1]{{\raisebox{0pt}[0pt][0pt]{\begin{tabular}[t]{@{}c@{}}#1\end{tabular}}}}
\newcommand{\rbr}[1]{{\raisebox{0pt}[0pt][0pt]{\begin{tabular}[t]{@{}r@{}}#1\end{tabular}}}}
\usepackage{csquotes}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{multirow}
\usepackage{tabulary}
\usepackage{url}
\usepackage{etoolbox}
\appto\UrlBreaks{\do\a\do\b\do\c\do\e\do\f\do\g\do\h\do\i\do\j\do\k\do\l\do\m\do\n\do\o\do\p\do\q\do\r\do\s\do\t\do\u\do\v\do\w\do\x\do\y\do\z}
\usepackage{xcolor}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\author{Thomas Rienäcker}
\usepackage[german]{cleveref}
\usepackage[hang]{footmisc}
\setlength{\footnotemargin}{-0.8em}
\usepackage{nicefrac}
\usepackage{caption}
\usepackage{wrapfig}
\usepackage{mychemistry}
\newcommand{\chemsign}[2][]{#2}
\usepackage{chemfig}
\usetikzlibrary{decorations.pathmorphing}
\tikzset{
abb/.style ={
decorate,
decoration ={
snake,
post length=0mm,
amplitude=.5mm,
segment length=3mm
}
}
}
\definesubmol{abbu}{-[6,.5,,,abb]}
\definesubmol{abbo}{-[2,.5,,,abb]}
\tikzset{
rac/.style ={
decorate,
decoration ={
snake,
post length=0mm,
amplitude=.5mm,
segment length=.7mm
}
}
}
\definesubmol{rac}{-[,,,,rac]}
\newcommand\setpolymerdelim[2]{\def\delimleft{#1}\def\delimright{#2}}
\def\makebraces[#1,#2]#3#4#5{%
\edef\delimhalfdim{\the\dimexpr(#1+#2)/2}%
\edef\delimvshift{\the\dimexpr(#1-#2)/2}%
\chemmove{%
\node[at=(#4),yshift=(\delimvshift)]
{$\left\delimleft\vrule height\delimhalfdim depth\delimhalfdim width0pt\right.$};%
\node[at=(#5),yshift=(\delimvshift)]
{$\left.\vrule height\delimhalfdim depth\delimhalfdim width0pt\right\delimright_{\rlap{$\scriptstyle#3$}}$};}}
%\newcommand*{\chemand}[1][]{\reactant[#1]{\chemsign[0pt]{+}}}
\usepackage[version=3,arrows=pgf-filled]{mhchem}
\usepackage{pgf}
\usepackage{caption}
\theoremstyle{definition}
\newtheorem*{bsp}{Beispiel}
\newtheorem*{defi}{Definition}
\begin{document}
\begin{figure}[h]
\centering
\includegraphics[width=\textwidth]{example-image}
\caption[Name fürs Verzeichnis]{Unterschirft\endnote{Endnotentext}}
\end{figure}
\theendnotes
\end{document}
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{graphicx}
\usepackage{endnotes}
\usepackage{caption}
\usepackage{blindtext}
\begin{document}
\begin{figure}[h]
\centering
\includegraphics[width=\textwidth]{example-image}
\caption[Überschrift fürs Verzeichnis]{\blindtext\endnote{Endnotentext}}
\end{figure}
\newpage
\theendnotes
\end{document}
\addtocounter{endnote}{-1}\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{graphicx}
\usepackage{endnotes}
\usepackage{caption}
\usepackage{blindtext}
\begin{document}
\begin{figure}[h]
\centering
\includegraphics[width=\textwidth]{example-image}
\addtocounter{endnote}{-1}
\caption[Überschrift fürs Verzeichnis]{\blindtext\endnote{Endnotentext}}
\end{figure}
\newpage
\theendnotes
\end{document}
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{endnotes}
\usepackage{blindtext}
\makeatletter
\newcommand*{\caption@endnotemark}[1]{%
\begingroup
\let\stepcounter\caption@l@stepcounter
\caption@endnotemark@ORI#1
\endgroup
}
\g@addto@macro\caption@prepareslc{%
\let\caption@endnotemark@ORI\endnotemark
\def\endnote{\caption@withoptargs\caption@endnote}%
\def\endnotemark{\caption@withoptargs\caption@endnotemark}%
}
\newcommand\caption@endnote[2]{%
\caption@endnotemark{#1}}
\makeatother
\begin{document}
\begin{figure}
\centering
\includegraphics{example-image}
\caption[Überschrift fürs Verzeichnis]{\blindtext Text.\endnote{Endnotentext}}
\end{figure}
\begin{figure}
\centering
\includegraphics{example-image-b}
\caption[Überschrift fürs Verzeichnis]{\blindtext Zweiter Text.\endnote{Zweiter Endnotentext}}
\end{figure}
\theendnotes
\end{document}