上一篇文章“如何拉长向下的箭头?”(如何拉长向下的箭头?) 告诉我们如何增加箭头的长度。下一步,如何增加箭头的宽度?
答案1
根据您在评论中链接的代码(顺便说一句,不要链接代码,而是将其放在您的问题中):
\documentclass[a4paper,10pt]{article}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\tikzset{
myarrow/.style={
line width=3pt,
}
}
\newcommand{\arrowup}{%
\tikz[baseline=12pt]{\draw [->, myarrow] (0,0) -- ++(0,20pt);}
}
\newcommand{\arrowdown}{%
\tikz[baseline=12pt]{\draw [<-, myarrow] (0,0) -- ++(0,20pt);}
}
\begin{document}
\begin{center}
This is some text.\linebreak
\arrowdown\linebreak
And some more.\linebreak
\arrowup\linebreak
And even more.
\end{center}
\end{document}