kanji-sheets/main.tex

87 lines
1.9 KiB
TeX

% !TEX program = xelatex
\documentclass{article}
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=blue,
filecolor=blue,
urlcolor=blue,
}
\usepackage{geometry}
\geometry{
a4paper,
left=20mm,
right=20mm,
top=20mm,
}
\setlength{\parskip}{0.5em}
\setlength{\parindent}{0pt}
\usepackage{longtable} % For multipage tables
%Japanese typesetting and fonts
\usepackage[japanese]{babel}
\usepackage{xeCJK}
\usepackage{fontspec}
\setCJKmainfont{Noto Sans Mono CJK JP} %TODO Add fonts to repo
\setmainfont{Open Sans}
\input{./kanjiLib.tex}
% \usepackage{etoc} % For local tocs containing level based kanji list.
\begin{document}
\input{./title/titlepage.tex}
% Kanji table settings that should not affect the titlepage
\renewcommand{\arraystretch}{2}
\rowcolors{1}{white}{kanjiColor!30}
\break
\tocPiece{Grade 1}{grade1}
\tocPiece{Grade 2}{grade2}
\tocPiece{Grade 3}{grade3}
\tocPiece{Grade 4}{grade4}
\tocPiece{Grade 5}{grade5}
\tocPiece{Grade 6}{grade6}
\tocPiece{Junior High}{grade7}
\break
\section*{Preface}
%TODO: Add more detailed information
Thanks to Timothy Eyre for making the Choumei font and the edition containing stroke order numbers. You can find his work at \url{https://www.nihilist.org.uk/}
Kanji data is taken from \url{https://jisho.org/}
\break
\chapterIntroduction{Grade 1}{grade1}
\input{./data/pages/grade1.tex}
\chapterIntroduction{Grade 2}{grade2}
\input{./data/pages/grade2.tex}
\chapterIntroduction{Grade 3}{grade3}
\input{./data/pages/grade3.tex}
\chapterIntroduction{Grade 4}{grade4}
\input{./data/pages/grade4.tex}
\chapterIntroduction{Grade 5}{grade5}
\input{./data/pages/grade5.tex}
\chapterIntroduction{Grade 6}{grade6}
\input{./data/pages/grade6.tex}
\chapterIntroduction{Junior High}{grade7}
\input{./data/pages/grade7.tex}
\end{document}