|
本帖最后由 hbghlyj 于 2023-7-25 22:58 编辑 测量$\sqrt{x^2+y^2}$ 的width/depth/height
- \documentclass{article}
- \begin{document}
- \newlength{\mywidth}
- \settowidth{\mywidth}{$\sqrt{x^2+y^2}$}
- \newlength{\mydepth}
- \settodepth{\mydepth}{$\sqrt{x^2+y^2}$}
- \newlength{\myheight}
- \settoheight{\myheight}{$\sqrt{x^2+y^2}$}
- \the\mywidth
- \the\mydepth
- \the\myheight
- \end{document}
复制代码
输出
42.17128pt
2.8223pt
9.57779pt
测量$\displaystyle\sqrt{x^2+y^2}$ 的width/depth/height
- \documentclass{article}
- \begin{document}
- \newlength{\mywidth}
- \settowidth{\mywidth}{$\displaystyle\sqrt{x^2+y^2}$}
- \newlength{\mydepth}
- \settodepth{\mydepth}{$\displaystyle\sqrt{x^2+y^2}$}
- \newlength{\myheight}
- \settoheight{\myheight}{$\displaystyle\sqrt{x^2+y^2}$}
- \the\mywidth
- \the\mydepth
- \the\myheight
- \end{document}
复制代码
输出
42.17128pt
2.3341pt
10.06598pt |
|