Reputation
7,417
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
15 30
Newest
 Yearling
Impact
~137k people reached

Jan
26
comment New environment for Python source code
@tschm I just added a note on this to the documentation for the next version of minted, so it should be easier to find in the future.
Jan
26
answered New environment for Python source code
Jan
13
awarded  Yearling
Dec
21
answered minted fails with breaklines and obeytabs
Dec
21
revised Minted breakautoindent changes behaviour on OverLeaf
update bug status
Dec
20
comment minted fails with breaklines and obeytabs
This looks like a bug. I'm working on fixing some other bugs for the next minted release, and will see if I can also fix this.
Dec
18
comment How to get continuos line numbers for minted code blocks
@egreg The package option langlinenos creates a per-language counter. This is passed to fancyvrb as necessary, and then the original fancyvrb counter value is restored afterward, so that non-minted use of fancyvrb isn't affected. I suppose I could also consider an option to add a counter strictly restricted to a given custom command.
Dec
18
answered How to get continuos line numbers for minted code blocks
Dec
17
answered Minted breakautoindent changes behaviour on OverLeaf
Dec
10
awarded  Enlightened
Dec
10
awarded  Nice Answer
Dec
2
comment How to draw below network in latex?
You might consider the Ipe drawing editor, which has nice LaTeX integration and would likely be faster than coding such a diagram by hand in PGF/TikZ.
Dec
2
answered How to invoke minted with python3
Nov
26
comment mylatexformat and pythontex
I have some ideas about how to support proper precompiling, but it will likely be more complicated than a simple etoolbox patch. I've opened an issue at GitHub. I will be spending much of December and January working on the next version of PythonTeX, and should be able to have a fix in the next release.
Nov
25
comment mylatexformat and pythontex
It's possible to use \setpythontexoutputdir{<dirname>} to set the directory manually. The bigger problem is that the temp files using \jobname are opened immediately when the package is loaded, and that breaks with precompiling. I suppose it might be possible to reopen them at the end of the preamble, to try to correct for the file issues caused by precompiling. The *.pytxcode file would be the one to worry about (unless you're using depythontex).
Nov
25
comment mylatexformat and pythontex
pythontex uses \jobname to create a directory name for saving output, among other things. You are probably running into the issues with precompiling discussed in this answer. When I use pythontex with a precompiled preamble, I generally load it separately, after the precompiled material. I don't know if that's possible with mylatexformat.
Oct
26
awarded  Enlightened
Oct
26
awarded  Nice Answer
Oct
20
answered dblatex generated output does not play nice with minted
Oct
19
comment Running pythontex from TeX using \immediate\write18 fails
@FaheemMitha Recent versions of pythontex should give a message like "The .pytxcode file appears to have an outdated format or be invalid". A conditional could be useful on the first compile, when the tempfile doesn't exist; in that case, there's no need to run pythontex, though doing so won't cause problems (pythontex will just exit with an error).