Text FormattingSome font shapes are not available, cmss

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
brokenclockwork
Posts: 2
Joined: Thu Apr 29, 2010 1:03 pm

Some font shapes are not available, cmss

Post by brokenclockwork »

Hey folks,

this semester I wanted to start using sans serif fonts. I am using the following code:

Code: Select all

\documentclass[a4paper,11pt]{article}
\usepackage[left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm,includeheadfoot]{geometry}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath} 
\usepackage{amssymb} 
\usepackage[ngerman]{babel}
\usepackage{sectsty}
\usepackage{courier}
\usepackage{graphicx}
\usepackage{float}
\setlength{\parindent}{0cm}

!!! \allsectionsfont{\fontfamily{cmss}\selectfont} !!!

\begin{document}

!!!

\fontfamily{cmss}

\selectfont

!!!

...
This produces the following warnings:

Code: Select all


LaTeX Font Info:    Try loading font information for OMS+cmss on input line 47.

LaTeX Font Info:    No file OMScmss.fd. on input line 47.


LaTeX Font Warning: Font shape `OMS/cmss/m/n' undefined
(Font)              using `OMS/cmsy/m/n' instead
(Font)              for symbol `textbullet' on input line 47.
Does anyone of you have an idea why this happens?

I am using Kile on Ubuntu and TexnicCenter on Windows 7. In both operating systems the same warnings... I have no clue

Would be really pleased :D

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Some font shapes are not available, cmss

Post by frabjous »

Your example is insufficient to generate the problem.

Important information here.
rf
Posts: 21
Joined: Mon Jul 20, 2009 5:27 pm

Some font shapes are not available, cmss

Post by rf »

With
\allsectionsfont{\fontfamily{cmss}\selectfont}
everything is fine until you have, somewhere
\section{... \textbullet{} ...}
(or something of the sort). by default, \textbullet
tries to get a maths symbol font that matches your
text font, but there isn't a sans-(maths symbol font)
so you get the error.

[note that an earlier poster pointed out that your
example didn't help much. i agree, but i happen to
have been bitten this way myself, once, so i spotted
the problem straight away.]

two things you can do.

a) ignore the error. it hardly matters, since
a sans bullet isn't much different from a
seriffed bullet
b) load the textcomp package, which provides such
symbols for all imaginable font shapes.

note that (b) requires the relevant fonts (tc fonts
to match cm, but i tend to use the latin modern.)

(a) isn't without its perils, either: you have to
be sure you're not ignoring something important.
this one's ok, but...
Post Reply