I am using following set of packages for my LaTeX file but I am getting following error.
! LaTeX Error: Option clash for package placeins.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
... \begin`
The packages which I am using are
\documentclass[twocolumn]{svjour3} % twocolumn
\smartqed % flush right qed marks, e.g. at end of proof
\usepackage{graphicx, subfigure}
\usepackage{amsmath}
\usepackage{subfig}
\sloppy
\usepackage{placeins}
\usepackage{textcomp}
\usepackage[linesnumbered,ruled,vlined]{algorithm2e}
\usepackage{algorithmicx}
\usepackage{algpseudocode}
\usepackage{tabularx}
\usepackage[section]{placeins}
Which two packages are in conflict?
Best Answer
The two packages conflicting are really one, since you load
placeins
twice, first without options and then withsection
option and this will produce the clash. Delete the one of the two lines loading the package (depending on whether you need or not thesection
option).You could have discovered this by yourself had you typed
h
(for help) in the output console when the error appeared. Afterh + return
you would get:Also, not in the question, but you are loading the obsolete
subfigure
package. Usesubfig
(which you are already loading) orsubcaption
instead.