Page Layoutminitoc is not displayed

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
spikke
Posts: 2
Joined: Fri Sep 19, 2014 2:07 pm

minitoc is not displayed

Post by spikke »

Hey there,

i write my thesis atm and until here i could solve all of my problems but now i cannot find any solution for my problem and i hope you guys here have some advice.

iam almost done with the paper and started to make experiments with the layout (fonts and chapter-headings) and after these experiments minitoc is not longer displayed and wont come back even if i reset my preamble/stlye to the version i had before.

i give u my complete preamble because i suppose that one of the packages could cause my problem by interfering with sth else. and here i hope one of you can tell me which one.

thank you! =)

Code: Select all

\documentclass[a4paper,oneside,12pt, ngerman, listof=numbered]{report}

\usepackage[utf8x]{inputenc} %DARSTELLUNG UMLAUTE
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{graphicx}
\DeclareGraphicsExtensions{.jpg,.pdf,.bmp,.png,.mp s}
\usepackage[ngerman]{babel}
\usepackage{units}
\usepackage{geometry}
\geometry{a4paper, top=25mm, left=40mm, right=20mm, bottom=30mm, headsep=10mm, footskip=12mm}
\usepackage[automark,clines]{scrpage2}
\setlength{\headheight}{2\baselineskip}
\pagestyle{scrheadings}
\automark[section]{chapter}
\lehead[]{}
\rohead[]{\pagemark}
\ifoot[]{}
\cfoot[]{}
\ofoot[]{}
\usepackage[onehalfspacing]{setspace}
\usepackage[]{minitoc}
\usepackage{xcolor}
\definecolor{dunkelgrau}{rgb}{0.55,0.55,0.55}
\definecolor{mittelgrau}{rgb}{0.75,0.75,0.75}
\definecolor{hellgrau}{rgb}{0.95,0.95,0.95}
\definecolor{darkgreen}{rgb}{0.0,0.68,0.0}
\definecolor{lightgreen}{rgb}{0.24,0.92,0.24}
\definecolor{gelb}{rgb}{1.0,1.0,0.4}
\definecolor{orange}{rgb}{1.0,0.75,0.0}
\definecolor{rot}{rgb}{1.0,0.6,0.4}
\usepackage{tabularx}
\usepackage{multirow}
\usepackage{colortbl}
\usepackage{longtable}
\usepackage [colorlinks,
pdfpagelabels,
pdfstartview = FitH,
bookmarksopen = true,
bookmarksnumbered = true,
linkcolor = black,
plainpages = false,
hypertexnames = false,
citecolor = black]
{hyperref}
\usepackage{caption}
\usepackage{capt-of}
\DeclareFontFamily{T1}{garamond}{}
%\usepackage{mathptmx}
\usepackage{blindtext}

\usepackage{fix-cm}
\usepackage{titlesec}
\usepackage{tikz}
\usetikzlibrary{calc}
\titleformat{\chapter}[display]
{\bfseries\Large}
{\hfill \tikz[remember picture] \node[] (nr) {\fontsize{120}{70}\selectfont\color{lightgray}\te xtbf{\thechapter}};
\begin{tikzpicture}[overlay,remember picture]
\coordinate (leftborder) at ($(nr)-(100,0)$);
\coordinate (left) at ($(nr.west)-(1.5,0)$);
\draw[line width=2em] ($(nr.north east)+(0,1)$) -- ($(nr.north west)+(0,1)$) -- (left) -- (leftborder);
\end{tikzpicture}}
{-2ex}
{\filleft\fontsize{50}{70}\selectfont\scshape}
[\vspace{0ex}]

\makeatletter
\renewcommand\listoftables{
\chapter{\listtablename}
\@mkboth {\MakeUppercase\listtablename}
{\MakeUppercase\listtablename}
\@starttoc{lot}
}
\renewcommand\listoffigures{
\chapter{\listfigurename}
\@mkboth {\MakeUppercase\listfigurename}
{\MakeUppercase\listfigurename}
\@starttoc{lof}
}
\makeatother

\newcommand{\ltab}{\raggedright\arraybackslash} % Tabellenabschnitt linksbündig
\newcommand{\ctab}{\centering\arraybackslash} % Tabellenabschnitt zentriert
\newcommand{\rtab}{\raggedleft\arraybackslash} % Tabellenabschnitt rechtsbündig

% Hurenkinder und Schusterjungen verhindern
\clubpenalty=10000
\widowpenalty=10000
\displaywidowpenalty=10000

\begin{document}
\dominitoc
\chapter {Einleitung}\label{1}
\minitoc
\par\medskip
TEXTTEXTTEXT

\section{Motivation}\label{1.1}
TEXTTEXTTEXT

\section{Zielsetzung}\label{1.2}
TEXTTEXTTEXT
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

minitoc is not displayed

Post by Johannes_B »

This question also arised in the german forums GoLaTeX and mrunix. Crosposting is ok for me, as long as it is properly marked and linked.

Please read, what our administrator thinks of that: Gimme Pizza
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
spikke
Posts: 2
Joined: Fri Sep 19, 2014 2:07 pm

Re: minitoc is not displayed

Post by spikke »

Yes i asked the question on the two other platforms Johannes mentioned. I ask my first question about a Latex-Problem and tried to increase my chances on help by asking the same question multiply. Especially with this english forum i didnt see any sense in referencing to an german forum...

any help besides that Johannes?
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

minitoc is not displayed

Post by Johannes_B »

The minitoc manual clearly states that \dominitoc has to be given before any \tableofcontents or other list-generating command. There is none in your example.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply