LaTeX special characters

Code:

\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. 
	
	%中英文混合时,自动产生空格间隔
	把一望无际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{xxx}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 "  "hh" 'nihao'
	“你好" '你好'
	
	\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}

 

running result:

Published 118 original articles · won praise 63 · views 40000 +

Guess you like

Origin blog.csdn.net/qq_42185999/article/details/104204692