镜像空间分享 http://blog.sciencenet.cn/u/positron 物理学、天文学科普文章,及其他

博文

各种LaTex技巧

已有 13935 次阅读 2011-8-10 14:44 |个人分类:LaTex|系统分类:科研笔记| 技巧, LaTex

此博文将记录本人使用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中微子超光速结论可能来自于致命错误
收藏 IP: 218.108.76.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-7-17 20:33

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部