我想知道如何创建一个嵌入“转到下一页”的箭头,该箭头应该类似于隐含箭头或右箭头。
答案1
使用shapes
来自的库PGF/TikZ你可以很容易地制作出一些奇特的箭头:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes}
\begin{document}
\begin{tikzpicture}[%
test1/.style={signal, draw, text=white, signal to=nowhere},
test2/.style={single arrow, draw=none}]
\node[test1,fill=magenta!40!black, signal to=east] at (0,0) {Go on to next page};
\node [test2,fill=red!50] at (0,-1.2) {Go on to next page} ;
\node [test2,fill=blue!50, single arrow head indent=1ex] at (0,-2.4) {Go on to next page};
\end{tikzpicture}
\end{document}
当然,一旦你决定了要使用的箭头类型,你可以构建一个宏来获取箭头;如下所示:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{calc,shapes}
\usepackage{lipsum}% just to generate text
\newcommand\GoArrow{%
\begin{tikzpicture}[overlay,remember picture]
\node[signal, draw, text=white, signal to=nowhere,fill=magenta!40!black, signal to=east,anchor=east]
at ($ (current page.south east) + (-2,2) $) {Go on to next page};
\end{tikzpicture}
}
\begin{document}
\lipsum[1-5]
\GoArrow
\end{document}
页面下部显示:
答案2
我猜你想要的是箭头上方的文字,表示“转到下一页”。如果是这样,那么你可以尝试:
\documentclass{article}
\usepackage{amsmath,amssymb}
\begin{document}
$\xrightarrow{\text{Go on to next page}}$
\end{document}
输出: