File: sample-bxcjkjatype-beamer.tex

package info (click to toggle)
texlive-lang 2016.20170123-5
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,093,148 kB
  • ctags: 15,901
  • sloc: perl: 46,074; xml: 29,603; makefile: 5,248; sh: 3,179; python: 2,949; ansic: 2,846; ruby: 945; lisp: 726; awk: 636; java: 159; sed: 142; cpp: 12
file content (76 lines) | stat: -rw-r--r-- 2,099 bytes parent folder | download | duplicates (8)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
% This file is encoded in UTF-8.
% To be typeset with pdflatex or latex + dvipdfmx.
\documentclass[12pt]{beamer}           % for pdfTeX
%\documentclass[12pt,dvipdfmx]{beamer} % for dvipdfmx
\hypersetup{unicode}%← needed to make bookmark text right
\usepackage[whole]{bxcjkjatype}% needed 'whole'
%% That's all! You can do 日本語 right now!
\usetheme{Warsaw}
%---------------------------------------
\title{How to do 日本語 with pdf{\TeX}}
\author{ZR 某}
\date{某日 of August, 2013}
%---------------------------------------
\begin{document}

\begin{frame}
  \titlepage
\end{frame}

%---------------------------------------
\section{日本語 with bxcjkjatype package}

\begin{frame}[fragile]{First}
  Load the \alert{bxcjkjatype} package in preamble.\par
  Use of \structure{\texttt{whole}} option is often suitable.\par
  \begin{exampleblock}{とある Example}
\begin{verbatim}
\documentclass[a4paper]{article}
\usepackage[whole]{bxcjkjatype}
\end{verbatim}
  \end{exampleblock}
\end{frame}

\begin{frame}[fragile]{Second}
  Write whatever 日本語 text you like in the document body.\par
  You can use ひらがな, カタカナ, 漢字, and/or
  any character available in the standard fonts
  (\structure{IPAex明朝/ゴシック}).\par
  \begin{exampleblock}{とある Example}
\begin{verbatim}
\documentclass[a4paper]{article}
\usepackage[whole]{bxcjkjatype}
\begin{document}
私のホバークラフトは鰻でいっぱいです。
\end{document}
\end{verbatim}
  \end{exampleblock}
  \structure{※} Must use UTF-8.\par
\end{frame}

\begin{frame}[fragile]{Third}
  Compile the document as usual.\par

\begin{verbatim}
pdflatex sample.tex
\end{verbatim}
\end{frame}

\begin{frame}{Last}\relax
  {\LARGE\alert{完成!}\par}
  \begin{block}{とある Output}
    \rmfamily
    私のホバークラフトは鰻でいっぱいです。
  \end{block}
\end{frame}

%---------------------------------------
\section{Conclusion (Not!)}

\begin{frame}{おしまい}
  \transdissolve[duration=0.5]
  \centering\Large
  \structure{Happy 日本語 {\TeX}ing!}
\end{frame}

\end{document}