5,130 reputation
921
bio website
location
age
visits member for 2 years, 9 months
seen 2 hours ago

20h
answered 'Errors' using the minted VHDL environment
20h
comment 'Errors' using the minted VHDL environment
I added the comment as an answer so that it can be accepted.
2d
comment 'Errors' using the minted VHDL environment
I believe you need END func --> END func;. The missing semicolon is interfering with the highlighting.
Oct
21
comment 'Errors' using the minted VHDL environment
Can you post the code (not a screenshot, so that it can be copied) for a complete, short document that produces this? I can't reproduce the problem, at least retyping a couple of lines around your code line 10. So it's possible that there is a package conflict or some other issue that can't be found without looking at a complete, minimal example.
Oct
19
comment minted: Hiding comments in code?
@Sahand I'm using TeX Live 2014 and Pygments 2.0pre. The error message you are getting can be caused by using the development version of minted; I wrote the original code for minted 1.7. I've added code that works with the development version (at least for now).
Oct
19
revised minted: Hiding comments in code?
added code for development version of minted
Oct
18
comment minted: Hiding comments in code?
@Sahand I've modified the answer. It's pretty simple.
Oct
18
revised minted: Hiding comments in code?
responded to question in comment
Oct
18
answered minted: Hiding comments in code?
Oct
10
comment run xelatex, different results when run from terminal and from python
Take a look at the subprocess docs. You probably want to pass a list rather than a string to subprocess.call(). shlex.split() can help with this.
Oct
10
awarded  Guru
Oct
2
answered Using BW style for minted code highlighting not pure BW
Sep
29
revised Break Lines in minted environment
Mentioned breaklines option explicitly, to increase clarity
Sep
29
comment Break Lines in minted environment
@SpmP I just updated the linked question, so it should be fixed as soon as it is reviewed. I also updated the answer above to mention breaklines explicitly.
Sep
25
comment Is there any way to interact with the shell but keep the same session open?
@Jubobs It should be compatible with most shells. All it relies on is the existence of cd and echo, plus >&2 as a way to echo to stderr. To actually use it with other shells, though, you would need to specify the shell. Running the PythonTeX script with the command-line option --interpreter bash:zsh should work (that allows you to set which executable is actually called). Or it would be very simple to create a set of environments for other shells, for example, zshblock etc. That way, you could access multiple shells in the same document.
Sep
25
awarded  Nice Answer
Sep
24
answered Is there any way to interact with the shell but keep the same session open?
Sep
22
comment Is there any way to interact with the shell but keep the same session open?
It should be possible to add shell support to pythontex...I already added Ruby, Julia, and Octave support with minimal modifications. I can see if it's possible.
Sep
12
comment Break Lines in minted environment
@Thanos If you compare against your example, line 9 (wrapped) no longer begins with a quotation mark " from the string on the previous line being broken. The image you linked to shows the downside of this approach. If tokens can't be broken, then a long token like a long comment will go off into the margin. I have some ideas about possible ways to allow breaking tokens while trying to keep tokens intact, but nothing I can implement and try quickly.
Sep
12
answered Break Lines in minted environment