Reputation
6,727
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
12 25
Newest
 Good Answer
Impact
~108k people reached

  • 0 posts edited
  • 1 helpful flag
  • 123 votes cast
17h
comment How to use pythontex.py from TeXnicCenter?
Using a postprocessor would work. It should add only a tiny amount of overhead compared to creating a special profile or keyboard shortcut for running pythontex, and then manually running pythontex as needed. If you used the pythontex installation script, there should be a batch file pythontex.bat under C:\MiKTeX 2.9\miktex\bin that you can use to run pythontex. Otherwise, you could run pythontex.py directly.
1d
answered LateX minted code in two pages
Jul
25
comment Pythontex don't work ? why?
@fred62 It looks like you may have two installations of pythontex with different versions. You might search under c:/users/frederic/texmf and remove all folders called pythontex. Then you could use the TeX Live package manager to uninstall, and then reinstall, its version of pythontex. I would expect that to work, but that assumes you have sufficient admin privileges. If not, you might need to install everything under c:/users/frederic/texmf, and then make sure that it is that version of pythontex that is called when you run the pythontex command.
Jul
7
answered Pythontex and the g-brief address field
Jun
28
comment Break lines at any character in minted
@PieterStroobants GitHub issue for discussion.
Jun
26
comment Syntax highlighting code fragments
@Xophmeister The best thing you can do for compilation times (if you haven't already) is to use the last release of minted (2.0), which caches output and thus removes most of the package overhead on later compiles. Using a single file for lots of snippets would save some caching checksum calculations, which might be noticeable under XeTeX. But using a single longer file also means that the entire thing would be read in each time, with all of the irrelevant lines thrown away. And it would prevent effective caching; any change would cause everything to be highlighted again.
Jun
26
comment Break lines at any character in minted
@PieterStroobants The code based on this will be on GitHub within the next day or so. This is probably the last thing before I release the next version, so the next version will be out within a week or so, once there has been time to do a little more testing. I am adding more customization for the version that is going on GitHub...if you have suggestions once the code is up, please open an issue there.
Jun
25
answered Syntax highlighting code fragments
Jun
25
answered Break lines at any character in minted
Jun
12
comment Showing nice indentation of Python code
pythontex uses Pygments to do the highlighting. In principle, it would be possible to post-process the Pygments output based on indentation level, and add in the lines. However, that might get complicated, and might fail for expressions that break across multiple lines unless you were really careful. The "proper" way to do this would probably be in Pygments, but even there, I'm not sure if the (default) lexer has enough information to do this in the general case.
Jun
8
awarded  Good Answer
Jun
3
answered Passing unit macro to siunitx with pythontex
May
18
comment minted or listings input a file between markers
This feature has been requested for minted, and some form will be present in the next release. Basic functionality should already be possible using fancyvrb syntax, which is a bit ugly (hence the need for a nice minted wrapper); see the linked issue for an example.
May
11
reviewed Approve How can I insert the Apple Symbol ?
May
7
comment Build errors while using minted package
Are you using minted 2.0? Only the latest version supports inline.
May
6
comment Correct highlighting of code listings using minted
Related: tex.stackexchange.com/questions/18083. The best option is probably a custom lexer.
May
3
answered Pythontex: trying to compile an example I found on TeX
Apr
27
answered Typeset functions with PythonTeX and execute them in console afterwards
Apr
21
answered Minted caching in tikz externalize job
Apr
14
comment Getting non-curly quote marks with PythonTeX 0.14
@interro_gator I'm not aware of any syntax highlighting. That would definitely be useful.