I have a problem with minitoc. I have 5 chapter in my Thesis. It shows up on all chapters except the first one. Here is the code.

\documentclass[a4paper,11pt,leqno,openbib,oldfontcommands]{memoir} %add 'draft' to turn draft option on (see below)
% Adding metadata:
   /Author (Author's name)
   /Title (PhD Thesis)
   /Keywords (One; Two;Three)
   /CreationDate (D:\pdfdate)
% When draft option is on. 
    \usepackage{draftwatermark}             %Sets watermarks up.
    \SetWatermarkText{\bf Draft: \today}

% Declare figure/table as a subfloat.
% Better page layout for A4 paper, see memoir manual.
% Font with math support: New Century Schoolbook
% UoB guidelines:
% Text should be in double or 1.5 line spacing, and font size should be
% chosen to ensure clarity and legibility for the main text and for any
% quotations and footnotes. Margins should allow for eventual hard binding.
% Note: This is automatically set by memoir class. Nevertheless \OnehalfSpacing 
% enables double spacing but leaves single spaced for captions for instance. 
% Sets numbering division level
% Chapter style (taken and slightly modified from Lars Madsen Memoir Chapter 
% Styles document
    \makebox[0pt][c]{% aka \rlap
    \renewcommand\chapternamenum{} \renewcommand\printchaptername{} 
    \renewcommand\printchaptertitle[1]{\color{myblue}\chaptitlefont\raggedleft ##1\par}
% UoB guidelines:
% The pages should be numbered consecutively at the bottom centre of the
% page.
% Oscar's command (it works):
% Fills blank pages until next odd-numbered page. Used to emulate single-sided
% frontmatter. This will work for title, abstract and declaration. Though the
% contents sections will each start on an odd-numbered page they will
% spill over onto the even-numbered pages if extending beyond one page
% (hopefully, this is ok).
% Creates indexes for Table of Contents, List of Figures, List of Tables and Index
% \printglossaries below creates a list of abbreviations. \gls and related
% commands are then used throughout the text, so that latex can automatically
% keep track of which abbreviations have already been defined in the text.
% The import command enables each chapter tex file to use relative paths when
% accessing supplementary files. For example, to include
% chapters/brewing/images/figure1.png from chapters/brewing/brewing.tex we can
% use
% \includegraphics{images/figure1}
% instead of
% \includegraphics{chapters/brewing/images/figure1}

% Add other packages needed for chapters here. For example:
%\usepackage{lipsum}                    %Needed to create dummy text
\usepackage{amsfonts}                   %Calls Amer. Math. Soc. (AMS) fonts
\usepackage[centertags]{amsmath}            %Writes maths centred down
\usepackage{stmaryrd}                   %New AMS symbols
\usepackage{amssymb}                    %Calls AMS symbols
\usepackage{amsthm}                 %Calls AMS theorem environment
\usepackage{newlfont}                   %Helpful package for fonts and symbols
\usepackage{layouts}                    %Layout diagrams
\usepackage{graphicx}                   %Calls figure environment
\usepackage{longtable,rotating}         %Long tab environments including rotation. 
\usepackage[utf8]{inputenc}         %Needed to encode non-english characters 
                                    %directly for mac
\usepackage{colortbl}                   %Makes coloured tables
\usepackage{wasysym}                    %More math symbols
\usepackage{mathrsfs}                   %Even more math symbols
\usepackage{float}                      %Helps to place figures, tables, etc. 
\usepackage{verbatim}                   %Permits pre-formated text insertion
\usepackage{upgreek }                   %Calls other kind of greek alphabet
\usepackage{latexsym}                   %Extra symbols
\usepackage[round,authoryear,numbers,sort,comma]{natbib}        %Calls bibliography commands 
\usepackage{url}                        %Supports url commands
% \usepackage{etex}                     %eTeXÕs extended support for counters
% \usepackage{fixltx2e}                 %Eliminates some in felicities of the 
                                    %original LaTeX kernel
\usepackage[english]{babel}     %For languages characters and hyphenation
\usepackage{color}                                  %Creates coloured text and background
             allcolors=black]{hyperref}              %Creates hyperlinks in cross references
\usepackage{memhfixc}                   %Must be used on memoir document 
                                    %class after hyperref
\usepackage{enumerate}                  %For enumeration counter
\usepackage{footnote}                   %For footnotes
\usepackage{microtype}                  %Makes pdf look better.
\usepackage{rotfloat}                   %For rotating and float environments as tables, 
                                    %figures, etc.                              
\usepackage{alltt}                      %LaTeX commands are not disabled in 
                                    %verbatim-like environment
\usepackage[version=0.96]{pgf}          %PGF/TikZ is a tandem of languages for producing vector graphics from a 
\usepackage{tikz}                       %geometric/algebraic description.
               petri,topaths}               %To use diverse features from tikz

%   %pour table des mati�res de chaque chapitre. hyperref doit �tre charg� AVANT minitoc
%   %utiliser \adjustmtc pour corriger le bug des chapter*
%   %change le titre des minitocs
%   %d�finition d'action � faire
%   %ajuste la profondeur des minitocs
%Reduce widows  (the last line of a paragraph at the start of a page) and orphans 
% (the first line of paragraph at the end of a page)
% New command definitions for my thesis
\newcommand{\keywords}[1]{\par\noindent{\small{\bf Keywords:} #1}} %Defines keywords small section
\newcommand{\parcial}[2]{\frac{\partial#1}{\partial#2}}                             %Defines a partial operator
\newcommand{\vectorr}[1]{\mathbf{#1}}                                                        %Defines a bold vector
\newcommand{\vecol}[2]{\left(                                                                         %Defines a column vector
        \displaystyle#1 \\
\newcommand{\mados}[4]{\left(                                                                       %Defines a 2x2 matrix
        \displaystyle#1 &\displaystyle #2 \\
        \displaystyle#3 & \displaystyle#4
\newcommand{\pgftextcircled}[1]{                                                                    %Defines encircled text
    \divide\dimen0 by 2%
        \useasboundingbox (-\the\dimen0,0pt) rectangle (\the\dimen0,1pt);
        \node[circle,draw,outer sep=0pt,inner sep=0.1ex] (a) {#1};
\newcommand{\range}[1]{\textnormal{range }#1}                                             %Defines range operator
\newcommand{\innerp}[2]{\left\langle#1,#2\right\rangle}                                 %Defines inner product
\newcommand{\prom}[1]{\left\langle#1\right\rangle}                                         %Defines average operator
\newcommand{\tra}[1]{\textnormal{tra} \: #1}                                                       %Defines trace operator
\newcommand{\sign}[1]{\textnormal{sign\,}#1}                                                   %Defines sign operator
\newcommand{\sech}[1]{\textnormal{sech} #1}                                                  %Defines sech
\newcommand{\diag}[1]{\textnormal{diag} #1}                                                    %Defines diag operator
\newcommand{\arcsech}[1]{\textnormal{arcsech} #1}                                       %Defines arcsech
\newcommand{\arctanh}[1]{\textnormal{arctanh} #1}                                         %Defines arctanh
%Change tombstone symbol
 \ifnum \theproofcount>0 \pushQED{\whiteged} \else \pushQED{\blackged} \fi%
   {\bf\em #1}]\ignorespaces
%Personalised environment for summary at the beginning of chapters


% New definition of square root:
% it renames \sqrt as \oldsqrt
% it defines the new \sqrt in terms of the old one
\setbox2=\hbox{\vrule height\ht0 depth -\dimen0}%
% My caption style
    \ifx \@empty#1 \caption{#2}\else \caption[#1]{#2}
% My subcaption style
    \ifx \@empty#1 \subcaption{#2}\else \subcaption[#1]{#2}
%An initial of the very first character of the content
% Theorem styles used in my thesis
% Hyphenation for some words
% UoB guidlines:
% Preliminary pages
% The five preliminary pages must be the Title Page, Abstract, Dedication
% and Acknowledgements, Author's Declaration and Table of Contents.
% These should be single-sided.
% Table of contents, list of tables and illustrative material
% The table of contents must list, with page numbers, all chapters,
 % sections and subsections, the list of references, bibliography, list of
% abbreviations and appendices. The list of tables and illustrations
% should follow the table of contents, listing with page numbers the
% tables, photographs, diagrams, etc., in the order in which they appear
% in the text.

\renewcommand{\contentsname}{\huge{Table of Contents}}
\addtocontents{toc}{\par\nobreak \mbox{}\hfill{\bf Page}\par\nobreak}
\addtocontents{lot}{\par\nobreak\textbf{{\scshape Table} \hfill Page}\par\nobreak}
\addtocontents{lof}{\par\nobreak\textbf{{\scshape Figure} \hfill Page}\par\nobreak}


% The bulk of the document is delegated to these chapter files in
% subdirectories.




% And the appendix goes here
% Apparently the guidelines don't say anything about citations or
% bibliography styles so I guess we can use anything.
% Add index

Can anyone please help. Thanks in advance!!!

  • 1
    Welcome to TeX.SX! Please help us help you by making your example minimal (self-contained without file-references, less irrelevant packages). – TeXnician Apr 7 at 9:10

Your Answer

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

Browse other questions tagged or ask your own question.