f



siunitx using wrong font: font shapes not available

This code \unitfrac{g}{cm^3} or any other using the command unitfrac
which is defined as

\NewDocumentCommand\unitfrac{omm}{%
   \IfNoValueTF{#1}
     {\si{\sfrac{#2}{#3}}}
     {\SI{#1}{\sfrac{#2}{#3}}}%
}

causes these errors:
LaTeX Font Warning: Font shape `OML/cmm/m/it' in size <3.1492> not available
(Font) size <5> substituted on input line 32.

Any chance that I can solve this problem, or is it related to sfrac ( 
from xfrac) or siunitx?
0
matthias79 (29)
4/29/2011 3:00:18 PM
comp.text.tex 39027 articles. 3 followers. Post Follow

5 Replies
3019 Views

Similar Articles

[PageSpeed] 55

Am Fri, 29 Apr 2011 17:00:18 +0200 schrieb Matthias Pospiech:

> This code \unitfrac{g}{cm^3} or any other using the command unitfrac
> which is defined as
> 
> \NewDocumentCommand\unitfrac{omm}{%
>    \IfNoValueTF{#1}
>      {\si{\sfrac{#2}{#3}}}
>      {\SI{#1}{\sfrac{#2}{#3}}}%
> }
> 
> causes these errors:
> LaTeX Font Warning: Font shape `OML/cmm/m/it' in size <3.1492> not available
> (Font) size <5> substituted on input line 32.

A warning is not an error. That's rather normal substituation
message.

 
> Any chance that I can solve this problem, or is it related to sfrac ( 
> from xfrac) or siunitx?

\RequirePackage{fix-cm} (at best before \documentclass).
-- 
Ulrike Fischer 
0
news36084 (710)
4/29/2011 3:23:09 PM
Am 29.04.2011 17:23, schrieb Ulrike Fischer:
> Am Fri, 29 Apr 2011 17:00:18 +0200 schrieb Matthias Pospiech:
>
>> This code \unitfrac{g}{cm^3} or any other using the command unitfrac
>> which is defined as
>>
>> \NewDocumentCommand\unitfrac{omm}{%
>>     \IfNoValueTF{#1}
>>       {\si{\sfrac{#2}{#3}}}
>>       {\SI{#1}{\sfrac{#2}{#3}}}%
>> }
>>
>> causes these errors:
>> LaTeX Font Warning: Font shape `OML/cmm/m/it' in size<3.1492>  not available
>> (Font) size<5>  substituted on input line 32.
>
> A warning is not an error. That's rather normal substituation
> message.
>
Sure, but in my document I am using different fonts and wonder why cmm 
in OML is used at all?
0
matthias79 (29)
4/29/2011 3:37:38 PM
Am Fri, 29 Apr 2011 17:37:38 +0200 schrieb Matthias Pospiech:


>>> This code \unitfrac{g}{cm^3} or any other using the command unitfrac
>>> which is defined as

>>> \NewDocumentCommand\unitfrac{omm}{%
>>>     \IfNoValueTF{#1}
>>>       {\si{\sfrac{#2}{#3}}}
>>>       {\SI{#1}{\sfrac{#2}{#3}}}%
>>> }

>>> causes these errors:
>>> LaTeX Font Warning: Font shape `OML/cmm/m/it' in size<3.1492>  not available
>>> (Font) size<5>  substituted on input line 32.

>> A warning is not an error. That's rather normal substituation
>> message.

> Sure, but in my document I am using different fonts and wonder why cmm 
> in OML is used at all?

Obviously because your document is set up so that this font is used
in this situation. It is quite normal that cmm-fonts are used in
math even if the text font are from other families.


-- 
Ulrike Fischer 
0
news36084 (710)
4/29/2011 4:00:18 PM
Matthias Pospiech <matthias79@gmx.de> writes:

> >> LaTeX Font Warning: Font shape `OML/cmm/m/it' in size<3.1492>  not available
> >> (Font) size<5>  substituted on input line 32.
> Sure, but in my document I am using different fonts and wonder why cmm in OML
> is used at all?

For \textbullet in itemize lists.


Donald Arseneau                          asnd@triumf.ca
0
asnd (4601)
4/29/2011 6:12:33 PM
On 29/04/2011 16:00, Matthias Pospiech wrote:
> This code \unitfrac{g}{cm^3} or any other using the command unitfrac
> which is defined as
> 
> \NewDocumentCommand\unitfrac{omm}{%
>   \IfNoValueTF{#1}
>     {\si{\sfrac{#2}{#3}}}
>     {\SI{#1}{\sfrac{#2}{#3}}}%
> }
> 
> causes these errors:
> LaTeX Font Warning: Font shape `OML/cmm/m/it' in size <3.1492> not
> available
> (Font) size <5> substituted on input line 32.
> 
> Any chance that I can solve this problem, or is it related to sfrac (
> from xfrac) or siunitx?

As others have commented, this is a warning. It's probably the virgule
in the \sfrac.
-- 
Joseph Wright
0
joseph.wright (1875)
4/30/2011 4:45:34 PM
Reply: