LaTeX forum ⇒ 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)
paultjevdh
Posts: 3
Joined: Mon Feb 10, 2020 5:52 pm

I don't get textohm in helvetica text

Postby paultjevdh » Mon Feb 10, 2020 6:10 pm

Hi,

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

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \documentclass[11pt, twoside, a4paper]{article}
  2. \usepackage{helvet}
  3.  
  4. \renewcommand{\familydefault}{\sfdefault}
  5.  
  6. \begin{document}
  7. \textohm
  8. \textmho
  9. Text in helvetica
  10. \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

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

Postby Ijon Tichy » Mon Feb 10, 2020 6:57 pm

The font is somehow incomplete. I would suggest to try another Helvetica based font, e.g.
Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \documentclass[11pt, twoside, a4paper]{article}
  2. \usepackage{tgheros}
  3.  
  4. \renewcommand{\familydefault}{\sfdefault}
  5.  
  6. \begin{document}
  7. \textohm
  8. \textmho
  9. Text in helvetica
  10. \end{document}

paultjevdh
Posts: 3
Joined: Mon Feb 10, 2020 5:52 pm

Postby paultjevdh » Tue Feb 11, 2020 10:43 am

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: 234
Joined: Mon Dec 24, 2018 10:12 am

Postby Ijon Tichy » Tue Feb 11, 2020 11:20 am

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.

paultjevdh
Posts: 3
Joined: Mon Feb 10, 2020 5:52 pm

Postby paultjevdh » Sat Feb 15, 2020 11:13 am

Thanks for the explanation.
Best regards,
Paul


Return to “Fonts & Character Sets”

Who is online

Users browsing this forum: No registered users and 1 guest