Forgot password?
 Create new account
View 164|Reply 3

\sqrt在\displaystyle与\textstyle的width/depth/height

[Copy link]

3146

Threads

8493

Posts

610K

Credits

Credits
66158
QQ

Show all posts

hbghlyj Posted at 2023-7-25 22:45:10 |Read mode
Last edited by hbghlyj at 2023-7-25 22:58:00测量$\sqrt{x^2+y^2}$的width/depth/height
  1. \documentclass{article}
  2. \begin{document}
  3. \newlength{\mywidth}
  4. \settowidth{\mywidth}{$\sqrt{x^2+y^2}$}
  5. \newlength{\mydepth}
  6. \settodepth{\mydepth}{$\sqrt{x^2+y^2}$}
  7. \newlength{\myheight}
  8. \settoheight{\myheight}{$\sqrt{x^2+y^2}$}
  9. \the\mywidth
  10. \the\mydepth
  11. \the\myheight
  12. \end{document}
Copy the Code

输出
42.17128pt
2.8223pt
9.57779pt


测量$\displaystyle\sqrt{x^2+y^2}$的width/depth/height
  1. \documentclass{article}
  2. \begin{document}
  3. \newlength{\mywidth}
  4. \settowidth{\mywidth}{$\displaystyle\sqrt{x^2+y^2}$}
  5. \newlength{\mydepth}
  6. \settodepth{\mydepth}{$\displaystyle\sqrt{x^2+y^2}$}
  7. \newlength{\myheight}
  8. \settoheight{\myheight}{$\displaystyle\sqrt{x^2+y^2}$}
  9. \the\mywidth
  10. \the\mydepth
  11. \the\myheight
  12. \end{document}
Copy the Code

输出
42.17128pt
2.3341pt
10.06598pt

3146

Threads

8493

Posts

610K

Credits

Credits
66158
QQ

Show all posts

 Author| hbghlyj Posted at 2023-7-25 22:46:06

MathML两种math-style对比

Last edited by hbghlyj at 2023-7-25 22:59:00当前浏览器

math-style: normal

x 2 + y 2

math-style: compact

x 2 + y 2
Firefox 截图(字体: STIX Two Math) Screenshot 2023-07-25 at 22-53-30 _sqrt在_displaystyle的width_depth_height - TeX.png
Chrome截图(字体: STIX Two Math) Screenshot 2023-07-25 225232.png

3146

Threads

8493

Posts

610K

Credits

Credits
66158
QQ

Show all posts

 Author| hbghlyj Posted at 2023-7-25 22:54:54
Firefox在math-style: normal时,根号左边下沉太高

701

Threads

110K

Posts

910K

Credits

Credits
94172
QQ

Show all posts

kuing Posted at 2023-7-25 23:45:32

手机版Mobile version|Leisure Math Forum

2025-4-20 22:02 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list