Giter Club home page Giter Club logo

Comments (4)

wg030 avatar wg030 commented on September 28, 2024

Hi!
What exactly do you mean? We already have the names of all standard macros like @time highlighted. Do you refer to the names of self defined macros or what would you like to be highlighted, too?

from jlcode.

blegat avatar blegat commented on September 28, 2024

I mean the names of self-define macros. For example, this line:
https://github.com/jump-dev/MutableArithmetics.jl/blob/bcafec7bc6ff0079fa26e9f9bed34590859ae94f/paper/paper.tex#L340
I see that the @time macro already works.

from jlcode.

wg030 avatar wg030 commented on September 28, 2024

Well, this can be done, but it needs to be done manually:
Put the following lines of code to jlcode.sty at line 2047:

\newcommand{\addlitjlmacros}[3]{%
\lstset{style=jlcodeuccstyle}
\lstdefinestyle{jlcodeuccstyle}{expandliterate={#1}{{{\color{jlmacros}#2}}}{#3}}
\ifjlc@autoload
  \lstset{language=julia, style=jlcodestyle}
\fi
}

Then add for each self-defined macro a line like the following to the preample of your latex document after \usepackage{jlcode}:

\addlitjlmacros{@rewrite}{@rewrite}{8}

from jlcode.

wg030 avatar wg030 commented on September 28, 2024

I added the \addlitjlmacros command to the package now so that one can now fix that problem manually.
I also updated the manual to demonstrate how this is done.
Thanks for reporting this issue.

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.