Discussion:
tufte-book style and biblatex
Clark, Adrian F
2014-01-16 16:54:04 UTC
Permalink
Hello everyone,

I'm experiencing some problems with the tufte-book style and biblatex, both as distributed on TeXlive 2013 (though I know the problem is somewhat older) and on TeXlive fully updated this morning. Here's a minimal example:

------
\documentclass{tufte-book}
\usepackage{biblatex}
\addbibresource{refs.bib}

\title{An Example Document}
\author{Adrian F. Clark}
\publisher{University of Essex, Colchester, CO4 3SQ, UK}
\begin{document}
\maketitle

\chapter{Introduction}
Here's a citation: \autocite{Raven:LBT}.

\printbibliography
\end{document}
------

When I run it through pdfLaTeX (from the command line on a Mac, if that should matter), I get:

------
! LaTeX Error: Command \bibhang already defined.
Or name \end... illegal, see p.192 of the manual.

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

l.421 \newlength{\bibhang}
------

Before I start digging, I wonder if anyone has fixed this and would care to share the solution?

Many thanks in advance.

..Adrian
--
Dr Adrian F Clark M0PDF WEB: http://privatewww.essex.ac.uk/~alien/
EMAIL: alien/at/essex.ac.uk TEL: +44 1206 872432 FAX: +44 1206 872900
PAPER: Comp Sci & Elec Eng, University of Essex, Colchester, CO4 3SQ, UK
"The great tragedy of science: the slaying of a beautiful hypothesis by
an ugly fact" -- Huxley
Herbert Voss
2014-01-16 17:41:20 UTC
Permalink
Post by Clark, Adrian F
------
\documentclass{tufte-book}
tufte-book loads package natbib
Post by Clark, Adrian F
\usepackage{biblatex}
which biblatex dosn't like ...

You have to fool tufte-book that natbib is loaded and also
biblatex that natbib is _not_ loaded:


\makeatletter
\@namedef{***@natbib.sty}{9999/12/31}% declare natbib as loaded
\makeatother
\documentclass{tufte-book}
\makeatletter
\expandafter\let\csname ***@natbib.sty\endcsname\relax% reverse
\makeatother

\usepackage{biblatex}
Post by Clark, Adrian F
\addbibresource{refs.bib}
\title{An Example Document}
\author{Adrian F. Clark}
\publisher{University of Essex, Colchester, CO4 3SQ, UK}
\begin{document}
\maketitle
\chapter{Introduction}
Here's a citation: \autocite{Raven:LBT}.
\printbibliography
\end{document}
Herbert
Kevin Godby
2014-01-16 19:34:41 UTC
Permalink
Hello, Adrian.
Post by Clark, Adrian F
Hello everyone,
I'm experiencing some problems with the tufte-book style and biblatex, both as distributed on TeXlive 2013 (though I know the problem is somewhat older) and on TeXlive fully updated this morning.
Try the following:

%-----
\documentclass[nobib]{tufte-book}% nobib prevents tufte-book from loading natbib
\usepackage[style=numeric]{biblatex}% use style=numeric
% redefine the \cite command to put citations in the sidenotes
\renewcommand{\cite}[2][0pt]{%
\sidenote[][#1]{\fullcite{#2}}%
}
\addbibresource{refs.bib}

\title{An Example Document}
\author{Adrian F. Clark}
\publisher{University of Essex, Colchester, CO4 3SQ, UK}
\begin{document}
\maketitle

\chapter{Introduction}
Here's a citation: \autocite{Raven:LBT}.

\printbibliography
\end{document}
%-----

Please let me know if that works for you or if you continue to have problems.

Thanks!

—Kevin Godby

Loading...