TransWikia.com

problem with textsc

TeX - LaTeX Asked on June 13, 2021

I would like to use the textsc command.
In the example below, the uppercase works perfectly fine, but when using the textsc the text is moved roughly 1cm to the right. I tried a raggedleft or vpsace command but it did not help.

sectionfont{vspace{0.5cm}bfseriesfontsize{12pt}{0}selectfontuppercase}
subsectionfont{raggedright vspace{0.2cm}mdseriesfontsize{12pt}{0}selectfonttextsc}

Any ideas?

One Answer

You need to use a font declaration, so instead if textsc, use scshape.

enter image description here

documentclass{article}

usepackage{sectsty,lipsum}

sectionfont{vspace{5mm}bfserieslargeuppercase}
subsectionfont{vspace{2mm}mdserieslargescshape}

begin{document}

sloppy % Just for this example
section{A section}lipsum[1]
subsection{A subsection}lipsum[2]

end{document}

Correct answer by Werner on June 13, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP