LaTeX學習 (6)LaTeX中的特殊字元

2021-10-10 19:30:53 字數 1826 閱讀 3628

latex中的特殊字元

%導言區

\documentclass

\usepackage %中文處理巨集包

\usepackage%提供了針對xetex的改進並且加入了xetex的logo

\usepackage

\usepackage

%正文區(文稿區)

\begin

\section

%輸入一段英文和中文

%在英文中新增任意多個空格 結果中只有乙個空格;在中文中新增任意多個空格,但結果中沒有空格。

%空行用於分段,多個空行等同於1個。

%自動縮排,絕對不能用空格代替

%可以在中文中新增英文,漢字與其他字元的間距會自動有xelatex處理

%禁止使用中文全形空格

you stand on the bridge to              see the scenery, the people watching the scenery are watching you, the moon is decorating your window, and you decorate the dreams of others.

你站在橋上看風景,看風景的人           在看你,明月裝飾了你的窗子,你the people watching 裝飾了別人的夢。

%可以使用\quad產生空白

%\quad 產生1em的空白(當前字型中m的寬度)

a\quad b

%2em

a\qquad b

%\, \thinspace產生1/6em的空白

a\,b a\thinspace b

%0.5em

a\enspace b

%空格a\ b

%硬空格(不能分割)

a~b%1pc = 12pt = 4.218mm 指定寬度值

a\kern 1pc b

a\kern -1em b %可以是負值

a\hskip 1em b

a\hspaceb

%佔位寬度 按佔位字元寬度產生空白

a\hphantomb

%彈性長度

a\hfil b

\section

%在控制符前加\ 取消特殊含義

%由於\\用於換行 所以用\textbackslash產生\

\# \$ \% \ \~{} \_{} \^{} \textbackslash

\section

\section

%基本符號

\tex{} \latex{} \latexe{}

%需要匯入xltxtra巨集包

\xelatex

%texnames巨集包提供

\amstex{} \ams-\latex{}

\bibtex{} \luatex{}

%mflogo巨集包提供

\metafont{} \mf{} \mp{}

\section

%中文引號

%用`表示左單引號 '表示右單引號 ``左雙引號 ''右雙引號

` ' `` '' ``你好啊''

\section

%短、中、長三種連字元

\section

\oe \oe \ae \ae \aa \aa \o \o \l \l \ss \ss !` ?`

\section

\`o \'o \^o \''o \~o \=o \.o \u \v \h \r \t \b \c \d

\end

預覽效果:

latex梯度 LaTeX學習筆記1

2019.11.26 1.求和公式使用 p sum limits na n sum為求和公式,limits為取消限制在單行中。2.多行對齊使用align,例如 begin 1.quad g x x 1 x 2 1 2.quad g x x 1 x 2 1 end 4.在gather環境中可以使用pm...

latex 號 latex中數學符號

latex中數學符號 常見數學中的特殊符號,缺失 latex中符號3610 9 alpha alfa 阿耳法 beta beta 貝塔 gamma gamma 伽馬 deta delta 德耳塔 epsilon epsilon 艾普西隆 zeta zeta 截塔 eta eta 艾塔 theta i...

latex矩陣a怎麼打 latex中的矩陣輸入

內容摘要 小結latex中矩陣輸入方法。amsmath提供matrix,pmatrix,bmatrix,bmatrix,vmatrix,vmatrix環境輸入矩陣,但是它們沒有對齊方式引數。例如 begin a b c d end quad begin a b c d end quad begin ...