summaryrefslogtreecommitdiff
path: root/language/chinese/cjkpunct/examples/example-CJKfntef.tex
blob: c27e3ae0773574f4d751af2ed33bdccdabdb3b56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
\documentclass[11pt]{article}
\textheight 220mm
\textwidth 150mm
\oddsidemargin 0pt
\evensidemargin 0pt
\usepackage{xcolor}
\usepackage{CJK}
\usepackage{CJKfntef}

\usepackage{CJKpunct}
\begin{document}
\baselineskip 16pt
\parindent 22pt
\pagestyle{myheadings}
\begin{CJK*}{GBK}{song}


 \section{宏命令列表}
提供两端分散对齐环境

\verb|CJKfilltwosides|

\noindent
和以下宏命令:
\begin{verbatim}
   \CJKunderdot{...}
   \CJKunderline[*]{...}
   \CJKunderdblline[*]{...}
   \CJKunderwave[*]{...}
   \CJKsout[*]{...}
   \CJKxout[*]{...}
并允许以下形式的嵌套:
     \CJKunderdot[..]{...\CJKunderline[*]{...}...}
     \CJKunderdot[..]{...\CJKunderdblline[*]{...}...}
     \CJKunderdot[..]{...\CJKunderwave[*]{...}...}
     \CJKunderdot[..]{...\CJKsout[*]{...}...}
     \CJKunderdot[..]{...\CJKxout[*]{...}...}

     \CJKunderline[*]{...\CJKunderdot[..]{...}...}
     \CJKunderdblline[*]{...\CJKunderdot[..]{...}...}
     \CJKunderwave[*]{...\CJKunderdot[..]{...}...}
     \CJKsout[*]{...\CJKunderdot[..]{...}...}
     \CJKxout[*]{...\CJKunderdot[..]{...}...}
\end{verbatim}
其中不带*的宏对全角标点不起作用。

\verb+\CJKunderdot+有一个可选参数,用以改变修饰符,缺省为加点,
可以根据需要改为其他字符,如三角,小圆圈等。


可以改变下划线和加点的颜色, 以下是缺省配置(需要先调入xcolor宏包)

\begin{verbatim}
  \newcommand{\CJKunderdotcolor}{\color{red}}
  \newcommand{\CJKunderwavecolor}{\color{blue}}
  \newcommand{\CJKunderlinecolor}{\color{blue}}
  \newcommand{\CJKunderdbllinecolor}{\color{blue}}
  \newcommand{\CJKsoutcolor}{\color{red}}
  \newcommand{\CJKxoutcolor}{\color{blue}}
\end{verbatim}

\CJKunderline{汉字加下划线,可以\CJKunderdot{同时加点}。}

\CJKunderline*{汉字加下划线,可以\CJKunderdot{同时加点}。}


\CJKunderdot{汉字加点,可以\CJKunderline{同时加下划线}。}


 \newpage
\end{CJK*}

\end{document}