我的命令中似乎有多余的空格,但我找不到并删除它。这个空格是从哪里来的?
我需要在盒子里面使用箭头。
梅威瑟:
\documentclass{article}
\usepackage{graphicx}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\newsavebox{\arbox}
\newcommand{\myarrow}[1][]{\sbox{\arbox}{\scalebox{#11}[1]{%
\tikz[line cap=round,scale=1,semithick]\draw[->,>={Stealth[round]}]%
(0,0) .. controls (0.3,0) and (0.2,0.3) .. (-0.1,0.5);%
}}%
\usebox{\arbox}%
}
\newcommand{\test}[1][]{\sbox{\arbox}{\scalebox{#11}[1]{%
Text%
}}%
\usebox{\arbox}%
}
\begin{document}
\fboxsep0pt
\fbox\myarrow
\fbox\test
\end{document}