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
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
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