Fix toc issues

This commit is contained in:
Oystein Kristoffer Tveit 2020-05-28 23:38:36 +02:00
parent 8fa6d705b5
commit fe162fb71f
2 changed files with 15 additions and 9 deletions

View File

@ -1,5 +1,5 @@
\usepackage[table]{xcolor}
\usepackage[most]{tcolorbox}
\usepackage[many]{tcolorbox}
\usepackage{anyfontsize}
\usepackage{tikz}
@ -12,12 +12,18 @@
% JLPT Section %
% ---------------------------------------------------------------------------- %
\newcommand{\jlptSection}[1]{
\section*{\uppercase{#1}}
\setcounter{secnumdepth}{0}
\newcommand{\jlptSection}[2]{
% For some reason, I'm not able to use \uppercase in order to use
% a single argument. In the end, I found that just using two arguments
% was going to be easier than trying to override the way the LaTeX
% kernel handles this command.
\section{#1}
\begin{center}
\fontsize{16}{16}
\input{./data/tables/#1.tex}
\input{./data/tables/#2.tex}
\end{center}
\localtableofcontents

View File

@ -58,23 +58,23 @@
\break
\jlptSection{n5}
\jlptSection{N5}{n5}
\input{./data/testing/test.tex}
\jlptSection{n4}
\jlptSection{N4}{n4}
% \input{./data/pages/n4.tex}
\jlptSection{n3}
\jlptSection{N3}{n3}
% \input{./data/pages/n3.tex}
\jlptSection{n2}
\jlptSection{N2}{n2}
% \input{./data/pages/n2.tex}
\jlptSection{n1}
\jlptSection{N1}{n1}
% \input{./data/pages/n1.tex}