Forgot password?
 Create new account
View 1522|Reply 0

出头方向角符号

[Copy link]

700

Threads

110K

Posts

910K

Credits

Credits
94172
QQ

Show all posts

kuing Posted at 2017-8-24 20:38:14 |Read mode
问题来自:bbs.ctex.org/forum.php?mod=viewthread&tid=153050

要这样的符号: 角.jpg

解法一:调用 mathabx 宏包后的 \measuredangle 就是出头的

但 mathabx 同时也改变了不少符号,故此如果不想影响其他符号的话,也可以不用 mathabx 而用 tikz 自己画一个,即:

解法二:
  1. \documentclass{article}
  2. \usepackage{amsmath,amssymb}
  3. \usepackage{tikz}
  4. \newcommand\vangle{\mathord{\text{\rlap{%
  5. \begin{tikzpicture}[baseline,line width=0.1ex,line cap=round]
  6. \fill (-.035em,0);%这句不是多余的
  7. \draw (75:1ex) arc (75:-25:1ex);
  8. \end{tikzpicture}}}\angle}}
  9. \begin{document}
  10. $\angle A \ne \measuredangle A = \vangle A$
  11. \end{document}
Copy the Code
效果: QQ截图20161204180332.png

其中注释那句的原因是:生成一个“虚点”,tikz 计算图形边界时会把这个点也算上,否则就只会计算弧的,圆心就对不上角的顶点了。

手机版Mobile version|Leisure Math Forum

2025-4-21 14:11 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list