Debian Codegraph @

texmf-dist/doc/fonts/ipaex-type1/sample-ipaex-type1.tex

raw
1 \documentclass[a4paper]{article}
2 \usepackage{CJKutf8,CJKspace,CJKpunct,ruby}
3 \setlength{\parindent}{0pt}
4 %% \begin{jaQuote}{<family>}...\end{jaQuote}
5 \newenvironment{jaQuote}[1]{%
6 \begin{quote}\linespread{1.4}\selectfont
7 \begin{CJK*}{UTF8}{#1}\CJKtilde
8 }{%
9 \end{CJK*}\end{quote}%
10 }
11 %% \jaRuby{<base>}{<ruby>}
12 \newcommand{\jaRuby}[2]{{%
13 \renewcommand{\rubysize}{0.5}%
14 \renewcommand{\rubysep}{-0.12em}\rubyCJK
15 \setlength{\baselineskip}{1.257em}\linespread{}%
16 \ruby{#1}{#2}%
17 }}
18 %% sample text
19 \newcommand{\jaEllip}{\Unicode{"20}{"26}}
20 \newcommand{\jaSnowman}{\Unicode{"26}{"03}}
21 \newcommand{\jaSampleText}{%
22 この~FAQ~リストは、よくある質問とその答を集め、
23 役に立つようにしたものです。
24 この~FAQ~リストの構造は、以前のものと比べて
25 大幅に変更されています。%
26 \jaRuby{新}{あたら}しい構造に関しては、
27 「この~FAQ~の読み方とその構造」の
28 項目を\jaRuby{参照}{さんしょう}して下さい。
29 }
30 \begin{document}
31
32 Family `\texttt{ipxm}' (IPAexMincho):
33 \begin{jaQuote}{ipxm}
34 \jaSampleText
35 \end{jaQuote}
36
37 (also using \texttt{ipxm} for alphabet)
38 \begin{jaQuote}{ipxm}
39 \fontfamily{ipxm}\selectfont
40 pdf{\LaTeX}~と~CJK~パッケージで日本語\jaSnowman!
41 \par\punctstyle{plain}
42 % Japanese "Ascii Art" --- one of the few places
43 % where "hankaku-kana" is reasonably used
44 ( ˘ω˘ )スヤァ\jaEllip
45 \end{jaQuote}
46
47 Use of non-BMP characters
48 \begin{jaQuote}{ipxm}
49 %'𠮟' = U+20B9F
50 猫𠮟るより猫を囲え。
51 \end{jaQuote}
52
53 \sffamily
54 Family `\texttt{ipxg}' (IPAexGothic):
55 \begin{jaQuote}{ipxg}
56 \jaSampleText
57 \end{jaQuote}
58
59 (also using \texttt{ipxg} for alphabet)
60 \begin{jaQuote}{ipxg}
61 \fontfamily{ipxg}\selectfont
62 pdf{\LaTeX}~と~CJK~パッケージで日本語\jaSnowman!
63 \par\punctstyle{plain}
64 ( ˘ω˘ )スヤァ\jaEllip
65 \end{jaQuote}
66
67 Use of non-BMP characters
68 \begin{jaQuote}{ipxg}
69 猫𠮟るより猫を囲え。
70 \end{jaQuote}
71
72 \end{document}