Text Formatting ⇒ formating minitoc page numbers
formating minitoc page numbers
I have a document using tocloft and minitoc. I have formatted the table of contents using tocloft such that the text remains in \rm font, however the page numbers (to match my footers throughout the document) are in \sfseries font. This is done using...
\usepackage{tocloft}
\renewcommand{\cftpartpagefont}{\small\bfseries\sffamily}
\renewcommand{\cftchappagefont}{\small\bfseries\sffamily}
\renewcommand{\cftsecpagefont}{\small\sffamily}
\renewcommand{\cftsubsecpagefont}{\small\sffamily}
\renewcommand{\cftsubsubsecpagefont}{\small\sffamily}
\renewcommand{\cftparapagefont}{\small\sffamily}
\renewcommand{\cftsubparapagefont}{\small\sffamily}
\renewcommand{\cftfigpagefont}{\small\sffamily}
\renewcommand{\cfttabpagefont}{\small\sffamily}
...which works just fine.
What I would like is the same formatting for the minitocs. I cannot see a way of changing the font of the minitoc page numbers in the same way without changing the text as well.
Does anyone know how to do this?
Thanks in advance
Jimbo
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
formating minitoc page numbers
Option one:
Code: Select all
\minitocheader
\minitoc % Is this the right syntax? I never worked with it...
\normalheader
Code: Select all
\newcommand{\myminitoc}{%
\minitocheader
\minitoc % Is this the right syntax? I never worked with it...
\normalheader
}
Distribution: TexLive
Editor: Kile
Re: formating minitoc page numbers
Thanks for the reply - I think however I was not clear. I would like to format the page number next to the section name within the minitoc environment. ie I have 'section name.................3' and I want to change the formatting of the '3' relative to the 'section name. I would like 'section name' in 'times roman' and '3' in sans serif. i can change both but not each individually.
I can however do this for the toc using tocloft and the commands given in my previous post, however I have not found the equivalent for minitoc.
Thanks,
Jimbo