~ubuntu-manual/ubuntu-manual/precise-e2

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
%
% Japanese-specific options for the Ubuntu Manual
%

\ProvidesFile{um-japanese.clo}[2010/03/01 v1.0.0 Japanese-specific options for the Ubuntu Manual]

% Serif fonts
\newfontfamily\japanesefont[Script=Kana,Language=Japanese]{Sazanami Mincho}% from ttf-sazanami-mincho

% Sans serif fonts
\newfontfamily\japanesefontsf[Script=Kana,Language=Japanese]{VL PGothic}% from ttf-vlgothic

% Monospaced fonts
\let\japanesefonttt\japanesefontsf

% Chapter cross-referencing
% Should be like: ``2 章:Ubuntu''
\renewcommand{\chaplink}[1]{%
  \IfBeforeSubStringEmpty{ch:}{#1}{%
    \ref{#1}~\hyperref[#1]{\@chapapp}\hyperref[#1]{:}\nameref{#1}%
  }{%
    \ref{ch:#1}~\hyperref[ch:#1]{\@chapapp}\hyperref[ch:#1]{:}\nameref{ch:#1}%
  }%
}

\endinput