Suggestions for styling Julia/JuMP code in a Latex?


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


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


Yeah, minted is pretty great.


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


Minted worked out nicely. Thanks for the tip.


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?