簡單的LaTeX入門 1

2021-10-05 18:35:22 字數 1273 閱讀 4075

%導言區

\documentclass[

10pt]

%article,book,report,letter,ctexart%[

]10pt,

11pt,

12pt,字型大小磅數

\usepackage

%引入中文包,確保為utf-

8格式\newcommand\degree

%定義degree型別

\title

%黑體\author

%楷書\date

%正文\begin

\maketitle

1、hello,world!

2、let $f

(x)$ be defined by the formula

$f(x)

=3x^

2+x-

1$ $$f

(x)=

3x^2

+x-1$$ which is a polynomial of

degree 2.

%$$內表示數學格式,雙$表示公式居中

3、設直角三角形 $abc$,其中$\angle c=

90\degree$, 則有:

\begin

ab^2=bc^

2+ac^

2. \end

%用於產生帶編號的公式

4、字型族設定(羅馬字型、無襯線字型、打字機字型)

\textrm \textsf \texttt

%字型設定命令

\rmfamily roman family

%字型設定宣告

\sffamily i love you!\\

\ttfamily i love you!

遇到下乙個字型宣告,自動轉換字型

5、字型系列設定(粗細、寬度)\\

\tex*** \textbf

6、字型形狀(直立、斜體、偽斜體、小型大寫)\\

\textup \textit \textsl \textsc\\%命令

%宣告7、中文字型

\quad \quad \quad \\

%\quad 退一格和\qquad退兩格

中文字型的\textbf與\kaishu

8、字型大小\\

\\ \\

\\ \\

\\ \\

\\ \\

\\ \\

9、中文字號設定命令\\

\zihao 你好

\end

簡單的LaTeX入門 2

導言區 documentclass ctexart 為文件類 usepackage 正文區 begin 一 section section表示目錄一,前面加sub表示1.1 再加subsub表示1.1 1,以此類推 啦啦啦啦啦啦啦啦啦 par 啦啦啦啦啦啦啦啦啦 par par可以表示換行,以及雙斜...

LaTeX入門 12 參考文獻(1)

引言 在寫 時都會在正文中引用一些參考文獻,並在最後列出參考文獻。你在寫一篇 要求 根據引用文獻的順序對參考文獻進行編號 目前你的參考文獻有文章 a 當前編號為1 文章 b 當前編號為2 文章 c 當前編號為3 這三篇文獻,文章中有50處引用了文章a,20處引用了文章b,10處引用了文章c,這時候你...

latex 空一行 LaTeX從入門到提高(1)

你好,latex end編譯 this is xetex,version 3.14159265 2.6 0.99999 tex live 2018 w32tex preloaded format xelatex 安裝效果 簡單配置 導言區 documentclass book,report,lett...