6

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.

Aericura
  • 341

1 Answers1

4

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

DG'
  • 21,727