LaTeX幻影空格

盒子幻影:\phantom{参数}


代码示例:

% !TEX program = xelatex
\documentclass{article}
\begin{document}
参数的大小决定了幻影的大小\phantom{参数}参数的大小决定了幻影的大小\\
八八八八八八八八八八八八八八八八八八八八八八八八八八八八\\
\end{document}


编译结果:
在这里插入图片描述


同理还有
水平幻影:\hphantom{参数}
垂直幻影:\vphantom{参数}


猜你喜欢

转载自blog.csdn.net/Infinity_07/article/details/111243219