Latex

一篇比较不错的入门教程

\documentclass{article}
    \author{jiuer}
    \title{Hello World}
\begin{document}
    \maketitle
    \section{Hello China}   China is in the east of China.
        \subsection{Hello Beijing}  Beijing is the capital.
            \subsection{Hello Dongcheng District}
                \paragraph{Ti'an Square}    is in the center.
                    \subparagraph{Chairman Mao} is the great man.
            \subsection{Hello Guangzhou}
                \paragraph{Sun University} is here
\end{document}
图像 2.png
  1. 空一行即另起一段,自带段首空格;

  2. \\用于行内强制换行

\documentclass{article}
    \usepackage{amsmath}
    \usepackage{amssymb}
    \author{jiuer}
    \title{Hello World}
\begin{document}
    \maketitle
    this is F=ma
    this is $F=ma$
    this is 
    $$F=ma$$
    this is 
    \[F=ma\]
    that is $\eta$ and $\mu$
    and this is $\frac{a}{b}$
    power is $a^b$
    subscript $a_b$
    derivate $\frac{\partial y}{\partial t}$
    vector $\vec{n}$
    bold $\mathbf{n}$
    time differential $\dot{F}$
    Equation(\& for aligning different rows)
        \begin{align}
            a+b&=c\\
            d&=e+f+g
        \end{align}
        
        \[
            \left\{
                \begin{aligned}
                    &a+b=c\\
                    &d=e+f+g
                \end{aligned}
            \right.
        \]
            
\end{document}
图像 3.png
  1. $...$行内数学模式
  2. $$...$$另起一行并居中开始数学模式

输入公式的话可以参考latex数学符号

以及多行公式输入的各种实例

各种括号的输入和设置


编译参考文献时需要先把bib文件用utf-8方式编码,否则会can't find a database entry

  1. latex编译
  2. bib编译
  3. 再进行latex编译

以上才能确保参考文献编译正确。


然后是自己第一次使用过程中发现的。

  1. ctexart 模板中不支持关键词,在abstract中使用\\\\\textbf:空两行然后加入关键词;

  2. \label{}\ref{}一起使用,实现动态引用;

  3. equation*环境用于不带编号的公式,或者使用命令\notag

  4. 数学模式中括号使用时候要带上\left(\right)

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 本文目录: 题外话 熟悉LaTeXLaTeX的读音和写法书中介绍的LaTeX版本会不会过时再谈LaTeX发行版 一...
    纸山阅读 31,937评论 6 29
  • 今天主要总结了latex的一些基本配置和使用latex进行科技论文写作的基本要素(书写文档,插入表格,插入图片,插...
    taozhaojun阅读 13,341评论 1 22
  • 刚装了电脑,这几天一直在整理资料还有倒腾软件。今天打开Word突然觉得它很难用,因为它经常出现格式混乱的情况。这时...
    BSC_5622阅读 48,166评论 0 19
  • 做数学建模时,用一个小时的时间教会了队友LaTeX,这是当时的讲义。 关于TeX的介绍 TeX是全世界最专业也是最...
    MrGod阅读 9,022评论 4 80
  • 关于AMS-math系统的介绍,有关于数学打印的一切。 LaTeX有强大的排版公式能力,你可以在很短的时间内打印出...
    MrGod阅读 29,933评论 1 20