summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/xelatex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-07-20 00:40:16 +0000
committerKarl Berry <karl@freefriends.org>2009-07-20 00:40:16 +0000
commit05ce59d3f94be6128b7840f17ce476c614356551 (patch)
tree4be64fa7c50a698a552dbbd826cc488e729c0e51 /Master/texmf-dist/doc/xelatex
parentbefa55daf259a7f10fdcfe9bc77813d9d0c46abe (diff)
new xelatex package xecjk (5jul09)
git-svn-id: svn://tug.org/texlive/trunk@14329 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/xelatex')
-rw-r--r--Master/texmf-dist/doc/xelatex/xecjk/README16
-rw-r--r--Master/texmf-dist/doc/xelatex/xecjk/examples/example-CJKchecksingle.tex52
-rw-r--r--Master/texmf-dist/doc/xelatex/xecjk/examples/example-CJKfntef.tex58
-rw-r--r--Master/texmf-dist/doc/xelatex/xecjk/examples/example-addspaces.tex62
-rw-r--r--Master/texmf-dist/doc/xelatex/xecjk/xeCJK.pdfbin0 -> 226469 bytes
5 files changed, 188 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/xelatex/xecjk/README b/Master/texmf-dist/doc/xelatex/xecjk/README
new file mode 100644
index 00000000000..3bbf9ce6216
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/xecjk/README
@@ -0,0 +1,16 @@
+xeCJK is a package written for XeLaTeX which allows users to typeset
+CJK scripts easily.
+
+ - different default fonts for CJK and other characters;
+ - spaces automatically ignored between CJK characters;
+ - special effects on full-width CJK punctuation; and
+ - automatic adjustment of the space between CJK and other characters.
+
+This package is licensed in LPPL.
+
+If you are interested in the process of development you
+may observe
+
+ http://code.google.com/p/ctex-kit/updates/list
+
+- Sun Wenchang <sunwch@hotmail.com>
diff --git a/Master/texmf-dist/doc/xelatex/xecjk/examples/example-CJKchecksingle.tex b/Master/texmf-dist/doc/xelatex/xecjk/examples/example-CJKchecksingle.tex
new file mode 100644
index 00000000000..686a86b727b
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/xecjk/examples/example-CJKchecksingle.tex
@@ -0,0 +1,52 @@
+%%
+%% This is file `example-CJKchecksingle.tex',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% xeCJK.dtx (with options: `example-CJKchecksingle')
+%%
+%% Version 2.3.0 (30-June-2009)
+%%
+%% Copyright (C) Wenchang Sun <sunwch@hotmail.com>
+%%
+%% This file may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+\documentclass{article}
+\usepackage[boldfont,slantfont,CJKaddspaces,CJKchecksingle]{xeCJK}
+\setCJKmainfont{Bitstream CyberCJK}
+\textwidth 120mm
+\oddsidemargin 0pt
+\def\usemacro#1{\csname#1\endcsname $\backslash$#1}
+\begin{document}
+\baselineskip 18pt
+\parskip 10pt
+\parindent 0em
+
+\long\def\sometexts{xeCJK 改进了中英文间距的处理,并可以避免单个汉字独占一段的最后一行。
+
+xeCJK 改进了中英文间距的处理,并且可以避免单个汉字独占一段的最后一行。
+
+xeCJK 改进了中英文间距的处理, 并且还可以避免单个汉字独占一段的最后一行.
+
+}
+
+\sometexts
+\vskip 20mm
+
+不用CJKchecksingle的效果:
+
+\makeatletter
+\let\xeCJK@checksingle\xeCJK@notchecksingle
+\sometexts
+\end{document}
+
+\endinput
+%%
+%% End of file `example-CJKchecksingle.tex'.
diff --git a/Master/texmf-dist/doc/xelatex/xecjk/examples/example-CJKfntef.tex b/Master/texmf-dist/doc/xelatex/xecjk/examples/example-CJKfntef.tex
new file mode 100644
index 00000000000..1a471d93491
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/xecjk/examples/example-CJKfntef.tex
@@ -0,0 +1,58 @@
+%%
+%% This is file `example-CJKfntef.tex',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% xeCJK.dtx (with options: `example-CJKfntef')
+%%
+%% Version 2.3.0 (30-June-2009)
+%%
+%% Copyright (C) Wenchang Sun <sunwch@hotmail.com>
+%%
+%% This file may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+
+\documentclass[11pt]{article}
+\textheight 220mm
+\textwidth 150mm
+\oddsidemargin 0pt
+\evensidemargin 0pt
+\usepackage[slantfont,boldfont]{xeCJK}
+\usepackage{xcolor}
+\usepackage{CJKfntef}
+
+\begin{document}
+\setCJKmainfont{Bitstream CyberCJK}% 设置缺省中文字体
+\setCJKmonofont{Bitstream CyberCJK}% 设置缺省中文字体
+
+\baselineskip 16pt
+\parindent 2em
+
+ \section{举例}
+\begin{verbatim}
+标点。
+\end{verbatim}
+
+汉字Chinese数学$x=y$空格
+
+汉字 Chinese 数学 $x=y$ 空格
+
+\CJKunderline{汉字Chinese数学$x=y$加下划线,可以\CJKunderdot{同时加点}。}
+
+\CJKunderline{汉字 Chinese 数学 $x=y$ 加下划线,可以\CJKunderdot{同时加点}。}
+
+\CJKunderline*{汉字加下划线,可以\CJKunderdot{同时加点}。}
+
+\CJKunderdot{汉字加点,可以\CJKunderline{同时加下划线}。}
+
+\end{document}
+\endinput
+%%
+%% End of file `example-CJKfntef.tex'.
diff --git a/Master/texmf-dist/doc/xelatex/xecjk/examples/example-addspaces.tex b/Master/texmf-dist/doc/xelatex/xecjk/examples/example-addspaces.tex
new file mode 100644
index 00000000000..1aa511bb602
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/xecjk/examples/example-addspaces.tex
@@ -0,0 +1,62 @@
+%%
+%% This is file `example-addspaces.tex',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% xeCJK.dtx (with options: `example-addspaces')
+%%
+%% Version 2.3.0 (30-June-2009)
+%%
+%% Copyright (C) Wenchang Sun <sunwch@hotmail.com>
+%%
+%% This file may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+\documentclass{article}
+\usepackage[boldfont,slantfont,CJKaddspaces]{xeCJK}
+\usepackage{xcolor}
+\setCJKmainfont{Bitstream CyberCJK}
+\textwidth 190mm
+\oddsidemargin 0pt
+\def\usemacro#1{\csname#1\endcsname $\backslash$#1}
+\begin{document}
+\baselineskip 18pt
+\parskip 10pt
+\parindent 0em
+
+\long\def\sometexts{\par{\color{\colora}
+ 这是 English 中文 {\itshape Chinese} 中文 \LaTeX\
+ 间隔 \textit{Italic} 中文\textbf{字体} a 数学 $b$ $c$ $d$
+\\
+ 这是English中文{\itshape Chinese}中文\LaTeX\
+ 间隔\textit{Italic}中文\textbf{字体}a数学$b$ $c$ $d$\\
+This is an example. 这是一个例子
+}}
+
+\def\colora{blue}
+\usemacro{CJKaddspaces}
+\CJKsetecglue{\hskip 0.15em plus 0.05em minus 0.05em}
+\verb+\CJKsetecglue{\hskip 0.15em plus 0.05em minus 0.05em}+
+\sometexts
+
+\def\colora{red}
+\usemacro{CJKaddspaces}
+\CJKsetecglue{ }
+\verb+\CJKsetecglue{ }+
+\sometexts
+
+\def\colora{blue!50!red}
+\usemacro{CJKnormalspaces}
+\sometexts
+
+\end{document}
+
+\endinput
+%%
+%% End of file `example-addspaces.tex'.
diff --git a/Master/texmf-dist/doc/xelatex/xecjk/xeCJK.pdf b/Master/texmf-dist/doc/xelatex/xecjk/xeCJK.pdf
new file mode 100644
index 00000000000..46382238142
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/xecjk/xeCJK.pdf
Binary files differ