Giter Club home page Giter Club logo

Comments (6)

wg030 avatar wg030 commented on June 9, 2024 1

Thanks for all your reporting, @phipsgabler
I have no clue what happens here yet, but I will have a close look at it when updating the package at around the end of the month.

from jlcode.

phipsgabler avatar phipsgabler commented on June 9, 2024

The same holds for SSA variables: \jlinl{%i} is still tokenized as a comment, not finishing the group.

from jlcode.

phipsgabler avatar phipsgabler commented on June 9, 2024

I guess it has to do with \lstinline not liking being wrapped, since it's really a verbatim command. Let's look at the code:

\newcommand{\jlinl}[1]{%
\lstinline[language=julia,style=jlcodestyle,
basicstyle=\jlinlfont,basewidth=\jlinlem]^^a7#1^^a7}

I remember having problemes with that kind of construction long time ago. What are the ^^a7 tokens, BTW?

Maybe implementing \jlinl by \lstMakeShortInline helps?

from jlcode.

wg030 avatar wg030 commented on June 9, 2024

Maybe implementing \jlinl by \lstMakeShortInline helps?

Might be, definitley worth checking it out.

What are the ^^a7 tokens, BTW?

Well, \lstinline requires a delimiting character for the code, which can be choosen by the user. Usually ! is used for that job. However I wanted to use a character that is not used in Julia either, in order to avoid trouble since otherwise code with ! could not be displayed correctly. I decided to go for ยง, but it do not work, when using it directly. Hence I decoded the ยง as ^^a7, which seemed to work out without causing trouble (see this article)

from jlcode.

phipsgabler avatar phipsgabler commented on June 9, 2024

Maybe xparse works, see here.

from jlcode.

wg030 avatar wg030 commented on June 9, 2024

I think one cannot really get rid of this problem. Some way or the other we will always be in trouble.
Hence I decided to go with a solution that gives a hint in the manual. I think that should be sufficient.

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.