
\LaTeX 基本指令
符號 | 作用 | 文稿上使用 | LATEX 的替代指令 |
---|---|---|---|
\ | 下排版命令 | $\backslash$ | \textbackslash |
% | 註解 | \% | NA |
# | 定義巨集 | \# | NA |
˜ | 產生一個空白 | \~{} | \textasciitilde |
$ | 進入(離開)數學模式 | \$ | \textdollar |
_ | 數學模式中產生下標字 | \_{} | \textunderscore |
ˆ | 數學模式中產生上標字 | \^{} | \textasciicircum |
{ | 標示命令的作用範圍 | \{ | \textbraceleft |
} | 標示命令的作用範圍 | \} | \textbraceright |
< | 數學模式中的小於符號 | $<$ | \textless |
> | 數學模式中的大於符號 | $>$ | \textgreater |
| | OT1 編碼,數學模式中才能正確顯示 | \$|\$ | \textbar |
& | 表格中的分隔符號 | \& | NA |
Example: \LaTeX 指令
輸入: This is my \LaTeX
typesetting example.
排版輸出: This is my \LaTeX typesetting example.
輸入: This is my x_1^2+x_2^2>1
typesetting example.
排版輸出: This is my x_1^2+x_2^2>1 typesetting example.
\LaTeX 字型指令(粗體 斜體 ...)
字形 | \textup{textup} | \textup{textup} |
\textit{italic} | \textit{italic} | |
系列 | \textmd{medium} | \textmd{medium} |
\textbf{boldface} | \textbf{boldface} | |
字族 | \textrm{roman} | \textrm{roman} |
\textsf{sans serif} | \textsf{sans serif} | |
\texttt{typewriter} | \texttt{typewriter} |
Example: \LaTeX 指令
Hello World! \textbf{Hello World!}
Hello World! \textbf{Hello World!}
Hello World! \textit{Hello World!}
Hello World! \textit{Hello World!}
Hello World! \texttt{Hello World!}
Hello World! \texttt{Hello World!}
\LaTeX 字型指令(大小)
指令
\tiny{font} \scriptsize{font} \footnotesize{font} \small{font} \normalsize{font} \large{font} \Large{font} \LARGE{font} \huge{font} \Huge{font}
實際例子
\tiny{Font} \scriptsize{Font}
\footnotesize{Font} \small{Font}
\normalsize{Font} \large{Font}
\Large{Font} \LARGE{Font}
\huge{Font} \Huge{Font}
參考文件 http://jupiter.math.nctu.edu.tw/~smchang/latex/latex123.pdf
Author:By Edward G.J. Lee 李果正 Email : [email protected]