Comments (4)
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.
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.
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.
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)
- 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
- Avoid clutteting LaTeX project HOT 7
- Does not respect linewidth HOT 9
- Get utf-8 error with degree symbol HOT 7
- \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.