Comments (7)
Hi @rs7q5,
you are probably not doing anything wrong here. The degree symbol (I hope you talk about that one:T = 22 °C
) has simply not been defined yet for compilation with pdftex because nobody has ever used that.
But I have just added it the package now. Try to download the latest version and tell me if everything works as expected now!
from jlcode.
@wg030 it looks like that fixed it! thanks for the quick response and fix!
from jlcode.
Is the symbol the same as using Alt+0176? I think I can't remember which degree symbol Julia technically uses it.
from jlcode.
I think I can't remember which degree symbol Julia technically uses it.
In which context do you use the degree symbol with Julia? To be honest I have never used that in Julia and don't know where it can be applied.
Is the symbol the same as using Alt+0176?
Well, according to https://docs.julialang.org/en/v1.7/manual/unicode-input/ the hex code ot he Degree Sign is "U+000B0", which translates to "0176" as decimal number, so it should be the same!
from jlcode.
I use it in comments and strings for names of things. but yeah I know julia uses that and then latex uses a variety of different symbols like \degree and stuff or \circ. I can't remember the difference there, but if it what you uses translates back to 0176 then that should be fine since it is the julia code script anyway and not latex!
from jlcode.
Yes, the symbol in the Julia code is what is important here.
As a matter of fact, we could use just about any latex command to which the Julia code symbol should be translated to (in the case of pdflatex). I used \circ
, but if you like \degree
or anything else more due to a nicer output, feel free to change that in line 2031
of jlcode.sty
and open a PR to share your experience!
Since the symbol in the Julia code is the right one (U+000B0 = Alt+0176), we can close this issue, I guess.
from jlcode.
Correct, I'm not sure if you'd notice a difference in the listings to be honest. Since it should convert to Julia.
I'll go ahead and close this issue as it is solved. Thanks again!
from jlcode.
Related Issues (20)
- Tens of errors when used with other listings code HOT 2
- The \approx symbol not working HOT 2
- color of line numbers HOT 4
- Complex{Int64} problem HOT 2
- How to make this work with 2-column documents HOT 7
- Error in compiling HOT 1
- Customize code block length HOT 2
- FR: Provide environment HOT 4
- Color of functions containing "!" HOT 4
- Line breaking is bad HOT 8
- Highlighting of macros HOT 4
- Avoid clutteting LaTeX project HOT 7
- Does not respect linewidth HOT 9
- \approx error HOT 4
- Plenty of error messages involving xcolor HOT 7
- interaction with beamer overlays HOT 3
- \pm problems HOT 2
- Illegal parameter number in definition of \iterate HOT 2
- REPL format: Colorize `julia>` if any HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jlcode.