Forgot password
 Register account
View 250|Reply 3

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

[Copy link]

3211

Threads

7832

Posts

52

Reputation

Show all posts

hbghlyj posted 2023-7-25 22:45 |Read mode
Last edited by hbghlyj 2023-7-25 22:58测量$\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

3211

Threads

7832

Posts

52

Reputation

Show all posts

original poster hbghlyj posted 2023-7-25 22:46

MathML两种math-style对比

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

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

3211

Threads

7832

Posts

52

Reputation

Show all posts

original poster hbghlyj posted 2023-7-25 22:54
Firefox在math-style: normal时,根号左边下沉太高

673

Threads

110K

Posts

218

Reputation

Show all posts

kuing posted 2023-7-25 23:45

Quick Reply

Advanced Mode
B Color Image Link Quote Code Smilies
You have to log in before you can reply Login | Register account

$\LaTeX$ formula tutorial

Mobile version

2025-7-20 05:40 GMT+8

Powered by Discuz!

Processed in 0.022646 seconds, 29 queries