For short, I got this
\usepackage{tocloft}
{\renewcommand{\cftsecfont}{\rmfamily}}
which sets the section family font in TOC, and I need a scalebox-like command to narrow the section font on TOC. The only thing I can conceive is a sort of the dummy \rescale
below.
{\renewcommand{\cftsecfont}{\rescale\rmfamily}}
I tried all the ways inserting the line inside the \scalebox{}
and \scalebox{0.5}[1.0]{\rmfamily}
, neither of which worked.
Actualization: As Werner said, here is a section in my TOC breaking across lines, which I wish to narrow, but as of the code above, I can't select the text to narrow it from the style, so I need a command that doesn't create a new environment. Let's say a
{\narrower some text}
rather than a
\narrower{some text}
Also, using \section[\rescale{0.5}[1.0]{Title}]{Title}
didn't work.
\scalebox{0.5}[1.0]
would leave the text virtually unreadable in most fonts, what is the problem that you are needing to solve? there must be a better solution. – David Carlisle Jan 3 '20 at 16:13\renewcommand{\cftsecfont}{\footnotesize}
? And maybe some other fonts such as\renewcommand{\cftsecpagefont}{\footnotesize}
. – Peter Wilson Jan 3 '20 at 17:37