
Ich habe eine Miniseite und darin eine Fußnote und ein TikZ-Bild. Jetzt ist mein Problem, dass der Fußnotentext in den letzten Knoten meines TikZ-Bildes gehört. Das ist nicht das, was ich will – und es ist eigentlich sehr seltsam.
Code und Ausgabe
\documentclass{article}
\usepackage{tikz,lipsum}
\begin{document}
\begin{minipage}{\textwidth}
\lipsum[1]\footnote{a footnote}% I cannot use \footnotemark etc
\begin{tikzpicture}[overlay, remember picture]% I need these two options
\draw[ultra thick, black] (0,0) -- node[sloped,below,text width=12cm,text centered]
{\lipsum[4]} (11,-3);% the text has to have a maximal width
\end{tikzpicture}
\end{minipage}
\end{document}
Erste Problemumgehung
Wenn ich das komplett entferne text width = 12cm
, wandert die Fußnote wieder unter das Ende des Textes:
Aber ich brauche eine maximale Textbreite. Das ist also nicht sehr zufriedenstellend. Irgendwelche Ideen?
Antwort1
wo wir erfahren, dass Tikz intern Minipage verwendet:-)
dadurch werden die Fußnoten gespeichert und wiederhergestellt, damit Tikz sie nicht mehr erkennt und die Fußnote an der richtigen Stelle steht. Das gedrehte Tikz-Bild wird überdruckt, aber ich denke, jemand, der sich mit Tikz auskennt, kann das beheben …
\documentclass{article}
\usepackage{tikz,lipsum}
\begin{document}
\begin{minipage}{\textwidth}
\lipsum[1]\footnote{a footnote}% I cannot use \footnotemark etc
\setbox0\box\csname@mpfootins\endcsname
\begin{tikzpicture}[overlay, remember picture]% I need these two options
\draw[ultra thick, black] (0,0) -- node[sloped,below,text width=12cm,text centered]
{\lipsum[4]} (11,-3);% the text has to have a maximal width
\end{tikzpicture}\global\setbox\csname@mpfootins\endcsname\box0
\end{minipage}
\end{document}
Antwort2
Deshalb ist LaTeX so schön ... Eine andere Lösung :)
\documentclass{article}
\usepackage{tikz,lipsum}
\usepackage{footnote}
\begin{document}
\begin{minipage}{\textwidth}
\savenotes
\lipsum[1]\footnote{a footnote}% I cannot use \footnotemark etc
\begin{tikzpicture}[overlay, remember picture]% I need these two options
\draw[ultra thick, black] (0,0) -- node[sloped,below,text width=12cm,text centered]
{\lipsum[4]} (11,-3);% the text has to have a maximal width
\end{tikzpicture}
\spewnotes
\end{minipage}
\end{document}
Antwort3
Eine mögliche Lösung (die jedoch keine echte Lösung ist) besteht darin, etwa Folgendes zu tun:
\documentclass{article}
\usepackage{tikz,lipsum}
\usepackage{tabu}
\begin{document}
\begin{minipage}{\textwidth}
\lipsum[1]\footnote{a footnote}% I cannot use \footnotemark etc
\begin{tikzpicture}[overlay, remember picture]% I need these two options
\draw[ultra thick, black] (0,0) -- node[sloped,below]
{
\begin{tabu}to 12cm {X[c]}
\lipsum[4]
\end{tabu}
} (11,-3);% the text has to have a maximal width
\end{tikzpicture}
\end{minipage}
\end{document}