此博文将记录本人使用LaTex时遇到的各种技巧,持续更新。
1、公式环境可变大小的符号如等号“=”等:
usepackage{extarrows}
f(x,y) xlongequal[x=y=0]{x^2 + y^2 = 1} g(x,y)
2、改变字体颜色,可用于公式环境:
usepackage{xcolor}
textcolor{red}{red},~ textcolor{green}{green},~
textcolor{blue}{blue},~ textcolor{orange}{orange},~
textcolor{violet}{violet},~ textcolor{purple}{purple},~
textcolor{brown}{brown},~ textcolor{pink}{pink},~
textcolor{cyan}{cyan},~ textcolor{magenta}{magenta},~
textcolor{yellow}{yellow},~ textcolor{olive}{olive},~
textcolor{black}{black},~ textcolor{darkgray}{darkgray},~
textcolor{gray}{gray},~ textcolor{lightgray}{lightgray},~
textcolor{white}{white}.
3、公式环境插入汉字:
usepackage{amsmath}
{Cu}O + H_2 xlongequal{text{点燃}} Cu + H_2 O
4、公式环境数学符号加粗:
usepackage{amsmath}
boldmath
begin{equation}
f(x)=x+1
end{equation}
unboldmath
或者:
usepackage{bm}
$\bm{f(x)=x+1}$
附:
Tex网络教程:
http://www.ctex.org/documents/shredder/tex_frame.html
https://blog.sciencenet.cn/blog-576779-473803.html
上一篇:
运算与数系下一篇:
科学新闻:OPERA中微子超光速结论可能来自于致命错误