TransWikia.com

When using textsc, LaTeX issues warning: Font shape `OT1/cmr/bx/sc' undefined

TeX - LaTeX Asked by Jaakko on February 25, 2021

I started to write my CV in LaTeX. My document begins as

documentclass[a4paper]{amsart}
usepackage[latin1]{inputenc}
usepackage[finnish]{babel}
begin{document}
begin{center}
{large textbf{textsc{ANSIOLUETTELO}}}
end{center}
end{document}

But pdfTeX for Mac says:

This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
....
LaTeX Font Warning: Font shape `OT1/cmr/bx/sc' undefined
(Font)              using `OT1/cmr/bx/n' instead on input line 6.

[1{/usr/local/texlive/2010/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
[2] (./ansioluettelomod.aux)

What am I doing wrong?

5 Answers

You can try

documentclass[a4paper]{amsart}
usepackage[latin1]{inputenc}   
usepackage[T1]{fontenc}   
usepackage[finnish]{babel}
begin{document}
begin{center}
{large textbf{textsc{ANSIOLUETTELO}}}

textbf{textsc{Ansioluettelo}}
end{center}
end{document} 

enter image description here

Correct answer by Alain Matthes on February 25, 2021

You did nothing wrong. TeX tells you that it does not have Small Caps bold Computer Modern font, so it switches to bold normal font. This is a design decision by font author (Knuth) not to have this variant; you may try to find fonts that have bold small caps (not that I know of such) or to fake the effect using uppercase.

Actually your line is already in uppercase, so I wonder whether you really need small caps: usually people use small caps with lowercase letters, with textsc{MakeLowercase{...}}

Answered by Boris on February 25, 2021

The libertine font provides bold small caps. Abstaining from capital letters in the argument of textsc doesn't hurt, either. ;-)

documentclass{article}

usepackage[T1]{fontenc}
usepackage{libertine}

begin{document}

Large

textbf{textsc{Ansioluettelo}}% right

textbf{textsc{ANSIOLUETTELO}}% wrong

end{document}

enter image description here

Answered by lockstep on February 25, 2021

use the Kepler fonts they have bold small caps:

documentclass[a4paper]{amsart}
usepackage[T1]{fontenc}
usepackage{kpfonts}
usepackage[latin1]{inputenc}
usepackage[finnish]{babel}
begin{document}

{large textbf{textsc{ANSIOLUETTELO}}}

end{document}

Answered by user2478 on February 25, 2021

If you do not want to change the fonts scheme, you can do

DeclareFontShape{OT1}{cmr}{bx}{sc}{<-> cmbcsc10}{}

Answered by xofon on February 25, 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