Forgot password?
 Create new account
View 1751|Reply 10

两个小问题,请教一下如何解决

[Copy link]

11

Threads

24

Posts

209

Credits

Credits
209

Show all posts

aaa Posted at 2018-11-15 20:12:08 |Read mode
Last edited by hbghlyj at 3 days ago1、\hat{j} 那个符号不在字母的正上方

2、如何给框框的线条加颜色  ,比如红色\[\boxed{\bm{a}=\dfrac{\mathrm{d}\bm{v}}{\mathrm{d}t}=\dfrac{\mathrm{d}^2\bm{r}}{\mathrm{d}\,t^2}}\]
善始者实繁,克终者盖寡。

701

Threads

110K

Posts

910K

Credits

Credits
94162
QQ

Show all posts

kuing Posted at 2018-11-15 20:29:55
2、线条加颜色,里面的公式加不加?

462

Threads

969

Posts

9934

Credits

Credits
9934

Show all posts

青青子衿 Posted at 2018-11-15 21:10:21
回复 1# aaa
\[\color{red}{\boxed{\color{black}{\bm{a}=\dfrac{\mathrm{d}\bm{v}}{\mathrm{d}t}=\dfrac{\mathrm{d}^2\bm{r}}{\mathrm{d}\,t^2}}\,}}\]

11

Threads

24

Posts

209

Credits

Credits
209

Show all posts

 Author| aaa Posted at 2018-11-17 12:40:00
回复 2# kuing
不加,那个hat 有啥好的解决方法吗?谢谢k 神

11

Threads

24

Posts

209

Credits

Credits
209

Show all posts

 Author| aaa Posted at 2018-11-17 12:46:56
回复 3# 青青子衿

谢谢

701

Threads

110K

Posts

910K

Credits

Credits
94162
QQ

Show all posts

kuing Posted at 2018-11-17 15:24:58
回复 4# aaa

里面的公式不加那就用 3# 的方法即可,即在整个外面用 \color{red} 里面再用 \color{black} 切换回黑色。

至于 hat 的问题我也没什么好办法,对一个字母加 hat, bar, tilde 这类东西,所放的位置应该是根据字母自身的属性决定的,一个字母它的“正上方”在哪,是字体设计者在设计时所定下来的,每个字母都不同:
QQ截图20181117145930.png
既然 i, j 的 hat 放在那里,说明该字体的设计者认为那里作为正上方比较好。
如果你觉得这并不好,要改变的话,最理想的办法就是更改 i, j 的这个属性,然而这些很底层的东西我也不懂,看来只能另寻他法,但是要想一个全无副作用的方法恐怕不容易。

701

Threads

110K

Posts

910K

Credits

Credits
94162
QQ

Show all posts

kuing Posted at 2018-11-17 15:59:01
想了一个方法,还不知道有没有副作用,顺便把 bar, tilde 也做了:
  1. \documentclass{article}
  2. \usepackage{amsmath}
  3. \newcommand\sftz[3]{\rlap{$#1{\phantom{#3}\mkern#2mu}$}#3}
  4. \newcommand\ihat{\sftz{\hat}{2.5}{i}}
  5. \newcommand\jhat{\sftz{\hat}{4.5}{j}}
  6. \newcommand\ibar{\sftz{\bar}{2.5}{i}}
  7. \newcommand\jbar{\sftz{\bar}{4.5}{j}}
  8. \newcommand\itilde{\sftz{\tilde}{2.5}{i}}
  9. \newcommand\jtilde{\sftz{\tilde}{4.5}{j}}
  10. \begin{document}
  11. \fboxsep=0.4pt
  12. $\boxed\ihat
  13. \,\boxed\jhat
  14. \,\boxed\ibar
  15. \,\boxed\jbar
  16. \,\boxed\itilde
  17. \,\boxed\jtilde$
  18. \end{document}
Copy the Code
QQ截图20181117155833.png

801

Threads

4889

Posts

310K

Credits

Credits
36169

Show all posts

isee Posted at 2018-11-17 16:31:12
回复 7# kuing

相当的看不习惯。

15

Threads

948

Posts

110K

Credits

Credits
12412

Show all posts

色k Posted at 2018-11-17 18:26:23
回复 8# isee

实际用的时候没有框框住可能好点吧

ij.png
  1. I = \int F_xdt\ihat+\int F_ydt\jhat = 10tm\jhat\Big|_2^4 = 20m\jhat
Copy the Code

11

Threads

24

Posts

209

Credits

Credits
209

Show all posts

 Author| aaa Posted at 2018-11-17 22:40:03
回复 7# kuing


    非常感谢!

701

Threads

110K

Posts

910K

Credits

Credits
94162
QQ

Show all posts

kuing Posted at 2018-11-18 17:41:22
回复 10# aaa

如果发现有什么副作用记得回来说一下喔

手机版Mobile version|Leisure Math Forum

2025-4-20 21:38 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list