考虑一下代码
\documentclass{book}
\usepackage{tikz,xcolor}
\usetikzlibrary{decorations.pathmorphing}
\definecolor{Gold}{RGB}{228,168,73}
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
\begin{document}
\begin{center}
\begin{tikzpicture}[pencildraw/.style={ %
decorate,
decoration={random steps,segment length=2pt,amplitude=1pt}
} %
]
\node[
preaction={fill=black,opacity=.5,transform canvas={xshift=1mm,yshift=-1mm}},
pencildraw,draw,fill=Gold,text width=0.89\textwidth,inner sep=5mm,align=justify]
{\fontsize{15}{19}\selectfont \textbf{In three words I can sum up everything I've learned about life: ``It goes on.''\footnotemark \vskip 8pt \hfill \emph{---Robert Frost}}
\footnotetext{American poet (1874-1963)}};
\end{tikzpicture}
\end{center}
\end{document}
产生
问题:在 中tikzpicture
,我如何才能让脚注标记(在本例中为星号)出现在脚注行之后的脚注文本之前?
谢谢。
答案1
我不知道为什么,但显然当将脚注拆分为\footnotemark
和时\footnotetext
,footnote
计数器会增加,但计数器会被使用。如果您愿意,您可以像这样mpfootnote
给出可选项:number
\footnotemark[number]
和\footnotetext[number]{text for footnote}
\footnote
-或者简单地像这样使用:
\documentclass{book}
\usepackage{tikz,xcolor}
\usetikzlibrary{decorations.pathmorphing}
\definecolor{Gold}{RGB}{228,168,73}
%\renewcommand{\thefootnote}{\fnsymbol{footnote}}
\renewcommand{\thempfootnote}{\fnsymbol{mpfootnote}}
\begin{document}
\begin{center}
\begin{tikzpicture}[pencildraw/.style={ %
decorate,
decoration={random steps,segment length=2pt,amplitude=1pt}
} %
]
\node[
preaction={fill=black,opacity=.5,transform canvas={xshift=1mm,yshift=-1mm}},
pencildraw,draw,fill=Gold,text width=0.89\textwidth,inner sep=5mm,align=justify]
{\fontsize{15}{19}\selectfont \textbf{In three words I can sum up everything I've learned about life: ``It goes on.''\footnote{American poet (1874-1963)}
\vskip 8pt \hfill \emph{---Robert Frost}}
};
\end{tikzpicture}
\end{center}
\end{document}