You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I copied the code from https://tikz.dev/library-circuits#sec-49.1.1 to try out the circuit library.
I intended to use the circuit library in my thesis, in which I need to use the fontspec package to set a special font on the title page of the document (requirement of my uni). Upon compiling, I noticed the Omega symbol missing in the resistor label in the schematic. Compiler I used is XeLaTeX, though the same happens in LuaLaTeX. After some investigation I found out that this behaviour only appears if the package fontspec is loaded -- when I remove it, the symbol shows up normally. I also found out that if I import the package fontspec with the option [no-math] the Omega symbol shows up normally in schematic labels. In either case I'm able to use math typesetting, and $4\ \Omega$ works as expected. I'm not sure if I'm missing something, or if this is a bug in the package.
Minimal working example (MWE)
\documentclass{article}
\usepackage{fontspec} % this is the trouble maker%\usepackage[no-math]{fontspec} % this works\usepackage{tikz}
\usetikzlibrary{circuits.ee.IEC}
\begin{document}
Math typesetting test: $4\ \Omega$.
\begin{tikzpicture}[circuit ee IEC]
\draw (0, 1) to [resistor={ohm=4}] (2, 1);
\end{tikzpicture}
\end{document}
The text was updated successfully, but these errors were encountered:
Brief outline of the bug
I copied the code from https://tikz.dev/library-circuits#sec-49.1.1 to try out the circuit library.
I intended to use the circuit library in my thesis, in which I need to use the fontspec package to set a special font on the title page of the document (requirement of my uni). Upon compiling, I noticed the Omega symbol missing in the resistor label in the schematic. Compiler I used is XeLaTeX, though the same happens in LuaLaTeX. After some investigation I found out that this behaviour only appears if the package fontspec is loaded -- when I remove it, the symbol shows up normally. I also found out that if I import the package
fontspec
with the option[no-math]
the Omega symbol shows up normally in schematic labels. In either case I'm able to use math typesetting, and$4\ \Omega$
works as expected. I'm not sure if I'm missing something, or if this is a bug in the package.Minimal working example (MWE)
The text was updated successfully, but these errors were encountered: