From fe162fb71f2988a8028d9c71ae328c6b2b98bd03 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Thu, 28 May 2020 23:38:36 +0200 Subject: [PATCH] Fix toc issues --- kanjiLib.tex | 14 ++++++++++---- main.tex | 10 +++++----- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/kanjiLib.tex b/kanjiLib.tex index 7e95724..4a05bde 100644 --- a/kanjiLib.tex +++ b/kanjiLib.tex @@ -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 diff --git a/main.tex b/main.tex index 213700a..ad7e6e6 100644 --- a/main.tex +++ b/main.tex @@ -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}