File: UTF8.tex

package info (click to toggle)
cjk 4.8.4+git20170127-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 3,876 kB
  • ctags: 503
  • sloc: lisp: 12,099; sh: 3,731; ansic: 2,429; perl: 1,804; makefile: 358
file content (53 lines) | stat: -rw-r--r-- 1,214 bytes parent folder | download | duplicates (2)
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
% 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.4 (18-Apr-2015)

\documentclass[12pt]{article}

\usepackage{CJKutf8}
\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}{<-> cyberbit00}{}
\renewcommand\rmdefault{song}


\begin{document}

\begin{CJK}{UTF8}{song}

\noindent Hello World!

\noindent Καλημέρα κόσμε

\CJKnospace
\noindent こんにちは 世界

% We need to end the CJK environment with a \newpage; otherwise the
% .aux and .toc files sometimes get messed up.  See `CJK.txt' in
% /usr/share/doc/latex-cjk-common/ for more information, under
% `Possible errors'.
\newpage
\end{CJK}

\end{document}

%%% Local Variables:
%%% coding: utf-8
%%% mode: latex
%%% TeX-master: t
%%% End: