%导言区
\documentclass[11pt]{ctexart} %ctexbook,ctexreport,没有letter类型
% 只有10 1112 pt
\usepackage{ctex} %导入中文包,才能输入显示中文
\usepackage{xltxtra} %提供了针对Xetex的改进,并且加入了Xetex的LOGO
\usepackage{texnames} %一些LOGO
\usepackage{mflogo}\title{\heiti 图像处理作业} %指定字体:黑体
\author{\kaishu 小菲菲} %指定字体:楷书
\date{\today}
%=========专用设置标题格式=======\ctexset{
% 修改 section。
section={format=\heiti\raggedright\zihao{-4}, %设置section标题为黑体、右对齐、小4号字
name={,、},
number={\chinese{section}},
beforeskip=1.0ex plus 0.2ex minus .2ex,
afterskip=1.0ex plus 0.2ex minus .2ex,
aftername=\hspace{0pt}},
% 修改 subsection。
subsection={format=\heiti\zihao{5}, % 设置 subsection 标题为黑体、5号字
name={,、},
number={\arabic{subsection}},
beforeskip=1.0ex plus 0.2ex minus .2ex,
afterskip=1.0ex plus 0.2ex minus .2ex,
aftername=\hspace{0pt}}}
%正文区(文稿区)
\begin{document}\maketitle %显示导言区内容
\section{空白字符}
%空行分段,多个空行等同于一个空行,空行用于另起一段
%自动缩进,绝不能使用空格代替
%英文中的多个空格处理为1个空格,中文中的空格将被忽略
%汉字与其他字符间的间距将有XeLaTeX自动处理
%禁止使用中文全角空格
Life is full of confusing and disordering Particular time, a particular location, Do the arranged thing of ten million timein the brain, Step by step , the life is hard to avoid delicacy and stiffness No enthusiasm forever, No unexpected happening of surprising and pleasing So, only silently ask myself in mind Next happiness, when will come?
人生的纷纷扰扰,杂杂乱乱, 在一个特定的时间,特定的地点, 做脑海中安排了千万遍的事, 一步一骤,人生难免精致,却也死板, 永远没有激情,没有意料之外的惊喜。 于是,也只有在心里默默地问: 下一班幸福,几点开?
% 1em(当前字体中的M的宽度)
a\quad b
% 2em(当前字体中的M的宽度)
a\qquad b
% 约为1/6个em
a\,b a\thinspace b
% 0.5个em(当前字体中的M的宽度)
a\enspace b
% 空格
a\ b
% 硬空格
a~b
%1pc=12pt=4.218mm
a\kern 1pc b
a\kern -1em b
a\kern 1em b
a\hspace{35pt}b
%站位宽度
a\hphantom{xyz}b
%弹性长度:用于撑满整个空间
a\hfill b
\section{\LaTeX 控制符}\#
\$
\{\}\~{}\_{}\^{}\textbackslash
\section{排版符号}\section{标志符号}\section{引号}\section{连字符}\section{非英文字符}\section{重音符号(以o为例)}\end{document}