5,737 reputation
1124
bio website github.com/gpoore
location
age
visits member for 3 years
seen 5 hours ago

Jan
24
comment Pretty Printing is not pretty at PythonTeX ?
@MaxNoe I've integrated SymPy's LaTeX printer into the non-console parts of PythonTeX, but haven't yet tried to integrate it with the console (which is emulated with the code module). In this case, init_printing(use_latex=True) turns off the use of Unicode while maintaining pretty printing, which helps with the font issues. But it doesn't give actual LaTeX output. Actual LaTeX output can almost be obtained with something like init_printing(pretty_print=False, str_printer=latex), except that it isn't rendered because of the way the console highlighting currently works. Should be fixable.
Jan
24
awarded  python
Jan
23
answered Pretty Printing is not pretty at PythonTeX ?
Jan
23
answered Can I make IPython notebook from PythonTeX ?
Jan
21
comment Minted package throws font warning when using triple " for python docstrings using inconsolata
Essentially all minted styles use italic text, which inconsolata doesn't provide. You can use a different font that does provide italics. Or you can disable the italics within minted environments by loading etoolbox and then using something like \AtBeginEnvironment{minted}{\let\textit\relax}.
Jan
19
accepted Empty groups {} when writing environment contents verbatim (but with expanded macros)
Jan
19
accepted fancyvrb error with math escapes and prime (')
Jan
19
revised fancyvrb error with math escapes and prime (')
added comments on egreg's answer
Jan
19
comment fancyvrb error with math escapes and prime (')
Thanks! I had overlooked the effect of \do@noligs. Based on this discussion on \do@noligs, would it be better to modify \@noligs instead of appending to \do@noligs, so that the redefinition of ' is only done once? Also, the other characters in \verbatim@nolig@list (`<>,-) seem to be behaving in math escapes. Is there a reason to expect that these characters also need a math mode version?
Jan
19
asked fancyvrb error with math escapes and prime (')
Jan
17
comment Break Lines in minted environment
@GonzaloMedina I'm just finishing a major rewrite that resolves a lot of the remaining issues. It should be on CTAN by the end of the month.
Jan
17
revised Break Lines in minted environment
answer has been incorporated in minted development version
Jan
13
awarded  Necromancer
Jan
13
awarded  Yearling
Jan
13
revised How to pass parameters to Sage from Sagetex?
Improved treatment of braces; link to inspired question
Jan
13
answered Empty groups {} when writing environment contents verbatim (but with expanded macros)
Jan
13
comment Empty groups {} when writing environment contents verbatim (but with expanded macros)
@egreg Yes, that would be a solution for user-defined macros. But if you don't define a particular macro yourself, then you would have to wrap it. Also, in this form, you must have a following {}; otherwise, the following literal character is gobbled.
Jan
13
awarded  Curious
Jan
12
comment Empty groups {} when writing environment contents verbatim (but with expanded macros)
That makes sense. I had been hoping that there was some sneaky way to redefine how {} is written to file, but without that, something like this is probably the only option.
Jan
12
asked Empty groups {} when writing environment contents verbatim (but with expanded macros)