% 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{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:
