我正在使用更改序言中的字體
\usepackage{avant}
\renewcommand*\familydefault{\sfdefault} %% Only if the base font of the document is to be sans serif
\usepackage[T1]{fontenc}
但我的minitoc仍然是預設字體
我正在使用以下方法實作 minitoc:
\usepackage{minitoc}
\renewcommand{\mtctitle}{}
\mtcsetfont{minitoc}{*}{}
%minitoc depth
\setcounter{minitocdepth}{3}
\addtocontents{minitoc}{~\hfill\textbf{Page}\par}
但我不知道該\mtcsetfont
命令該怎麼辦
有任何想法嗎?
答案1
如果任何剛接觸 LaTeX 的人偶然發現這個問題,這對我有用...
\usepackage{minitoc}
\renewcommand{\mtifont}{\large\sffamily}
\renewcommand{\mtcfont}{\small\sffamily}
\renewcommand{\mtcSfont}{\small\sffamily}
\renewcommand{\mtcSSfont}{\small\sffamily}
\renewcommand{\mtcSSSfont}{\small\sffamily}