Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The \approx symbol not working #35

Closed
asdrsdg opened this issue Mar 26, 2021 · 2 comments
Closed

The \approx symbol not working #35

asdrsdg opened this issue Mar 26, 2021 · 2 comments

Comments

@asdrsdg
Copy link

asdrsdg commented Mar 26, 2021

Hi, I am trying to use the ≈ symbol in my Julia code.

Unfortunately, the symbol doesn't show. I am using this M(not)WE:

\documentclass[a4paper, 12pt]{article}

\usepackage[autoload=false]{jlcode}
\begin{document}

\begin{jllisting}[language=julia, style=jlcodestyle, numbers=left,frame=single,framexleftmargin=2.2em,framexrightmargin=2.2em]
0.0005 ≈ 0.0005000000000001
\end{jllisting}

\end{document}

But the output is only
0.0005 0.0005000000000001

Could you please help me with this issue? I can't see what am I doing wrong. I even found that character defined in the .sty.

@wg030
Copy link
Owner

wg030 commented Mar 26, 2021

Hi asdrsdg,

your example works like a charm on my machine showing everything as expected.
Are you compiling the code with PDFLaTeX?!
It is known that going with LuaLaTeX or XeLaTeX some symbols cannot be displayed unless you add some more lines of code to the package. If that's your problem, but you cannot switch to PDFLaTeX, check out the issue #31 where I demonstrate how to make the symbols that cannot be displayed with LuaLaTeX appear again (the same solution should work for XeLaTeX).
Regards!

@asdrsdg
Copy link
Author

asdrsdg commented Mar 29, 2021

Oh, that is the solution, thank you! I forgot I was using LuaLaTeX. It works great now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants