Take the 2-minute tour ×
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.

I'm always loading the package sbc-template. When I load natbib and use bibliography style apalike, no problem; when I use style sbc instead, compilation crashes. How to fix this? Apalike is pretty OK to me, but I unfortunately need to submit the paper with bibliography style sbc ...

MWE:

\documentclass[12pt]{article}
\usepackage{sbc-template}
\usepackage[utf8]{inputenc}
\usepackage{graphicx,url}
\usepackage{natbib}    
\sloppy    
\begin{document}    
\section{Section}
\cite{author2013test}

\bibliographystyle{sbc}
\bibliography{bib}

\end{document}

URL for template and style:

http://www.sbc.org.br/index.php?option=com_jdownloads&Itemid=195&task=view.download&catid=32&cid=38

Sample bib file:

@BOOK{author2013test,
  title = {Title},
  publisher = {Publisher},
  year = {2013},
  author = {Author}
}

Ps: I'm sorry if it looks too much... I don't know to how to (or if possible to) upload a MWE with all files needed (beginner in the forum here :)

share|improve this question
2  
sbc-template redefines \@lbibitem, \thebibliography, and this conflicts with natbib. Moreover, the package loads the caption2 and times packages, and is in general quite outdated. –  mafp Feb 19 '13 at 19:54
    
With package filecontents you can include for example your bib file in your MWE. –  Kurt Feb 19 '13 at 20:15
1  
Your MWE is just right, you made available everything needed. As mafp points out, any class that modifies something in bibliography with be incompatible with natbib, unless the class author thought about it and made there a part to be used when natbib is loaded. The problem is that most class authors don't do that :( –  tohecz Feb 19 '13 at 20:43

1 Answer 1

sbc-template.sty redefines \@lbibitem and \thebibliography, and this conflicts with natbib. Moreover, a bibliography style has to be compatible with natbib to use advanced features, and unfortunately, sbc.bst is not one of them. Finally, sbc-template.sty loads the caption2 and times packages, which are really outdated, so I would not recommend using this package.

However, if you can relinquish the nice features of natbib like \citeauthor{...}, you can make your document compile by cutting back to a numbered natbib style with the numbers option:

\documentclass[12pt]{article}
\usepackage{sbc-template}
\usepackage[utf8]{inputenc}
\usepackage{graphicx,url}
\usepackage[numbers]{natbib}
\sloppy
\begin{document}
\section{Section}
\cite{StGu92}

\bibliographystyle{sbc}
\bibliography{test}

\end{document}

sample output

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.