3 \documentclass[a4paper,twoside]{bxjsarticle}
5 \usepackage{myjapanese}
7 \setmainfont{HAN NOM A}
11 \newfontfamily\jarm{IPA明朝}
12 \newfontfamily\ebas{EBAS}
14 \newfontfamily\ext{HAN NOM B}
24 \renewcommand{\thepage}{\texttt{\arabic{page}}}
25 \renewcommand\thefootnote{\texttt{*}\kern1pt\texttt{\arabic{footnote}}}
26 %\newcommand{\wordindex}[2]{\raisebox{1.5em}{{\footnotesize #1~#2}}\hspace{-3em}}
27 \newcommand{\wordindex}[2]{{\small (#1) \hspace{-2em}}\raisebox{1.5em}{{\footnotesize #2}}}
30 \newcommand{\book}[1]{《#1》}
31 \newcommand{\chap}[1]{〈#1〉}
32 \newcommand{\pers}[1]{\underline{#1}}
33 \newcommand{\fanqie}[1]{#1}
34 \newcommand{\rime}[1]{#1}
35 \newcommand{\seal}[1]{{\sw #1}}
36 \newcommand{\xiaozi}[1]{( #1 )}
37 \newcommand{\dzhnote}[1]{\footnote{#1}}
41 {\jarm「点注会」校注\\\today}
44 \Large\textrm{<%= @title %>}\vspace{2em}
47 <% @wordlist.each do |word| %>
48 <% (spec, content) = word %>%
49 <% if spec == 'part' then %>%
51 <% elsif spec == 'volume' then %>%
54 <% (type, ext_word, char, wordid) = spec %>%
55 <% if type == 'ebas' then %>%
56 {\Huge\ebas <%= char %>}%
58 {\Huge\sw <%= char %>}%
60 \wordindex{<%= ext_word %>}{<%= wordid %>}
62 <% if content then %>%
63 <% content.each do |line| %>%
64 <% if line.has_key?('ex') then %>%
65 {\Large <%= line['ex'] %>}%
66 <% elsif line.has_key?('dn') then %>%