目錄
本系列是有關LaTeX的學習系列,共計19篇,本章節是第11篇。
前一篇:10LaTeX學習系列之---Latex的文檔結構
后一篇:12LaTeX學習系列之---LaTex的圖片插入
總目錄:19LaTeX學習系列之---LaTeX的總結
前言
今天講的是LaTeX的特殊字符,由於內容比較多,只能用到的時候,再回來查查看。
(一)源代碼
\documentclass{article}
\usepackage{ctex}
%XeLaTeX標准的宏包
\usepackage{xltxtra}
\usepackage{texnames}
\usepackage{mflogo}
\begin{document}
\section{空白字符}
% 英文多個空格,當作一個空格處理
We always knew our daughter Kendall was going be a performer of some sort. She entertained people in our small town by putting on shows on our front porch when she was only three or four. Blonde-haired, blue-eyed, and beautiful, she sang like a little angel and
%中英文混合時,自動產生空格間隔
%中文空格無效
秋風用時光的旋律,andbeautiful,用桂花的芬芳、蘋果的馨香、菊花的燦爛、牽牛花的奔放、一串紅的艷麗,把一望無際three or four.的田野鄉村,演繹得在自然中沉醉,渲染得天地間空曠而又陽剛。
% 1em(當前字體一個M的大小)
a\quad b
% 2em
a\qquad b
% 1/6的個em
a\, b 或者 a\thinspace b
% 0.5em
a\enspace b
% 輸出一個空格
a\ b
% 硬空格
a~b
% 1pc=12pt=4.218mm
a\kern 5pc b
a\kern -1em b
a\hskip 5em b
a\hspace{35pt}b
% {}里字符的占位寬度,可以是多個
a\hphantom{x}b
%彈性長度
a\hfill b
\section{\LaTeX 控制符}
%轉義字符 其中‘\’ 用\textbackslash
\# \$ \% \{ \} \~{} \_{} \^{} \& \textbackslash
\section{排版符號}
\S \P \dag \ddag \copyright \pounds
\section{\TeX 標志符號}
\TeX{} \LaTeX{} \LaTeXe{}
% xltxtra宏包提供
\XeLaTeX{}
%texnames宏包提供
\AmSTeX{} \AmS- \LaTeXe{}
\BibTeX{} \LuaTeX{}
%mflogo宏包提供
\METAFONT{} \MF{} \MP{}
\section{引號}
` ' ``hello "
“你好"
\section{連續字符}
%短中長字符
- -- ---
\section{非英符號}
\oe \OE \ae \AE \aa \AA \o \O \l \L \ss \SS !` ?`
\section{重音符號(以為例子)}
\`o \'o \''o \~o \=o \.o \u{o} \v{o} \H{o} \r{o}
\t{o} \b{o} \c{o} \d{o}
\end{document}
(二)輸出效果


本系列是有關LaTeX的學習系列,共計19篇,本章節是第11篇。
前一篇:10LaTeX學習系列之---Latex的文檔結構
后一篇:12LaTeX學習系列之---LaTex的圖片插入
總目錄:19LaTeX學習系列之---LaTeX的總結
