


% ==========================================================================================================
%
% 8888888b.  8888888  .d8888b.  88888888888 8888888  .d88888b.  888b    888        d8888 8888888b.  Y88b   d88P
% 888  "Y88b   888   d88P  Y88b     888       888   d88P" "Y88b 8888b   888       d88888 888   Y88b  Y88b d88P
% 888    888   888   888    888     888       888   888     888 88888b  888      d88P888 888    888   Y88o88P
% 888    888   888   888            888       888   888     888 888Y88b 888     d88P 888 888   d88P    Y888P
% 888    888   888   888            888       888   888     888 888 Y88b888    d88P  888 8888888P"      888
% 888    888   888   888    888     888       888   888     888 888  Y88888   d88P   888 888 T88b       888
% 888  .d88P   888   Y88b  d88P     888       888   Y88b. .d88P 888   Y8888  d8888888888 888  T88b      888
% 8888888P"  8888888  "Y8888P"      888     8888888  "Y88888P"  888    Y888 d88P     888 888   T88b     888
%
% ==========================================================================================================
% \renewcommand\cn{\jzrFontCwKai}
% \renewcommand\cn{\jzrFontCwHei}
% \renewcommand\cn{\jzrFontCwFangsong}
% \renewcommand\cn{\jzrFontCwMing}
% ----------------------------------------------------------------------------------------------------------
\usepackage[user,abspage,savepos]{zref}
\newcommand{\jzrSaveYPosition}[1]{%
  \sbDummy\zsaveposy{#1}\node{f}{#1,\prFontSizePt,\zposy{#1}}%
  }
% \usepackage{cxltx}
\usepackage{cxltx-style-pushraise}
\usepackage{cxltx-style-smashbox}
\usepackage{cxltx-style-trm}
\usepackage{cxltx-style-hyphenation-tolerance}
\usepackage{cxltx-style-position-absolute}
% \usepackage{multicol}
% \usepackage{picinpar}


% ----------------------------------------------------------------------------------------------------------
\newdimen\myLineheight
\newdimen\myFontsize
\myFontsize=3.5mm
\myLineheight=4.6667mm
\setlength{\baselineskip}{\myLineheight}
\setlength{\parskip}{0mm}
\setlength{\parindent}{0mm}
% thx to http://www.tug.org/TUGboat/tb28-1/tb88bazargan.pdf for the next:
\lineskiplimit=-10pt%
\lineskip=0pt%
\topskip=\baselineskip%
% ..........................................................................................................
\usepackage[
  % asymmetric,% see http://tex.stackexchange.com/a/42051/28067
  driver=xetex,
  % showframe,%
  % twoside,
  left=21mm,%
  right=21mm,%
  top=21mm,%
  bottom=14mm,%
  headsep=0mm,%
  headheight=0mm,%
  footskip=0mm,%
  marginparsep=0mm,%
  marginparwidth=0mm,%
  includehead=false,%
  includefoot=false,%
  includemp=false,%
  paperwidth=210mm,%
  paperheight=297mm,%
  ]{geometry}
% ..........................................................................................................
% \usepackage{pagegrid}
% % \pagegridsetup{top-left,step=\myLineheight,arrows=false}
% \pagegridsetup{top-left,step=1mm,arrows=false}
% % \pagegridsetup{top-left,step=7mm,arrows=false}

% \newcommand{\jzrSizeTwo}[1]{{%
%   \fontsize{2.5\nominalfontsize}{2.5\jzrDictGridstrutlength}\leading{2.5\jzrDictGridstrutlength}%
%   #1}}%
% \newcommand{\jzrSizeThree}[1]{{%
%   \fontsize{3\nominalfontsize}{3\jzrDictGridstrutlength}\leading{3\jzrDictGridstrutlength}%
%   #1}}%


\newcommand{\myBigtype}[1]{{%
  \fontsize{14mm}{14mm}\leading{14mm}#1%
  }}%

\newcommand{\myBigtypeCn}[1]{{%
  \fontsize{14mm}{14mm}\leading{14mm}#1%
  }}%

\usepackage{cxltx-style-smashbox}

\makepagestyle{jzrdictionary}
\makeevenhead{jzrdictionary}{\jzrpagenumber{\thepage}}{}{\cn{萬字一覽}}
\makeoddhead{jzrdictionary}{\cn{萬字一覽}}{}{\jzrpagenumber{\thepage}}
% \makeevenhead{jzrdictionary}{\jzrpagenumber{\thepage}}{\cn{部件}}{\jzrpagenumber{Dictionary}}
% \makeoddhead{jzrdictionary}{\jzrpagenumber{Dictionary}}{部件}{\jzrpagenumber{\thepage}}
% \pagestyle{jzrdictionary}
\pagestyle{empty}

% \usepackage{vruler}
% \setvruler[10mm][0][1][3][0][0mm][0mm][0mm][297mm]
% defines the start of vertical rulers, where:
% 〈scale〉is the distance between two consecutive markings on the vruler
% 〈initial_count〉is the value on the first mark on the ruler
% 〈step〉is the mark increment
% 〈digits〉is the number of digits needed for ruler markings
% 〈mode〉= 0 if each page has the same ruler marking, = 1 otherwise
% 〈odd_hshift〉is the horizontal shift for odd pages, from the default
% 〈even_hshift〉is the horizontal shift for even pages, from the default
% 〈vshift〉is the the vertical shift, from the default value, and
% 〈height〉is the height of the vertical ruler.

\renewcommand{\usageCode}[1]{{%
  \setlength{\fboxsep}{0.5mm}%
  \setlength{\fboxrule}{0.15mm}%
  \framebox{\jzrFontUbuntu#1}}}


\usepackage{cxltx-style-oddeven}
\usepackage{cxltx-style-solarized}
\usepackage{cxltx-style-position-absolute}
\usepackage{cxltx-style-pushraise}
\begin{document}
\fontsize{\myFontsize}{\myLineheight}\leading{\myLineheight}\selectfont%

#{content}

\end{document}
