summaryrefslogtreecommitdiff
path: root/language/chinese/CJK/cjk-4.8.5/examples/UTF8.tex
diff options
context:
space:
mode:
Diffstat (limited to 'language/chinese/CJK/cjk-4.8.5/examples/UTF8.tex')
-rw-r--r--language/chinese/CJK/cjk-4.8.5/examples/UTF8.tex48
1 files changed, 48 insertions, 0 deletions
diff --git a/language/chinese/CJK/cjk-4.8.5/examples/UTF8.tex b/language/chinese/CJK/cjk-4.8.5/examples/UTF8.tex
new file mode 100644
index 0000000000..d2f646f653
--- /dev/null
+++ b/language/chinese/CJK/cjk-4.8.5/examples/UTF8.tex
@@ -0,0 +1,48 @@
+% This is the file UTF8.tex of the CJK package
+% for testing UTF 8 encoding.
+%
+% written by Werner Lemberg <wl@gnu.org>
+%
+% Version 4.8.5 (16-Oct-2021)
+
+\documentclass[12pt]{article}
+
+\usepackage{CJK}
+\usepackage[T1]{fontenc}
+
+
+% WARNING! The font `cyberbit.ttf' is *not* part of TeXLive!
+% Its use is discouraged. If you really want to use it, please
+% follow the instructions given in `font.txt'.
+%
+% Look at the `CJKutf8.tex' example file (and read the
+% `CJKutf8.txt' documentation file) for a better way how to
+% process documents in UTF 8 encoding.
+
+
+% we want the Unicode font for normal text also
+\DeclareFontFamily{T1}{song}{}
+\DeclareFontShape{T1}{song}{m}{n}{<-> cyberb00}{}
+\renewcommand\rmdefault{song}
+
+
+\begin{document}
+
+\begin{CJK}{UTF8}{song}
+
+\noindent Hello World!
+
+\noindent Καλημέρα κόσμε
+
+\CJKnospace
+\noindent こんにちは 世界
+
+\end{CJK}
+
+\end{document}
+
+%%% Local Variables:
+%%% coding: utf-8
+%%% mode: latex
+%%% TeX-master: t
+%%% End: