Giter Club home page Giter Club logo

Comments (7)

wg030 avatar wg030 commented on June 2, 2024

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.

rs7q5 avatar rs7q5 commented on June 2, 2024

@wg030 it looks like that fixed it! thanks for the quick response and fix!

from jlcode.

rs7q5 avatar rs7q5 commented on June 2, 2024

Is the symbol the same as using Alt+0176? I think I can't remember which degree symbol Julia technically uses it.

from jlcode.

wg030 avatar wg030 commented on June 2, 2024

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.

rs7q5 avatar rs7q5 commented on June 2, 2024

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.

wg030 avatar wg030 commented on June 2, 2024

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.

rs7q5 avatar rs7q5 commented on June 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.