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

I am trying to add subtables inside tables. To achieve that I add the following packages:


After adding these the compilation gives


! LaTeX Error: Option clash for package caption.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.

l.13 \usepackage

The packages added before that are:

\usepackage[utf8]{inputenc}                               %Allows input of tex files encoded in UTF8
\usepackage[T1]{fontenc}                            %Set font encoding for   output PDF 
\usepackage[danish,english]{babel}                    %Allows langauge switching (English is default)
\usepackage{graphicx}                                     %Support for including graphics
\usepackage{xcolor}                                 %Support for using colours  
\usepackage[hang,normalsize,bf]{caption}            %Make pretty captions
\usepackage{hyperref}                               %References package
\usepackage{varioref}                                       %Enhances references (\vref {label})
\usepackage{fancyhdr}                               %Pretty headers/footers
\usepackage{amsmath,amssymb,latexsym}               %AMS and other symbols
\usepackage{epic,eepic,epsfig,graphics,psfrag}      %Figure/picture packages
share|improve this question

closed as too localized by David Carlisle, Claudio Fiandrino, Peter Grill, lockstep, Torbjørn T. Oct 16 '12 at 17:46

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

You have \usepackage[hang,normalsize,bf]{caption} and \usepackage[format=plain,labelfont=bf,up,textfont=it,up]{caption} you can't load caption with two sets of options. One or the other (or both at the same time) – David Carlisle Oct 16 '12 at 16:45
You probably also don't want epsfig which was a compatibility wrapper around graphicx for a package popular in the 1980's and hyperref usually wants to be loaded last – David Carlisle Oct 16 '12 at 16:47
thanks it would perfectly ... I must pay more attention before posting next time! – Potney Switters Oct 16 '12 at 16:47