JuliaConSubmission.jl icon indicating copy to clipboard operation
JuliaConSubmission.jl copied to clipboard

Update jlcode to v6.1

Open blegat opened this issue 3 years ago • 4 comments

@wg030 this does not seem to work out of the box with the new version of jlcode, what should be the recommended way to use jlcode v6.0 for the JuliaCon proceedings ?

jlcode

blegat avatar Apr 26 '22 19:04 blegat

This seems to be related to https://github.com/wg030/jlcode/issues/43 At least the output looks very similiar.

wg030 avatar Apr 26 '22 20:04 wg030

@blegat I just updated the jlcode package and fixed all latest issues, especially the one that likely produced this output.

what should be the recommended way to use jlcode v6.0 for the JuliaCon proceedings ?

so for the JuliaCon procceedings I would recommend the following now:

  • update to the latest version v6.1
  • load the package with the package option charsperline=x choosing the largest integer value for x that fits to your template without causing overfull boxes (some quick testing might be necessary)
  • compile your code with luatex or xetex (pdftex is also possible, but might cause more problems as far as special unicode characters are concerned)
  • insert code ONLY with the commands \jlinputlisting, \begin{jllisting} or \jlinl as shown in the manual of the jlcode package!
  • DO NOT use \lstinputlisting, \begin{lstlisting} or \lstinline to insert code (the length of the codebox is not calculated with these commands)!
  • if something is not displayed in the correct color, try to fix it manually with one of the commands \addlitjlbase, \addlitjlstrnum, \addlitjlmacros or \addlitjlfunctions as shown in the manual of the jlcode package

wg030 avatar May 03 '22 12:05 wg030

@wg030 Thanks for the detailed recommendations, I updated to v6.1 and the ouptut with 60 chars is: 60chars Looks good to merge on my side.

blegat avatar May 20 '22 09:05 blegat

@wg030 Thanks for the detailed recommendations

You are very welcome!

Looks good to merge on my side.

Yes, indeed, that's a nice output!

wg030 avatar May 20 '22 10:05 wg030