minitoc not showing in first chapterSpecify minitoc for each chapterminitoc not appear?Remove chapter number...
can i play a electric guitar through a bass amp?
Why did the Germans forbid the possession of pet pigeons in Rostov-on-Don in 1941?
Can I make popcorn with any corn?
The use of multiple foreign keys on same column in SQL Server
How to feed LSTM with different input array sizes?
Why don't electromagnetic waves interact with each other?
Why don't electron-positron collisions release infinite energy?
The magic money tree problem
Why not use SQL instead of GraphQL?
The iconography of Laddu Gopal's soles
Is it possible to do 50 km distance without any previous training?
Suffixes -unt and -ut-
Why was the small council so happy for Tyrion to become the Master of Coin?
How do I create uniquely male characters?
How much RAM could one put in a typical 80386 setup?
"which" command doesn't work / path of Safari?
Relation between Frobenius, spectral norm and sum of maxima
What is the offset in a seaplane's hull?
Approximately how much travel time was saved by the opening of the Suez Canal in 1869?
Have astronauts in space suits ever taken selfies? If so, how?
Do I have a twin with permutated remainders?
Shell script not opening as desktop application
Why Is Death Allowed In the Matrix?
Today is the Center
minitoc not showing in first chapter
Specify minitoc for each chapterminitoc not appear?Remove chapter number from minitocBoxed minitoc with each chapterMinitoc of wrong chapterAuto increase number width between minitoc chapter number and titleMinilot and minilof not showing, to the contrary of minitocminitoc not showing upminitoc does not work with RedeclareSectionCommand{chapter} in KOMA-Scriptminitoc does not displayed for some chapters
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:
usepackage{datetime}
usepackage{ifpdf}
usepackage{xcolor}
ifpdf
pdfinfo{
/Author (Author's name)
/Title (PhD Thesis)
/Keywords (One; Two;Three)
/CreationDate (D:pdfdate)
}
fi
% When draft option is on.
ifdraftdoc
usepackage{draftwatermark} %Sets watermarks up.
SetWatermarkScale{0.3}
SetWatermarkText{bf Draft: today}
fi
definecolor{myblue}{rgb}{0.0,0.25,0.42}
definecolor{mycolor}{rgb}{0.95,0.95,0.96}
definecolor{mycolor1}{rgb}{0.47,0.27,0.23}
%
% Declare figure/table as a subfloat.
newsubfloat{figure}
newsubfloat{table}
% Better page layout for A4 paper, see memoir manual.
settrimmedsize{297mm}{210mm}{*}
setlength{trimtop}{0pt}
setlength{trimedge}{stockwidth}
addtolength{trimedge}{-paperwidth}
settypeblocksize{634pt}{448.13pt}{*}
setulmargins{2.5cm}{*}{*}
setlrmargins{*}{*}{1.5}
setmarginnotes{17pt}{51pt}{onelineskip}
setheadfoot{onelineskip}{2onelineskip}
setheaderspaces{*}{2onelineskip}{*}
checkandfixthelayout
%
frenchspacing
% Font with math support: New Century Schoolbook
usepackage{fouriernc}
usepackage[T1]{fontenc}
usepackage{titlesec}
%
% 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.
OnehalfSpacing
%
% Sets numbering division level
setsecnumdepth{subsection}
maxsecnumdepth{subsubsection}
%
% Chapter style (taken and slightly modified from Lars Madsen Memoir Chapter
% Styles document
usepackage{calc,soul,fourier}
makeatletter
newlengthdlf@normtxtw
setlengthdlf@normtxtw{textwidth}
newsavebox{feline@chapter}
newcommandfeline@chapter@marker[1][4cm]{%
sboxfeline@chapter{%
resizebox{!}{#1}{fboxsep=1pt%
colorbox{myblue}{color{white}thechapter}%
}}%
rotatebox{90}{%
resizebox{%
heightof{usebox{feline@chapter}}+depthof{usebox{feline@chapter}}}%
{!}{scshapeso@chapapp}}quad%
raisebox{depthof{usebox{feline@chapter}}}{usebox{feline@chapter}}%
}
newcommandfeline@chm[1][4cm]{%
sboxfeline@chapter{feline@chapter@marker[#1]}%
makebox[0pt][c]{% aka rlap
makebox[1cm][r]{useboxfeline@chapter}%
}}
makechapterstyle{daleifmodif}{
renewcommandchapnamefont{normalfontLargescshaperaggedleftso}
renewcommandchaptitlefont{normalfonthugebfseriesscshape}
renewcommandchapternamenum{} renewcommandprintchaptername{}
renewcommandprintchapternum{nullhfillfeline@chm[2.5cm]par}
renewcommandafterchapternum{parvskipmidchapskip}
renewcommandprintchaptertitle[1]{color{myblue}chaptitlefontraggedleft ##1par}
}
makeatother
chapterstyle{daleifmodif}
%
% UoB guidelines:
%
% The pages should be numbered consecutively at the bottom centre of the
% page.
makepagestyle{myvf}
makeoddfoot{myvf}{}{thepage}{}
makeevenfoot{myvf}{}{thepage}{}
makeheadrule{myvf}{textwidth}{normalrulethickness}
makeevenhead{myvf}{smalltextsc{leftmark}}{}{}
makeoddhead{myvf}{}{}{smalltextsc{rightmark}}
pagestyle{myvf}
%
% 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).
newcommand{clearemptydoublepage}{newpage{thispagestyle{empty}cleardoublepage}}
%
%
% Creates indexes for Table of Contents, List of Figures, List of Tables and Index
makeindex
% 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}
usepackage{import}
% 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
usepackage[colorlinks=true,
allcolors=black]{hyperref} %Creates hyperlinks in cross references
hypersetup{citecolor={myblue}}
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.
usetikzlibrary{arrows,shapes,snakes,
automata,backgrounds,
petri,topaths} %To use diverse features from tikz
%usepackage{mwe}
usepackage[english,nohints]{minitoc}%
% %pour table des mati�res de chaque chapitre. hyperref doit �tre charg� AVANT minitoc
% %utiliser adjustmtc pour corriger le bug des chapter*
%
mtcsettitle{minitoc}{Contents}
% %change le titre des minitocs
%
mtcsetfeature{minitoc}{after}{clearpage}
% %d�finition d'action � faire
%
mtcsetdepth{minitoc}{5}
% %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)
widowpenalty=1000
clubpenalty=1000
%
% New command definitions for my thesis
%
newcommand{keywords}[1]{parnoindent{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
begin{array}{c}
displaystyle#1 \
displaystyle#2
end{array}right)}
newcommand{mados}[4]{left( %Defines a 2x2 matrix
begin{array}{cc}
displaystyle#1 &displaystyle #2 \
displaystyle#3 & displaystyle#4
end{array}right)}
newcommand{pgftextcircled}[1]{ %Defines encircled text
setbox0=hbox{#1}%
dimen0wd0%
dividedimen0 by 2%
begin{tikzpicture}[baseline=(a.base)]%
useasboundingbox (-thedimen0,0pt) rectangle (thedimen0,1pt);
node[circle,draw,outer sep=0pt,inner sep=0.1ex] (a) {#1};
end{tikzpicture}
}
newcommand{range}[1]{textnormal{range }#1} %Defines range operator
newcommand{innerp}[2]{leftlangle#1,#2rightrangle} %Defines inner product
newcommand{prom}[1]{leftlangle#1rightrangle} %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
newcommand{blackged}{hfill$blacksquare$}
newcommand{whiteged}{hfill$square$}
newcounter{proofcount}
renewenvironment{proof}[1][proofname.]{par
ifnum theproofcount>0 pushQED{whiteged} else pushQED{blackged} fi%
refstepcounter{proofcount}
normalfont
trivlist
item[hskiplabelsep
itshape
{bfem #1}]ignorespaces
}{%
addtocounter{proofcount}{-1}
popQEDendtrivlist
}
%Personalised environment for summary at the beginning of chapters
newenvironment{chapterabstract}{%
parnobreaknoindent
textbf{textit{Résumé}hrulefill}parnobreak
small
noindentignorespaces
}{%
parnobreaknormalsize
vskip-htstrutboxnoindent
textbf{hrulefill}%
}
%
% New definition of square root:
% it renames sqrt as oldsqrt
letoldsqrtsqrt
% it defines the new sqrt in terms of the old one
defsqrt{mathpaletteDHLhksqrt}
defDHLhksqrt#1#2{%
setbox0=hbox{$#1oldsqrt{#2,}$}dimen0=ht0
advancedimen0-0.2ht0
setbox2=hbox{vrule heightht0 depth -dimen0}%
{box0lower0.4ptbox2}}
%
% My caption style
newcommand{mycaption}[2][@empty]{
captionnamefont{scshape}
changecaptionwidth
captionwidth{0.9linewidth}
captiondelim{.:}
indentcaption{0.75cm}
captionstyle[centering]{}
setlength{belowcaptionskip}{10pt}
ifx @empty#1 caption{#2}else caption[#1]{#2}
}
%
% My subcaption style
newcommand{mysubcaption}[2][@empty]{
subcaptionsize{small}
hangsubcaption
subcaptionlabelfont{rmfamily}
sidecapstyle{raggedright}
setlength{belowcaptionskip}{10pt}
ifx @empty#1 subcaption{#2}else subcaption[#1]{#2}
}
%
%An initial of the very first character of the content
%usepackage{lettrine}
newcommand{initial}[1]{%
lettrine[lines=3,lhang=0.33,nindent=0em]{
color{gray}
{textsc{#1}}}{}}
%
% Theorem styles used in my thesis
%
theoremstyle{plain}
newtheorem{theo}{Theorem}[chapter]
theoremstyle{plain}
newtheorem{prop}{Proposition}[chapter]
theoremstyle{plain}
theoremstyle{definition}
newtheorem{dfn}{Definition}[chapter]
theoremstyle{plain}
newtheorem{lema}{Lemma}[chapter]
theoremstyle{plain}
newtheorem{cor}{Corollary}[chapter]
theoremstyle{plain}
newtheorem{resu}{Result}[chapter]
%
% Hyphenation for some words
%
hyphenation{res-pec-tively}
hyphenation{mono-ti-ca-lly}
hyphenation{hypo-the-sis}
hyphenation{para-me-ters}
hyphenation{sol-va-bi-li-ty}
%
%
begin{document}
% 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.
%
dominitoc
frontmatter
pagenumbering{roman}
%
%input{frontmatter/title}
%clearemptydoublepage
%
%input{frontmatter/abstract}
%clearemptydoublepage
%
input{frontmatter/dedication}
%clearemptydoublepage
%
%input{frontmatter/declaration}
%clearemptydoublepage
%
renewcommand{contentsname}{huge{Table of Contents}}
maxtocdepth{subsection}
tableofcontents*
addtocontents{toc}{parnobreak mbox{}hfill{bf Page}parnobreak}
clearemptydoublepage
%
listoftables
addtocontents{lot}{parnobreaktextbf{{scshape Table} hfill Page}parnobreak}
clearemptydoublepage
%
listoffigures
addtocontents{lof}{parnobreaktextbf{{scshape Figure} hfill Page}parnobreak}
clearemptydoublepage
import*{frontmatter/}{genintro.tex}
clearpage
%
%
% The bulk of the document is delegated to these chapter files in
% subdirectories.
mainmatter
%
adjustmtc
import{chapters/chapter01/}{chap01.tex}
clearemptydoublepage
import{chapters/chapter02/}{chap02.tex}
clearemptydoublepage
import{chapters/chapter03/}{chap03.tex}
clearemptydoublepage
import{chapters/chapter04/}{chap04.tex}
clearemptydoublepage
import{chapters/chapter05/}{chap05.tex}
clearemptydoublepage
%
%
% And the appendix goes here
appendix
import{chapters/appendices/}{app0A.tex}
clearemptydoublepage
%
% Apparently the guidelines don't say anything about citations or
% bibliography styles so I guess we can use anything.
backmatter
bibliographystyle{plainnat}
refstepcounter{chapter}
bibliography{thesisbiblio}
clearemptydoublepage
%
% Add index
%printindex
%
end{document}
Can anyone please help. Thanks in advance!!!
minitoc
New contributor
Pravin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
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:
usepackage{datetime}
usepackage{ifpdf}
usepackage{xcolor}
ifpdf
pdfinfo{
/Author (Author's name)
/Title (PhD Thesis)
/Keywords (One; Two;Three)
/CreationDate (D:pdfdate)
}
fi
% When draft option is on.
ifdraftdoc
usepackage{draftwatermark} %Sets watermarks up.
SetWatermarkScale{0.3}
SetWatermarkText{bf Draft: today}
fi
definecolor{myblue}{rgb}{0.0,0.25,0.42}
definecolor{mycolor}{rgb}{0.95,0.95,0.96}
definecolor{mycolor1}{rgb}{0.47,0.27,0.23}
%
% Declare figure/table as a subfloat.
newsubfloat{figure}
newsubfloat{table}
% Better page layout for A4 paper, see memoir manual.
settrimmedsize{297mm}{210mm}{*}
setlength{trimtop}{0pt}
setlength{trimedge}{stockwidth}
addtolength{trimedge}{-paperwidth}
settypeblocksize{634pt}{448.13pt}{*}
setulmargins{2.5cm}{*}{*}
setlrmargins{*}{*}{1.5}
setmarginnotes{17pt}{51pt}{onelineskip}
setheadfoot{onelineskip}{2onelineskip}
setheaderspaces{*}{2onelineskip}{*}
checkandfixthelayout
%
frenchspacing
% Font with math support: New Century Schoolbook
usepackage{fouriernc}
usepackage[T1]{fontenc}
usepackage{titlesec}
%
% 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.
OnehalfSpacing
%
% Sets numbering division level
setsecnumdepth{subsection}
maxsecnumdepth{subsubsection}
%
% Chapter style (taken and slightly modified from Lars Madsen Memoir Chapter
% Styles document
usepackage{calc,soul,fourier}
makeatletter
newlengthdlf@normtxtw
setlengthdlf@normtxtw{textwidth}
newsavebox{feline@chapter}
newcommandfeline@chapter@marker[1][4cm]{%
sboxfeline@chapter{%
resizebox{!}{#1}{fboxsep=1pt%
colorbox{myblue}{color{white}thechapter}%
}}%
rotatebox{90}{%
resizebox{%
heightof{usebox{feline@chapter}}+depthof{usebox{feline@chapter}}}%
{!}{scshapeso@chapapp}}quad%
raisebox{depthof{usebox{feline@chapter}}}{usebox{feline@chapter}}%
}
newcommandfeline@chm[1][4cm]{%
sboxfeline@chapter{feline@chapter@marker[#1]}%
makebox[0pt][c]{% aka rlap
makebox[1cm][r]{useboxfeline@chapter}%
}}
makechapterstyle{daleifmodif}{
renewcommandchapnamefont{normalfontLargescshaperaggedleftso}
renewcommandchaptitlefont{normalfonthugebfseriesscshape}
renewcommandchapternamenum{} renewcommandprintchaptername{}
renewcommandprintchapternum{nullhfillfeline@chm[2.5cm]par}
renewcommandafterchapternum{parvskipmidchapskip}
renewcommandprintchaptertitle[1]{color{myblue}chaptitlefontraggedleft ##1par}
}
makeatother
chapterstyle{daleifmodif}
%
% UoB guidelines:
%
% The pages should be numbered consecutively at the bottom centre of the
% page.
makepagestyle{myvf}
makeoddfoot{myvf}{}{thepage}{}
makeevenfoot{myvf}{}{thepage}{}
makeheadrule{myvf}{textwidth}{normalrulethickness}
makeevenhead{myvf}{smalltextsc{leftmark}}{}{}
makeoddhead{myvf}{}{}{smalltextsc{rightmark}}
pagestyle{myvf}
%
% 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).
newcommand{clearemptydoublepage}{newpage{thispagestyle{empty}cleardoublepage}}
%
%
% Creates indexes for Table of Contents, List of Figures, List of Tables and Index
makeindex
% 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}
usepackage{import}
% 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
usepackage[colorlinks=true,
allcolors=black]{hyperref} %Creates hyperlinks in cross references
hypersetup{citecolor={myblue}}
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.
usetikzlibrary{arrows,shapes,snakes,
automata,backgrounds,
petri,topaths} %To use diverse features from tikz
%usepackage{mwe}
usepackage[english,nohints]{minitoc}%
% %pour table des mati�res de chaque chapitre. hyperref doit �tre charg� AVANT minitoc
% %utiliser adjustmtc pour corriger le bug des chapter*
%
mtcsettitle{minitoc}{Contents}
% %change le titre des minitocs
%
mtcsetfeature{minitoc}{after}{clearpage}
% %d�finition d'action � faire
%
mtcsetdepth{minitoc}{5}
% %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)
widowpenalty=1000
clubpenalty=1000
%
% New command definitions for my thesis
%
newcommand{keywords}[1]{parnoindent{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
begin{array}{c}
displaystyle#1 \
displaystyle#2
end{array}right)}
newcommand{mados}[4]{left( %Defines a 2x2 matrix
begin{array}{cc}
displaystyle#1 &displaystyle #2 \
displaystyle#3 & displaystyle#4
end{array}right)}
newcommand{pgftextcircled}[1]{ %Defines encircled text
setbox0=hbox{#1}%
dimen0wd0%
dividedimen0 by 2%
begin{tikzpicture}[baseline=(a.base)]%
useasboundingbox (-thedimen0,0pt) rectangle (thedimen0,1pt);
node[circle,draw,outer sep=0pt,inner sep=0.1ex] (a) {#1};
end{tikzpicture}
}
newcommand{range}[1]{textnormal{range }#1} %Defines range operator
newcommand{innerp}[2]{leftlangle#1,#2rightrangle} %Defines inner product
newcommand{prom}[1]{leftlangle#1rightrangle} %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
newcommand{blackged}{hfill$blacksquare$}
newcommand{whiteged}{hfill$square$}
newcounter{proofcount}
renewenvironment{proof}[1][proofname.]{par
ifnum theproofcount>0 pushQED{whiteged} else pushQED{blackged} fi%
refstepcounter{proofcount}
normalfont
trivlist
item[hskiplabelsep
itshape
{bfem #1}]ignorespaces
}{%
addtocounter{proofcount}{-1}
popQEDendtrivlist
}
%Personalised environment for summary at the beginning of chapters
newenvironment{chapterabstract}{%
parnobreaknoindent
textbf{textit{Résumé}hrulefill}parnobreak
small
noindentignorespaces
}{%
parnobreaknormalsize
vskip-htstrutboxnoindent
textbf{hrulefill}%
}
%
% New definition of square root:
% it renames sqrt as oldsqrt
letoldsqrtsqrt
% it defines the new sqrt in terms of the old one
defsqrt{mathpaletteDHLhksqrt}
defDHLhksqrt#1#2{%
setbox0=hbox{$#1oldsqrt{#2,}$}dimen0=ht0
advancedimen0-0.2ht0
setbox2=hbox{vrule heightht0 depth -dimen0}%
{box0lower0.4ptbox2}}
%
% My caption style
newcommand{mycaption}[2][@empty]{
captionnamefont{scshape}
changecaptionwidth
captionwidth{0.9linewidth}
captiondelim{.:}
indentcaption{0.75cm}
captionstyle[centering]{}
setlength{belowcaptionskip}{10pt}
ifx @empty#1 caption{#2}else caption[#1]{#2}
}
%
% My subcaption style
newcommand{mysubcaption}[2][@empty]{
subcaptionsize{small}
hangsubcaption
subcaptionlabelfont{rmfamily}
sidecapstyle{raggedright}
setlength{belowcaptionskip}{10pt}
ifx @empty#1 subcaption{#2}else subcaption[#1]{#2}
}
%
%An initial of the very first character of the content
%usepackage{lettrine}
newcommand{initial}[1]{%
lettrine[lines=3,lhang=0.33,nindent=0em]{
color{gray}
{textsc{#1}}}{}}
%
% Theorem styles used in my thesis
%
theoremstyle{plain}
newtheorem{theo}{Theorem}[chapter]
theoremstyle{plain}
newtheorem{prop}{Proposition}[chapter]
theoremstyle{plain}
theoremstyle{definition}
newtheorem{dfn}{Definition}[chapter]
theoremstyle{plain}
newtheorem{lema}{Lemma}[chapter]
theoremstyle{plain}
newtheorem{cor}{Corollary}[chapter]
theoremstyle{plain}
newtheorem{resu}{Result}[chapter]
%
% Hyphenation for some words
%
hyphenation{res-pec-tively}
hyphenation{mono-ti-ca-lly}
hyphenation{hypo-the-sis}
hyphenation{para-me-ters}
hyphenation{sol-va-bi-li-ty}
%
%
begin{document}
% 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.
%
dominitoc
frontmatter
pagenumbering{roman}
%
%input{frontmatter/title}
%clearemptydoublepage
%
%input{frontmatter/abstract}
%clearemptydoublepage
%
input{frontmatter/dedication}
%clearemptydoublepage
%
%input{frontmatter/declaration}
%clearemptydoublepage
%
renewcommand{contentsname}{huge{Table of Contents}}
maxtocdepth{subsection}
tableofcontents*
addtocontents{toc}{parnobreak mbox{}hfill{bf Page}parnobreak}
clearemptydoublepage
%
listoftables
addtocontents{lot}{parnobreaktextbf{{scshape Table} hfill Page}parnobreak}
clearemptydoublepage
%
listoffigures
addtocontents{lof}{parnobreaktextbf{{scshape Figure} hfill Page}parnobreak}
clearemptydoublepage
import*{frontmatter/}{genintro.tex}
clearpage
%
%
% The bulk of the document is delegated to these chapter files in
% subdirectories.
mainmatter
%
adjustmtc
import{chapters/chapter01/}{chap01.tex}
clearemptydoublepage
import{chapters/chapter02/}{chap02.tex}
clearemptydoublepage
import{chapters/chapter03/}{chap03.tex}
clearemptydoublepage
import{chapters/chapter04/}{chap04.tex}
clearemptydoublepage
import{chapters/chapter05/}{chap05.tex}
clearemptydoublepage
%
%
% And the appendix goes here
appendix
import{chapters/appendices/}{app0A.tex}
clearemptydoublepage
%
% Apparently the guidelines don't say anything about citations or
% bibliography styles so I guess we can use anything.
backmatter
bibliographystyle{plainnat}
refstepcounter{chapter}
bibliography{thesisbiblio}
clearemptydoublepage
%
% Add index
%printindex
%
end{document}
Can anyone please help. Thanks in advance!!!
minitoc
New contributor
Pravin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1
Welcome to TeX.SX! Please help us help you by making your example minimal (self-contained without file-references, less irrelevant packages).
– TeXnician
6 hours ago
Please see that we do not have your imported files -- we can not compile your given code! So we can not test it ...
– Kurt
6 hours ago
add a comment |
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:
usepackage{datetime}
usepackage{ifpdf}
usepackage{xcolor}
ifpdf
pdfinfo{
/Author (Author's name)
/Title (PhD Thesis)
/Keywords (One; Two;Three)
/CreationDate (D:pdfdate)
}
fi
% When draft option is on.
ifdraftdoc
usepackage{draftwatermark} %Sets watermarks up.
SetWatermarkScale{0.3}
SetWatermarkText{bf Draft: today}
fi
definecolor{myblue}{rgb}{0.0,0.25,0.42}
definecolor{mycolor}{rgb}{0.95,0.95,0.96}
definecolor{mycolor1}{rgb}{0.47,0.27,0.23}
%
% Declare figure/table as a subfloat.
newsubfloat{figure}
newsubfloat{table}
% Better page layout for A4 paper, see memoir manual.
settrimmedsize{297mm}{210mm}{*}
setlength{trimtop}{0pt}
setlength{trimedge}{stockwidth}
addtolength{trimedge}{-paperwidth}
settypeblocksize{634pt}{448.13pt}{*}
setulmargins{2.5cm}{*}{*}
setlrmargins{*}{*}{1.5}
setmarginnotes{17pt}{51pt}{onelineskip}
setheadfoot{onelineskip}{2onelineskip}
setheaderspaces{*}{2onelineskip}{*}
checkandfixthelayout
%
frenchspacing
% Font with math support: New Century Schoolbook
usepackage{fouriernc}
usepackage[T1]{fontenc}
usepackage{titlesec}
%
% 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.
OnehalfSpacing
%
% Sets numbering division level
setsecnumdepth{subsection}
maxsecnumdepth{subsubsection}
%
% Chapter style (taken and slightly modified from Lars Madsen Memoir Chapter
% Styles document
usepackage{calc,soul,fourier}
makeatletter
newlengthdlf@normtxtw
setlengthdlf@normtxtw{textwidth}
newsavebox{feline@chapter}
newcommandfeline@chapter@marker[1][4cm]{%
sboxfeline@chapter{%
resizebox{!}{#1}{fboxsep=1pt%
colorbox{myblue}{color{white}thechapter}%
}}%
rotatebox{90}{%
resizebox{%
heightof{usebox{feline@chapter}}+depthof{usebox{feline@chapter}}}%
{!}{scshapeso@chapapp}}quad%
raisebox{depthof{usebox{feline@chapter}}}{usebox{feline@chapter}}%
}
newcommandfeline@chm[1][4cm]{%
sboxfeline@chapter{feline@chapter@marker[#1]}%
makebox[0pt][c]{% aka rlap
makebox[1cm][r]{useboxfeline@chapter}%
}}
makechapterstyle{daleifmodif}{
renewcommandchapnamefont{normalfontLargescshaperaggedleftso}
renewcommandchaptitlefont{normalfonthugebfseriesscshape}
renewcommandchapternamenum{} renewcommandprintchaptername{}
renewcommandprintchapternum{nullhfillfeline@chm[2.5cm]par}
renewcommandafterchapternum{parvskipmidchapskip}
renewcommandprintchaptertitle[1]{color{myblue}chaptitlefontraggedleft ##1par}
}
makeatother
chapterstyle{daleifmodif}
%
% UoB guidelines:
%
% The pages should be numbered consecutively at the bottom centre of the
% page.
makepagestyle{myvf}
makeoddfoot{myvf}{}{thepage}{}
makeevenfoot{myvf}{}{thepage}{}
makeheadrule{myvf}{textwidth}{normalrulethickness}
makeevenhead{myvf}{smalltextsc{leftmark}}{}{}
makeoddhead{myvf}{}{}{smalltextsc{rightmark}}
pagestyle{myvf}
%
% 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).
newcommand{clearemptydoublepage}{newpage{thispagestyle{empty}cleardoublepage}}
%
%
% Creates indexes for Table of Contents, List of Figures, List of Tables and Index
makeindex
% 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}
usepackage{import}
% 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
usepackage[colorlinks=true,
allcolors=black]{hyperref} %Creates hyperlinks in cross references
hypersetup{citecolor={myblue}}
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.
usetikzlibrary{arrows,shapes,snakes,
automata,backgrounds,
petri,topaths} %To use diverse features from tikz
%usepackage{mwe}
usepackage[english,nohints]{minitoc}%
% %pour table des mati�res de chaque chapitre. hyperref doit �tre charg� AVANT minitoc
% %utiliser adjustmtc pour corriger le bug des chapter*
%
mtcsettitle{minitoc}{Contents}
% %change le titre des minitocs
%
mtcsetfeature{minitoc}{after}{clearpage}
% %d�finition d'action � faire
%
mtcsetdepth{minitoc}{5}
% %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)
widowpenalty=1000
clubpenalty=1000
%
% New command definitions for my thesis
%
newcommand{keywords}[1]{parnoindent{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
begin{array}{c}
displaystyle#1 \
displaystyle#2
end{array}right)}
newcommand{mados}[4]{left( %Defines a 2x2 matrix
begin{array}{cc}
displaystyle#1 &displaystyle #2 \
displaystyle#3 & displaystyle#4
end{array}right)}
newcommand{pgftextcircled}[1]{ %Defines encircled text
setbox0=hbox{#1}%
dimen0wd0%
dividedimen0 by 2%
begin{tikzpicture}[baseline=(a.base)]%
useasboundingbox (-thedimen0,0pt) rectangle (thedimen0,1pt);
node[circle,draw,outer sep=0pt,inner sep=0.1ex] (a) {#1};
end{tikzpicture}
}
newcommand{range}[1]{textnormal{range }#1} %Defines range operator
newcommand{innerp}[2]{leftlangle#1,#2rightrangle} %Defines inner product
newcommand{prom}[1]{leftlangle#1rightrangle} %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
newcommand{blackged}{hfill$blacksquare$}
newcommand{whiteged}{hfill$square$}
newcounter{proofcount}
renewenvironment{proof}[1][proofname.]{par
ifnum theproofcount>0 pushQED{whiteged} else pushQED{blackged} fi%
refstepcounter{proofcount}
normalfont
trivlist
item[hskiplabelsep
itshape
{bfem #1}]ignorespaces
}{%
addtocounter{proofcount}{-1}
popQEDendtrivlist
}
%Personalised environment for summary at the beginning of chapters
newenvironment{chapterabstract}{%
parnobreaknoindent
textbf{textit{Résumé}hrulefill}parnobreak
small
noindentignorespaces
}{%
parnobreaknormalsize
vskip-htstrutboxnoindent
textbf{hrulefill}%
}
%
% New definition of square root:
% it renames sqrt as oldsqrt
letoldsqrtsqrt
% it defines the new sqrt in terms of the old one
defsqrt{mathpaletteDHLhksqrt}
defDHLhksqrt#1#2{%
setbox0=hbox{$#1oldsqrt{#2,}$}dimen0=ht0
advancedimen0-0.2ht0
setbox2=hbox{vrule heightht0 depth -dimen0}%
{box0lower0.4ptbox2}}
%
% My caption style
newcommand{mycaption}[2][@empty]{
captionnamefont{scshape}
changecaptionwidth
captionwidth{0.9linewidth}
captiondelim{.:}
indentcaption{0.75cm}
captionstyle[centering]{}
setlength{belowcaptionskip}{10pt}
ifx @empty#1 caption{#2}else caption[#1]{#2}
}
%
% My subcaption style
newcommand{mysubcaption}[2][@empty]{
subcaptionsize{small}
hangsubcaption
subcaptionlabelfont{rmfamily}
sidecapstyle{raggedright}
setlength{belowcaptionskip}{10pt}
ifx @empty#1 subcaption{#2}else subcaption[#1]{#2}
}
%
%An initial of the very first character of the content
%usepackage{lettrine}
newcommand{initial}[1]{%
lettrine[lines=3,lhang=0.33,nindent=0em]{
color{gray}
{textsc{#1}}}{}}
%
% Theorem styles used in my thesis
%
theoremstyle{plain}
newtheorem{theo}{Theorem}[chapter]
theoremstyle{plain}
newtheorem{prop}{Proposition}[chapter]
theoremstyle{plain}
theoremstyle{definition}
newtheorem{dfn}{Definition}[chapter]
theoremstyle{plain}
newtheorem{lema}{Lemma}[chapter]
theoremstyle{plain}
newtheorem{cor}{Corollary}[chapter]
theoremstyle{plain}
newtheorem{resu}{Result}[chapter]
%
% Hyphenation for some words
%
hyphenation{res-pec-tively}
hyphenation{mono-ti-ca-lly}
hyphenation{hypo-the-sis}
hyphenation{para-me-ters}
hyphenation{sol-va-bi-li-ty}
%
%
begin{document}
% 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.
%
dominitoc
frontmatter
pagenumbering{roman}
%
%input{frontmatter/title}
%clearemptydoublepage
%
%input{frontmatter/abstract}
%clearemptydoublepage
%
input{frontmatter/dedication}
%clearemptydoublepage
%
%input{frontmatter/declaration}
%clearemptydoublepage
%
renewcommand{contentsname}{huge{Table of Contents}}
maxtocdepth{subsection}
tableofcontents*
addtocontents{toc}{parnobreak mbox{}hfill{bf Page}parnobreak}
clearemptydoublepage
%
listoftables
addtocontents{lot}{parnobreaktextbf{{scshape Table} hfill Page}parnobreak}
clearemptydoublepage
%
listoffigures
addtocontents{lof}{parnobreaktextbf{{scshape Figure} hfill Page}parnobreak}
clearemptydoublepage
import*{frontmatter/}{genintro.tex}
clearpage
%
%
% The bulk of the document is delegated to these chapter files in
% subdirectories.
mainmatter
%
adjustmtc
import{chapters/chapter01/}{chap01.tex}
clearemptydoublepage
import{chapters/chapter02/}{chap02.tex}
clearemptydoublepage
import{chapters/chapter03/}{chap03.tex}
clearemptydoublepage
import{chapters/chapter04/}{chap04.tex}
clearemptydoublepage
import{chapters/chapter05/}{chap05.tex}
clearemptydoublepage
%
%
% And the appendix goes here
appendix
import{chapters/appendices/}{app0A.tex}
clearemptydoublepage
%
% Apparently the guidelines don't say anything about citations or
% bibliography styles so I guess we can use anything.
backmatter
bibliographystyle{plainnat}
refstepcounter{chapter}
bibliography{thesisbiblio}
clearemptydoublepage
%
% Add index
%printindex
%
end{document}
Can anyone please help. Thanks in advance!!!
minitoc
New contributor
Pravin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
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:
usepackage{datetime}
usepackage{ifpdf}
usepackage{xcolor}
ifpdf
pdfinfo{
/Author (Author's name)
/Title (PhD Thesis)
/Keywords (One; Two;Three)
/CreationDate (D:pdfdate)
}
fi
% When draft option is on.
ifdraftdoc
usepackage{draftwatermark} %Sets watermarks up.
SetWatermarkScale{0.3}
SetWatermarkText{bf Draft: today}
fi
definecolor{myblue}{rgb}{0.0,0.25,0.42}
definecolor{mycolor}{rgb}{0.95,0.95,0.96}
definecolor{mycolor1}{rgb}{0.47,0.27,0.23}
%
% Declare figure/table as a subfloat.
newsubfloat{figure}
newsubfloat{table}
% Better page layout for A4 paper, see memoir manual.
settrimmedsize{297mm}{210mm}{*}
setlength{trimtop}{0pt}
setlength{trimedge}{stockwidth}
addtolength{trimedge}{-paperwidth}
settypeblocksize{634pt}{448.13pt}{*}
setulmargins{2.5cm}{*}{*}
setlrmargins{*}{*}{1.5}
setmarginnotes{17pt}{51pt}{onelineskip}
setheadfoot{onelineskip}{2onelineskip}
setheaderspaces{*}{2onelineskip}{*}
checkandfixthelayout
%
frenchspacing
% Font with math support: New Century Schoolbook
usepackage{fouriernc}
usepackage[T1]{fontenc}
usepackage{titlesec}
%
% 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.
OnehalfSpacing
%
% Sets numbering division level
setsecnumdepth{subsection}
maxsecnumdepth{subsubsection}
%
% Chapter style (taken and slightly modified from Lars Madsen Memoir Chapter
% Styles document
usepackage{calc,soul,fourier}
makeatletter
newlengthdlf@normtxtw
setlengthdlf@normtxtw{textwidth}
newsavebox{feline@chapter}
newcommandfeline@chapter@marker[1][4cm]{%
sboxfeline@chapter{%
resizebox{!}{#1}{fboxsep=1pt%
colorbox{myblue}{color{white}thechapter}%
}}%
rotatebox{90}{%
resizebox{%
heightof{usebox{feline@chapter}}+depthof{usebox{feline@chapter}}}%
{!}{scshapeso@chapapp}}quad%
raisebox{depthof{usebox{feline@chapter}}}{usebox{feline@chapter}}%
}
newcommandfeline@chm[1][4cm]{%
sboxfeline@chapter{feline@chapter@marker[#1]}%
makebox[0pt][c]{% aka rlap
makebox[1cm][r]{useboxfeline@chapter}%
}}
makechapterstyle{daleifmodif}{
renewcommandchapnamefont{normalfontLargescshaperaggedleftso}
renewcommandchaptitlefont{normalfonthugebfseriesscshape}
renewcommandchapternamenum{} renewcommandprintchaptername{}
renewcommandprintchapternum{nullhfillfeline@chm[2.5cm]par}
renewcommandafterchapternum{parvskipmidchapskip}
renewcommandprintchaptertitle[1]{color{myblue}chaptitlefontraggedleft ##1par}
}
makeatother
chapterstyle{daleifmodif}
%
% UoB guidelines:
%
% The pages should be numbered consecutively at the bottom centre of the
% page.
makepagestyle{myvf}
makeoddfoot{myvf}{}{thepage}{}
makeevenfoot{myvf}{}{thepage}{}
makeheadrule{myvf}{textwidth}{normalrulethickness}
makeevenhead{myvf}{smalltextsc{leftmark}}{}{}
makeoddhead{myvf}{}{}{smalltextsc{rightmark}}
pagestyle{myvf}
%
% 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).
newcommand{clearemptydoublepage}{newpage{thispagestyle{empty}cleardoublepage}}
%
%
% Creates indexes for Table of Contents, List of Figures, List of Tables and Index
makeindex
% 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}
usepackage{import}
% 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
usepackage[colorlinks=true,
allcolors=black]{hyperref} %Creates hyperlinks in cross references
hypersetup{citecolor={myblue}}
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.
usetikzlibrary{arrows,shapes,snakes,
automata,backgrounds,
petri,topaths} %To use diverse features from tikz
%usepackage{mwe}
usepackage[english,nohints]{minitoc}%
% %pour table des mati�res de chaque chapitre. hyperref doit �tre charg� AVANT minitoc
% %utiliser adjustmtc pour corriger le bug des chapter*
%
mtcsettitle{minitoc}{Contents}
% %change le titre des minitocs
%
mtcsetfeature{minitoc}{after}{clearpage}
% %d�finition d'action � faire
%
mtcsetdepth{minitoc}{5}
% %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)
widowpenalty=1000
clubpenalty=1000
%
% New command definitions for my thesis
%
newcommand{keywords}[1]{parnoindent{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
begin{array}{c}
displaystyle#1 \
displaystyle#2
end{array}right)}
newcommand{mados}[4]{left( %Defines a 2x2 matrix
begin{array}{cc}
displaystyle#1 &displaystyle #2 \
displaystyle#3 & displaystyle#4
end{array}right)}
newcommand{pgftextcircled}[1]{ %Defines encircled text
setbox0=hbox{#1}%
dimen0wd0%
dividedimen0 by 2%
begin{tikzpicture}[baseline=(a.base)]%
useasboundingbox (-thedimen0,0pt) rectangle (thedimen0,1pt);
node[circle,draw,outer sep=0pt,inner sep=0.1ex] (a) {#1};
end{tikzpicture}
}
newcommand{range}[1]{textnormal{range }#1} %Defines range operator
newcommand{innerp}[2]{leftlangle#1,#2rightrangle} %Defines inner product
newcommand{prom}[1]{leftlangle#1rightrangle} %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
newcommand{blackged}{hfill$blacksquare$}
newcommand{whiteged}{hfill$square$}
newcounter{proofcount}
renewenvironment{proof}[1][proofname.]{par
ifnum theproofcount>0 pushQED{whiteged} else pushQED{blackged} fi%
refstepcounter{proofcount}
normalfont
trivlist
item[hskiplabelsep
itshape
{bfem #1}]ignorespaces
}{%
addtocounter{proofcount}{-1}
popQEDendtrivlist
}
%Personalised environment for summary at the beginning of chapters
newenvironment{chapterabstract}{%
parnobreaknoindent
textbf{textit{Résumé}hrulefill}parnobreak
small
noindentignorespaces
}{%
parnobreaknormalsize
vskip-htstrutboxnoindent
textbf{hrulefill}%
}
%
% New definition of square root:
% it renames sqrt as oldsqrt
letoldsqrtsqrt
% it defines the new sqrt in terms of the old one
defsqrt{mathpaletteDHLhksqrt}
defDHLhksqrt#1#2{%
setbox0=hbox{$#1oldsqrt{#2,}$}dimen0=ht0
advancedimen0-0.2ht0
setbox2=hbox{vrule heightht0 depth -dimen0}%
{box0lower0.4ptbox2}}
%
% My caption style
newcommand{mycaption}[2][@empty]{
captionnamefont{scshape}
changecaptionwidth
captionwidth{0.9linewidth}
captiondelim{.:}
indentcaption{0.75cm}
captionstyle[centering]{}
setlength{belowcaptionskip}{10pt}
ifx @empty#1 caption{#2}else caption[#1]{#2}
}
%
% My subcaption style
newcommand{mysubcaption}[2][@empty]{
subcaptionsize{small}
hangsubcaption
subcaptionlabelfont{rmfamily}
sidecapstyle{raggedright}
setlength{belowcaptionskip}{10pt}
ifx @empty#1 subcaption{#2}else subcaption[#1]{#2}
}
%
%An initial of the very first character of the content
%usepackage{lettrine}
newcommand{initial}[1]{%
lettrine[lines=3,lhang=0.33,nindent=0em]{
color{gray}
{textsc{#1}}}{}}
%
% Theorem styles used in my thesis
%
theoremstyle{plain}
newtheorem{theo}{Theorem}[chapter]
theoremstyle{plain}
newtheorem{prop}{Proposition}[chapter]
theoremstyle{plain}
theoremstyle{definition}
newtheorem{dfn}{Definition}[chapter]
theoremstyle{plain}
newtheorem{lema}{Lemma}[chapter]
theoremstyle{plain}
newtheorem{cor}{Corollary}[chapter]
theoremstyle{plain}
newtheorem{resu}{Result}[chapter]
%
% Hyphenation for some words
%
hyphenation{res-pec-tively}
hyphenation{mono-ti-ca-lly}
hyphenation{hypo-the-sis}
hyphenation{para-me-ters}
hyphenation{sol-va-bi-li-ty}
%
%
begin{document}
% 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.
%
dominitoc
frontmatter
pagenumbering{roman}
%
%input{frontmatter/title}
%clearemptydoublepage
%
%input{frontmatter/abstract}
%clearemptydoublepage
%
input{frontmatter/dedication}
%clearemptydoublepage
%
%input{frontmatter/declaration}
%clearemptydoublepage
%
renewcommand{contentsname}{huge{Table of Contents}}
maxtocdepth{subsection}
tableofcontents*
addtocontents{toc}{parnobreak mbox{}hfill{bf Page}parnobreak}
clearemptydoublepage
%
listoftables
addtocontents{lot}{parnobreaktextbf{{scshape Table} hfill Page}parnobreak}
clearemptydoublepage
%
listoffigures
addtocontents{lof}{parnobreaktextbf{{scshape Figure} hfill Page}parnobreak}
clearemptydoublepage
import*{frontmatter/}{genintro.tex}
clearpage
%
%
% The bulk of the document is delegated to these chapter files in
% subdirectories.
mainmatter
%
adjustmtc
import{chapters/chapter01/}{chap01.tex}
clearemptydoublepage
import{chapters/chapter02/}{chap02.tex}
clearemptydoublepage
import{chapters/chapter03/}{chap03.tex}
clearemptydoublepage
import{chapters/chapter04/}{chap04.tex}
clearemptydoublepage
import{chapters/chapter05/}{chap05.tex}
clearemptydoublepage
%
%
% And the appendix goes here
appendix
import{chapters/appendices/}{app0A.tex}
clearemptydoublepage
%
% Apparently the guidelines don't say anything about citations or
% bibliography styles so I guess we can use anything.
backmatter
bibliographystyle{plainnat}
refstepcounter{chapter}
bibliography{thesisbiblio}
clearemptydoublepage
%
% Add index
%printindex
%
end{document}
Can anyone please help. Thanks in advance!!!
minitoc
minitoc
New contributor
Pravin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Pravin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 6 hours ago
TeXnician
25.9k63491
25.9k63491
New contributor
Pravin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 6 hours ago
PravinPravin
1
1
New contributor
Pravin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Pravin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Pravin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1
Welcome to TeX.SX! Please help us help you by making your example minimal (self-contained without file-references, less irrelevant packages).
– TeXnician
6 hours ago
Please see that we do not have your imported files -- we can not compile your given code! So we can not test it ...
– Kurt
6 hours ago
add a comment |
1
Welcome to TeX.SX! Please help us help you by making your example minimal (self-contained without file-references, less irrelevant packages).
– TeXnician
6 hours ago
Please see that we do not have your imported files -- we can not compile your given code! So we can not test it ...
– Kurt
6 hours ago
1
1
Welcome to TeX.SX! Please help us help you by making your example minimal (self-contained without file-references, less irrelevant packages).
– TeXnician
6 hours ago
Welcome to TeX.SX! Please help us help you by making your example minimal (self-contained without file-references, less irrelevant packages).
– TeXnician
6 hours ago
Please see that we do not have your imported files -- we can not compile your given code! So we can not test it ...
– Kurt
6 hours ago
Please see that we do not have your imported files -- we can not compile your given code! So we can not test it ...
– Kurt
6 hours ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Pravin is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483639%2fminitoc-not-showing-in-first-chapter%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Pravin is a new contributor. Be nice, and check out our Code of Conduct.
Pravin is a new contributor. Be nice, and check out our Code of Conduct.
Pravin is a new contributor. Be nice, and check out our Code of Conduct.
Pravin is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483639%2fminitoc-not-showing-in-first-chapter%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Welcome to TeX.SX! Please help us help you by making your example minimal (self-contained without file-references, less irrelevant packages).
– TeXnician
6 hours ago
Please see that we do not have your imported files -- we can not compile your given code! So we can not test it ...
– Kurt
6 hours ago