Graphics, Figures & TablesConflict of Package Versions in custom Class

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
21did21
Posts: 58
Joined: Thu Sep 08, 2011 12:27 pm

Conflict of Package Versions in custom Class

Post by 21did21 »

Hi all,

I have a document within I use the package graphicx and all works nice. The problem is that today I have tried to introduce the package subfig in my document and now I have compilation problems:

Code: Select all

caption: You can't use both, the (obsolete) caption2 *and* the (current)
         caption package.

Code: Select all

Undefined control sequence \begin{document}
However, I have just added the line \usepackage{subfig}. So because I have this error I cannot use \subfloat but I need this.

Can anybody help me to solve this problem ?

Thanks a lot

Code: Select all

\documentclass{classEntreprise}
\usepackage[utf8]{inputenc}
\usepackage{wasysym}
\usepackage{newlfont}
\usepackage{colortbl}
\usepackage{stmaryrd}
\usepackage{multicol}
\usepackage{rotating}
\usepackage{graphicx}
\usepackage[section]{placeins} 

\hypersetup{%
   pdftitle    = {calculs},
   pdfsubject  = {analytique},
   pdfauthor   = {moi,
   pdfkeywords = {noteTechnique}
}

\foottitle{}
\graphicspath{{figures/}}
\bibliographystyle{monStyle} 

\begin{document}
\include{texte/couverture}
\include{texte/pageZ}
\include{texte/merci}
\include{texte/resume}
\frontmatter
\dominitoc
\tableofcontents
\listoffigures
\listoftables
\mainmatter
\sloppy
\include{texte/introduction
\include{texte/chapitre1}
\include{texte/conclusion}
\include{texte/annexeA}
\bibliography{biblio_AAA}
\include{texte/folio}
\end{document}
Last edited by cgnieder on Sun Oct 06, 2013 10:42 pm, edited 2 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Conflict of Package Versions in custom Class

Post by Johannes_B »

Hi,

we cannot replicate the problem right now. The code you provided neither loads caption nor subfig nor the obsolete caption2. You are including files we don't have, not to speak about the document class, which is also unknown to my TeX distribution.

Please read how to prepare a minimal working example and come back to us. Posting the log file might also be of help.


Best regards
Johannes
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
21did21
Posts: 58
Joined: Thu Sep 08, 2011 12:27 pm

Re: Conflict of Package Versions in custom Class

Post by 21did21 »

Thanks for your help!

The problem was in the class file. Now it's OK. I have suppressed them.
Post Reply