Suggestions for styling Julia/JuMP code in a Latex?


#1

Are there any suggestions around how to best style Julia/JuMP code in Latex?


#2

I’ve had good success with minted. It uses pygments, which does support Julia code.


#3

Yeah, minted is pretty great.


#4

You might also look at using the @variables and @constraints macros to express a model very compactly, if appropriate.


#5

Minted worked out nicely. Thanks for the tip.


#6

I had some issues with unicode symbols, to the point where I usually change the code to not use them (when putting in documents/slides). Do you have tips / a solution for that?