I am trying to convert my document from bibtex to biblatex to use some of the new features there.
I get this error:
! LaTeX Error: Command \bibhang already defined.
I assume that this is caused by a conflict between biblatex and one of my other packages but I have not been able to find it.
This is an example with the packages I am using:
\documentclass[journal=jacsat,manuscript=article]{achemso}
\setkeys{acs}{usetitle=true}
\usepackage[T1]{fontenc}
\usepackage{dcolumn}
\usepackage{subfigure}
\usepackage{amsmath}
\usepackage{xr}
\usepackage{placeins}
\usepackage{setspace}
\usepackage[table,xcdraw]{xcolor}
\usepackage[backend=biber,style=chem-acs,maxbibnames=100]{biblatex}
\addbibresource{refs.bib}
\externaldocument{supporting-info}
\title{Title of my paper}
\author{Name}
\affiliation{University}
\date{\today}
\begin{document}
text text text
\printbibliography
\end{document}
I tried to delete the lines referring to natbib from the achemso.sty file, but that did not resolve the issue.
From achemso.sty:
%%\AtBeginDocument{
%% \def\nmv@natbib@detect{%
%% \ifNAT@super
%% \expandafter\acs@nmv@activate
%% \else
%% \expandafter\acs@autonote
%% \fi
%% }
%%}
\ifacs@super
%%\RequirePackage[sort&compress,numbers,super]{natbib}
\else
%%\RequirePackage[sort&compress,numbers,round]{natbib}
\def\citenumfont{\textit}
\fi
Edit: I should note that the program does produce a PDF but it gives me an error that I am trying to remove.
subfigureis obsolete and ought not be used. – cfr Jun 20 '17 at 00:24.clsfile which loadsnatbib. Also note that you should not change any of these files without renaming them. That is, copy the file to a new name and edit that, if you wish. You should not edit the files in place or under their original names. – cfr Jun 20 '17 at 00:26biblatex. Just use theachemsopackage and the bundled.bstfiles for BibTeX. See http://pubs.acs.org/page/4authors/submission/tex.html and https://ctan.org/tex-archive/macros/latex/contrib/achemso – moewe Jul 07 '17 at 20:30