
Tengo una minipágina y dentro de ella tengo una nota al pie y una imagen de tikZ. Ahora mi problema es que el texto de la nota al pie va dentro del último nodo de mi imagen tikZ. Eso no es lo que quiero y, de hecho, es muy extraño.
Código y salida
\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}
Primera solución
Cuando elimino el texto text width = 12cm
por completo, la nota al pie vuelve al final del texto:
Pero necesito que el texto tenga un ancho máximo. Entonces esto no es muy satisfactorio. ¿Algunas ideas?
Respuesta1
donde aprendemos que tikz usa minipágina internamente :-)
esto guarda y restaura las notas al pie para que tikz deje de verlas, por lo que la nota al pie aparece en el lugar correcto, la imagen rotada de tikz se sobreimprime, pero supongo que alguien que conoce tikz puede arreglar eso...
\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}
Respuesta2
Por eso LaTeX es hermoso... Otra solución :)
\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}
Respuesta3
Una posible solución (que no es una solución real) es hacer algo como:
\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}