3

I can't get a the degree symbol to appear in the title.

I have tried:

title={Surface Tension of Alcohol and Water from 20 to 50{\degree}},

and

title={Surface Tension of Alcohol and Water from 20 to 50{$\degree$}},

And my Latex file is below:

\documentclass[a4paper,12pt]{scrartcl}

\usepackage[style=authoryear-comp,firstinits=true,natbib=true,uniquename=false,uniquelist=false, maxcitenames=2]{biblatex}

\nocite{*}
\addbibresource{bib.bib}

\begin{document}
\printbibliography[heading=bibintoc]

\end{document}

The error I get is:

Undefined control sequence \printbibliography[heading=bibintoc]

8

You have to define the \degree command first. See Macro for degree symbol for possible pretty degree symbols.

A quick & dirty fix that works is just to change the \degree to ${}^\circ$, so

    title={Surface Tension of Alcohol and Water from 20 to 50${}^\circ$},
  • Thanks, I was just confused because \degree already seemed to be defined according to TeXstudio – Blackstone May 2 '13 at 14:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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