TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Now this problem is probably too localized, but I do not see anywhere else to get help solving it. I have a large amount of important files, and these stopped compiling after switching from MikTex to TexLive (I reinstalled windows) after some fiddling I found out that some of the figures halt the compilation

\begin{figure}[!htbp] \centering
  \tikzset{venn circle/.style={draw,circle,minimum width=6cm,fill=#1,opacity=0.4}}
  \node (D) at (2,4) {$\overline{\,F\,}\cap\overline{\,J\,}=2$}; 
    \node (C) at (2,0) {};
  \node [venn circle = red] (A) at (0,0) {};
  \node [venn circle = blue] (B) at (0:4cm) {};
  \node at (barycentric cs:A=1/2,B=1/2) {$F\cap J=10$};   
  \node  at (0,0) {$J=16$};
  \node  at (0:4cm) {$F=8$};

Here is a somewhat minimal example, if the tikzpicture is change to something simpler like a line, the file compiles just fine.

Now, my question is how do I get nested comments and the tikzpicture enviroment to become friends for all types of plots and diagrams?

share|improve this question
I am using TL2012 in Ubuntu and had no problems. I am using the csv-Version of TikZ – Marco Daniel Aug 5 '12 at 12:04
I'm using TL2012 on cygwin/windows and get no error. What error do you get? – David Carlisle Aug 5 '12 at 17:28
up vote 4 down vote accepted

A bit of digging reveals that the issue is not to do with TikZ, etc., but to do with how the file reading/writing is working here. You can get the same issue with TeX Live on Windows with the demo file


It is the number of characters that causes the issue, not the content (hence the fact that % shows the problem).

I reported this on the TeX Live mailing list, and the issue is the way that TeX Live's implementation of \input is coded on Windows. Akira Kakuto, who actually compiles the W32 binaries, said

Confirmed. I can update TL2012 W32 binaries by fixed ones if needed and allowed. (pdftex, tex, aleph and luatex). In W32, input_line() is a bit different to skip byte order marks. By removing the difference, the error disapears.

There should be an update for TeX Live to fix this.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.