
미니페이지가 있고 그 안에 각주와 tikZ 그림이 있습니다. 이제 내 문제는 각주 텍스트가 내 tikZ 그림의 마지막 노드 안에 들어간다는 것입니다. 그것은 내가 원하는 것이 아니며 실제로는 매우 이상합니다.
코드 및 출력
\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}
첫 번째 해결 방법
완전히 제거하면 text width = 12cm
각주가 텍스트 끝 아래로 다시 이동합니다.
하지만 최대 너비를 가지려면 텍스트가 필요합니다. 그래서 이것은 그다지 만족스럽지 않습니다. 어떤 아이디어가 있나요?
답변1
여기서 우리는 tikz가 내부적으로 미니페이지를 사용한다는 것을 배웠습니다:-)
이렇게 하면 tikz가 볼 수 없도록 각주를 저장하고 복원하므로 각주가 올바른 위치에 오고 회전된 tikz 그림이 중복 인쇄되지만 tikz를 아는 사람이 이를 고칠 수 있을 것 같습니다...
\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}
답변2
이것이 LaTeX가 아름다운 이유입니다... 또 다른 솔루션입니다 :)
\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}
답변3
가능한 해결책(실제 해결책은 아님)은 다음과 같은 작업을 수행하는 것입니다.
\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}