Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

LaTeX Font Warning: Font shape `OMS/cmss/m/n' undefined

8,084 views
Skip to first unread message

jfgodfrey

unread,
Jan 1, 2006, 7:52:10 PM1/1/06
to
It looks like this was discussed a bit on this group, but I didn't see
a specific solution.

Here's what was attempted, and what failed.
\renewcommand{\familydefault}{\sfdefault}

Then within the document,


\textit{\textbf{whatever text}}

This generated these errors:

LaTeX Font Warning: Font shape `OT1/cmss/m/it' in size <12> not
available
(Font) Font shape `OT1/cmss/m/sl' tried instead on input
line 8.


LaTeX Font Warning: Font shape `OT1/cmss/bx/it' undefined
(Font) using `OT1/cmss/bx/n' instead on input line 8.

Is there a way to get bold, italic serif, or a workaround for the same?

Thanks!

Ulrike Fischer

unread,
Jan 2, 2006, 4:09:38 AM1/2/06
to
"jfgodfrey" <jo...@jlgodfrey.myrf.net> schrieb:

Your question is a bit confusing. In the subject you speak of
`OMS/cmss/m/n', then in the text of OT1/cmss/m/it and at the end
OT1/cmss/bx/it.

Use T1-encoding it contains an italic, bold, sans serif (it is
identical to the slanted, bold, sans serif)

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[ansinew]{inputenc}

%% usw
\begin{document}
\textit{\textsf{\textbf{test}}}
\end{document}

--
Ulrike Fischer
e-mail: zusätzlich meinen Vornamen vor dem @ einfügen.
e-mail: add my first name between the news and the @.

jfgodfrey

unread,
Jan 2, 2006, 10:03:10 AM1/2/06
to
Ulrike,
Yes, thanks! What you wrote did work! What happened in what I posted
is that I pasted from one run of latex, and then from a different
source file. But the solution was the same, viz., using

\usepackage[T1]{fontenc}
\usepackage[ansinew]{inputenc}

Have a great day!
john

Dan Luecking

unread,
Jan 3, 2006, 2:02:12 PM1/3/06
to
On Mon, 2 Jan 2006 09:09:38 +0000 (UTC), Ulrike Fischer
<ne...@nililand.de> wrote:

>"jfgodfrey" <jo...@jlgodfrey.myrf.net> schrieb:


>
>> LaTeX Font Warning: Font shape `OT1/cmss/m/it' in size <12> not
>> available
>> (Font) Font shape `OT1/cmss/m/sl' tried instead on input
>> line 8.
>>
>>
>> LaTeX Font Warning: Font shape `OT1/cmss/bx/it' undefined
>> (Font) using `OT1/cmss/bx/n' instead on input line 8.
>>
>> Is there a way to get bold, italic serif, or a workaround for the same?
>
>

>Use T1-encoding it contains an italic, bold, sans serif (it is
>identical to the slanted, bold, sans serif)

Font encoding normally has nothing to do with the style (italic, bold
or whatever). A more precise statement is that in the default san
serif family (cmss) in default encoding (OT1) the CM font set is used,
and CM has no bold slanted font, but switching to T1 (and leaving
other defaults) a different font set (namely the EC fonts) is used,
which does contain such a font.

If one switches to an entirely different font set, one might get such
a font even in OT1 encoding and might not get such a font even in T1
encoding. Not that I know of any such cases off the top of my head.


Dan

grigori...@gmail.com

unread,
Mar 19, 2013, 5:20:28 AM3/19/13
to
try this:
\usepackage{lmodern}
0 new messages