I'd like to use the symbol given by textordmasculine
from the textcomp
package.
But I don't want to load textcomp
since it is too much and I only want that symbol (in fact I need the masculine order symbol with the underline and I didn't find this symbol except using textcomp
).
From CTAN I found
\DeclareTextSymbol{\textordmasculine}{TS1}{'272}
\DeclareTextSymbolDefault{\textordmasculine}{TS1}
but have no idea how to use these lines to load that symbol.
If I use both I get
Encoding scheme `TS1' unknown. ...ontFamily{TS1}{cmr}{\hyphenchar\font\m@ne}
Encoding scheme `TS1' unknown. \DeclareFontFamily{TS1}{phv}{}
Best Answer
Full
textcomp
Package
textcomp
takes care of font families that do not support the full range of encoding TS1 by a concept of "subencoding".Full encoding TS1 without
textcomp
That assumes that the used font supports all symbols of TS1. However,
\textordmasculine
is usually not missing. But other symbols like\textbullet
are redefined to use TS1 encoding.Partial encoding TS1 with
\textordmasculine
Then the symbol is still defined using LaTeX's NFSS2. That means font size commands, changing font attributes (
\textbf
, …) work. But\textbullet
is not redefined.Font loading via plain TeX command
If you need the symbol in one size and shape only, then you could also load the font directly. Then first create a MWE for the symbol with using
textcomp
:Make sure, that the font sizes and families are correct:
10pt
,11pt
,12pt
).lmodern
,mathptx
, …).Then run the MWE through LaTeX and look for the following information of
tracefnt
:tcrm1000 at10.0pt
can be different depending on the font and size settings. It is the data we need for\newfont
:Limitation: The symbol will not resize or is affected by
\textbf
etc. Each variant requires a new font and macro.Summary
Because the latest method is cumbersome and has serious limitations, I would recommend the third method (or one of the first three methods).
Result