Take the 2-minute tour ×
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.

I get the error "Paragraph ended before \tikzexternalize@opt was complete" on the following code:

\documentclass{article}

\usepackage{tikz}
\usetikzlibrary{external}
\tikzexternalize

\begin{document}
\begin{figure}
\centering

\begin{tikzpicture}

\node [draw,rectangle,minimum width=0.5cm,minimum height=0.5cm] {};

\begin{scope}[xshift=0.5cm]
\node [draw,rectangle,minimum width=0.5cm,minimum height=0.5cm] {2};
\end{scope}


\begin{scope}[xshift=1cm]
\node [draw,rectangle,minimum width=0.5cm,minimum height=0.5cm] {};
\end{scope}

\end{tikzpicture}

\end{figure}
\end{document}

Any idea on how to fix this issue?

share|improve this question
    
Welcome to TeX.sx! A tip: If you indent lines by 4 spaces or enclose words in backticks `, they'll be marked as code, as can be seen in my edit. You can also highlight the code and click the "code" button (with "{}" on it). –  Caramdir Jul 20 '12 at 17:22
    
It works fine for me. Have you tried putting \tikzset{external/force remake} in your preamble to force the regeneration of the image? If that doesn't help: What compiler are you using (pdflatex, xelatex)? What version of TikZ? –  Jake Jul 20 '12 at 17:25
    
The date the version of the Latex I am using was built is january 2007. –  Marc Jul 20 '12 at 17:33
    
I am using the University's computers. I guess I will have to try from my laptop at home later. Thanks! –  Marc Jul 20 '12 at 17:34
add comment

1 Answer

The earliest version of the external lib required users to provide the name of the main TeX file as first argument, i.e. something like \tikzexternalize{maintexfile}.

Considering that your TeX installation is from 2007, I would guess that this is the problem here.

Suggested solution: upgrade to a more recent version of TeX. In can be installed in home directories if needed.

share|improve this answer
add comment

Your Answer

 
discard

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.