Fonts & Character SetsI don't get textohm in helvetica text

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
paultjevdh
Posts: 4
Joined: Mon Feb 10, 2020 5:52 pm

I don't get textohm in helvetica text

Post by paultjevdh »

Hi,

I try to get \textohm in a document which is set in helvetica. An MWE is shown below.

Code: Select all

\documentclass[11pt, twoside, a4paper]{article}
\usepackage{helvet}

\renewcommand{\familydefault}{\sfdefault}

\begin{document}
\textohm
\textmho
Text in helvetica
\end{document}
Does anyone know why this code prints a black rectangle instead of the capital omega? When I comment out the \renewcommand{\familydefault}{\sfdefault}-line, output is in times font with properly set omega.
Somehow the \textmho has no issues, which I thought would depend on the same package (textcomp).

Best regards,
Paul

Recommended reading 2024:

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

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

User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

I don't get textohm in helvetica text

Post by Ijon Tichy »

The font is somehow incomplete. I would suggest to try another Helvetica based font, e.g.

Code: Select all

\documentclass[11pt, twoside, a4paper]{article}
\usepackage{tgheros}

\renewcommand{\familydefault}{\sfdefault}

\begin{document}
\textohm
\textmho
Text in helvetica
\end{document}
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
paultjevdh
Posts: 4
Joined: Mon Feb 10, 2020 5:52 pm

I don't get textohm in helvetica text

Post by paultjevdh »

Hi,

Thanks, that did the trick, although I got some strange messages while miktex installed the required packages: it tried to write files that were in-use. It seems closing yap solved this.
Then I got some dde errors when yap started again.
All-in-all a bumpy ride, but that's LaTeX....

I made this a simple question to allow a simple answer, but if I'm correct it did worked a few months ago. Any thoughts on that? There seems to be a lot going on under the hood the last few months..

Best regards,
Paul
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

I don't get textohm in helvetica text

Post by Ijon Tichy »

Yes, there are a lot of significant changes in LaTeX in the last two years, e.g., in April 2018 the default encoding has changes from US-ASCI to UTF-8, in October 2019 several fragile commands became robust and UTF-8 became usable also for labels etc., in February 2020 the font selection has been changed. See the "Complete LaTeX2ε news" in LaTeX base for more information.

To avoid problems with auto-installation of new files on the fly, you could install all packages. Installing everything is the default of TeX Live.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
paultjevdh
Posts: 4
Joined: Mon Feb 10, 2020 5:52 pm

I don't get textohm in helvetica text

Post by paultjevdh »

Thanks for the explanation.
Best regards,
Paul
Post Reply