4,595 reputation
820
bio website
location
age
visits member for 2 years, 6 months
seen 2 hours ago

Jul
6
awarded  Good Answer
Jul
2
awarded  Self-Learner
Jul
1
reviewed Approve suggested edit on Using GNUPlot inside Latex (TexStudio) for IEEE Tran
Jul
1
reviewed Approve suggested edit on Thick ticks are cut off
Jul
1
reviewed Approve suggested edit on Circle with a fill in CircuiTikz
Jul
1
reviewed Approve suggested edit on How to vertically center a minipage within a tabular environment
Jul
1
comment Is it possible to make Beamer pause-handout mode compatible with SageTeX?
For long calculations, you might perform the calculation once and save it in a variable using a sagesilent environment, and then access the value of that variable in the actual slide using \sage.
Jul
1
comment Possible bug in minted package
If you really want good, configurable background colors (and perhaps want code that will break across pages when there is a background color), you should use a proper framing package like tcolorbox or mdframed instead. The current background color in minted could probably be improved, but given its limitations (only a few lines of code), framing packages are a better solution in many cases.
Jun
6
reviewed Approve suggested edit on How can I join two letters with an arrow?
Jun
2
reviewed Approve suggested edit on How to insert a page break between a figure and its caption?
May
28
awarded  Announcer
May
21
answered Usage of minted inside newenvironment in minted 2.0a³
May
14
comment Syntax highlighting in minted - how does it work?
Customizing minted highlighting requires customizing Pygments. You would want to look at the documentation. Looking at some existing style extensions might also be useful (possibilities that a quick search revealed here and here).
May
7
comment Using SageTeX with siunitx
A solution that works with PythonTeX is here. Since PythonTeX operates in a manner similar to SageTeX, I expect a similar or even almost identical solution may be possible. But I don't have Sage to test this.
Apr
15
answered Seemingly trivial: verbatim, newenvironment, and colorbox
Apr
15
comment Seemingly trivial: verbatim, newenvironment, and colorbox
For fancyvrb, you need to use \VerbatimEnvironment before the \begin{Verbatim}. That tells fancyvrb to detect the name of the current environment, and look for the end of that environment, rather than looking for a literal \end{Verbatim}.
Apr
14
comment Using PythonTeX under windows
If you are under Windows with TeX Live, then you shouldn't need to modify anything from the example above. What do you get from pythontex --version on the command line? If you get the current version, everything should be installed and working correctly.
Apr
13
comment Using PythonTeX under windows
PythonTeX doesn't require -shell-escape, but it won't cause problems. You want something like pdflatex -synctex=1 -interaction=nonstopmode file.tex, then pythontex file.tex, then pdflatex -synctex=1 -interaction=nonstopmode file.tex. The middle stage may need to be modified depending on your OS, and if you have wrappers/symlinks for pythontex.py. The directories shouldn't be an issue. Did you install PythonTeX using the TeX Live package manager? It should set everything up automatically.
Apr
13
comment Using PythonTeX under windows
Have you run LaTeX, then pythontex.py (or pythontex.exe), then LaTeX again? That sounds like what happens before the Python script side of things has been run.
Apr
7
comment Latex \newcommand with python code inside
Regarding Python 3 syntax: pythontex imports everything from __future__ except for unicode_literals by default. This can be modified using the pyfuture package option.