4

Recently I have been looking through Till Tantau's (the creator of TikZ) script on logic (see here).

He uses a beautiful layout at each beginning of a chapter.

enter image description here

So I want to recreate the little "table", where learning goals ("Lernziele") are on the left half and the TOC of the chapter is on the right.

enter image description here

There have been some efforts being made to add a picture next to the TOC or to use minipages and TikZ nodes.

However, is it possible to recreate this layout with minitoc (or similar alternatives) and TikZ?

My attempts so far have not been that great, here is a MWE:

\usepackage[ngerman]{babel}
\usepackage{xcolor, tikz, lipsum}
\usepackage{enumitem}
\definecolor{azure}{HTML}{105F74}
\usepackage[german]{minitoc}
\usepackage{geometry}

\setlength{\mtcskipamount}{\bigskipamount}
\mtcsetfont{minitoc}{section}{\small\rmfamily\upshape}
\mtifont{\huge\color{azure}}

\begin{document}
\dominitoc
\faketableofcontents

\chapter{Chapter One}
\begin{minipage}{0.5\textwidth}
\centering
{\huge\sffamily\textcolor{azure}{Learning goals}}
\flushleft
\begin{enumerate}[label=\color{azure}\theenumi.]
\item  First Goal
\item  Second goal
\end{enumerate}
\end{minipage}
\begin{minipage}{0.5\textwidth}
\nomtcrule\minitoc
\end{minipage}
\section{Section One}
\lipsum[1]
\subsection{Subsection One}
\section{Section Two}
\lipsum[2]
\section{Section Three}
\section{Section Four}
\end{document}

And the result looks like this: enter image description here

In particular, (at least) the following points are missing:

  • alignment of Learning Goals to "Inhaltsangabe"
  • indent of TOC
  • colored seperation line

How can this (and maybe some more improvements) be done?

EDIT: I included \usepackage{enumitem} to make the enumeration point in the desired color.

  • 2
    Just added a MWE, thank you! – Aericura Apr 19 at 18:15
  • The default is to align the centers of minpages. OTOH, [t] doesn't quite work either, due to the differences between enumerate and mintoc. – John Kormylo Apr 19 at 23:48
  • Ah, nice to know! So do you have any other suggestion on how to align these two columns? Multicol? Tikz matrices? – Aericura Apr 20 at 7:46
  • @Aericura, have succeded replicating the rest of the Layout? I need help with the headers. – Mauramz Jun 27 at 23:39
  • @Mauramz no, I aborted the project. – Aericura Sep 15 at 23:19
3

You could start here:

\documentclass[a4paper]{book}

\usepackage[ngerman]{babel}
\usepackage{xcolor}
\definecolor{azure}{HTML}{105F74}

\usepackage{enumitem}

\usepackage{multicol}
  \setlength{\columnseprule}{.3pt}
  \def\columnseprulecolor{\color{azure}}
\usepackage{geometry}
\usepackage{tocloft}
  \setlength{\cftsecindent}{0em}
  \setlength{\cftsecnumwidth}{2em}
  \setlength{\cftsubsecindent}{\cftsecindent}
  \addtolength{\cftsubsecindent}{\cftsecnumwidth}
  \setlength{\cftsubsecnumwidth}{3em}
  \setlength{\cftsubsubsecindent}{\cftsubsecindent}
  \addtolength{\cftsubsubsecindent}{\cftsubsecnumwidth}
\usepackage[german]{minitoc}
  \mtcsettitle{minitoc}{}
  \mtcsetrules{minitoc}{off}
  \setlength{\mtcindent}{0em}

\begin{document}
  \dominitoc
  \faketableofcontents

  \chapter{Chapter One}
    \begin{multicols}{2}

      \begin{minipage}[t]{\linewidth}
      \textcolor{azure}{\large\bfseries Learning goals}
        \begin{enumerate}[label=\color{azure}\theenumi.]
          \item  First Goal
          \item  Second goal
        \end{enumerate}
      \end{minipage}

      \begin{minipage}[t]{\linewidth}
      \textcolor{azure}{\large\bfseries Inhaltsangabe}
        \minitoc
      \end{minipage}

    \end{multicols}

  \section{Section One}
    \subsection{Subsection One}
  \section{Section Two}
  \section{Section Three}
  \section{Section Four}
\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.