I'm writing a document and I wanted to colour some text parts.
In the preamble I call float package and many others and it worked properly. until I called color package. Then LaTeX return errors at some place in the source code:
Missing \endgroup inserted
Missing } inserted
Unbalanced output routine ...
By (un)commenting parts of code I've found that \newfloat{graf}{tbp}{lop}[chapter] command causes it.
Does anyone have idea why it is working only without color package and/or how to define custom floats and be able to use colours?
Thanks for your time and suggestions.
Edit:
Code:
\documentclass[a4paper%,draft%
,12pt]{report}
\usepackage[cp1250]{inputenc}
\usepackage[english,czech]{babel}
\usepackage{float}
\usepackage[usenames,dvipsnames]{color}
\newcommand{\dd}{\ensuremath{\mathrm{d}}}
%== Graf environment definition==
\newfloat{graf}{tbp}{lop}[chapter]
\floatname{graf}{Graf}
\newcommand{\listofgraphs}{\listof{graf}{List of Graf}}
\begin{document}
Lorem ipsum dolor sit amet.
\end{document}
colorandfloattogether: there must be something else going on here. – Joseph Wright♦ May 12 '11 at 5:59[H]option so I should better say 'no error'. – Crowley May 12 '11 at 6:13