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 am trying to make a simple colorbox using the package tcolorbox but receiving a compilation error by just including the tcolorbox.sty file.

Please consider the following code:

%\documentclass[12pt]{article}
\documentclass[dvipsnames,cmyk]{article}

% File Containing All the Control Settings
\usepackage{../../Style/mystyle}
\usepackage{../../Style/tcolorbox/tcolorbox}    ---> This line is giving compilation Error
\usetikzlibrary{matrix}
\begin{document} 

\end{document}

Compilation Error:

! Paragraph ended before \pgfkeys@@qset was complete.

The Offending lines in the tcolorbox.sty file are:

parskip/.style={before={\par\pagebreak[0]\noindent},after={\par}},
noparskip/.style={before={\par\smallskip\pagebreak[0]\noindent},after={\par\smallskip}},

Please guide me how to resolve this error.

share|improve this question
    
Make a local texmf directory, for example localtexmf and install your style mystyle and the package tcolorbox there. Then you can use simply \usepackage{tcolorbor} and the package should work. –  Kurt Aug 17 '12 at 16:32
    
No problem because of the location of the Package {tcolorbox}.The compiler is able to locate the package. The compilation Error is because of a problem with the package file itself. –  bill joy Aug 17 '12 at 17:32
    
Well then we need a complete MWE including your file mystyle.sty. Did you tried compiling without mystile? Without matrix? Perhaps the error is caused there. –  Kurt Aug 17 '12 at 18:24
add comment

1 Answer

matrix causes the error. Try this MWE (compiling with no errors), then delete the % and compile again.

MWE:

\documentclass[dvipsnames,cmyk]{article}
\usepackage{tcolorbox}
%\usetikzlibrary{matrix}
\begin{document} 
test

\begin{tcolorbox}[colback=red!5,colframe=red!75!black]
  My box.
\end{tcolorbox}
\end{document}
share|improve this answer
    
I'm using an actual MiKTeX, version 2.9. Perhaps you need to do an upgrade with your system? Which version of tikZ do you use? –  Kurt Aug 18 '12 at 1:53
    
My tikZ version is: Package: tikz 2008/02/13 v2.00 (rcs-revision 1.27) –  bill joy Aug 18 '12 at 2:03
    
That's the reason, I'm using rcs-revision 1.7. Please update your system. –  Kurt Aug 18 '12 at 2:14
    
Thanks. I am re-installing the whole new texlive package, will let you know the result once the update is complete. –  bill joy Aug 18 '12 at 2:58
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.