7

I am writing a PhD thesis using LaTeX. Every thing is going fine, but I have problem with the output of the mathematical symbols in the references lists. I copy one example from the Pdf file to make it clear for you. You can see that the fraction remains the same.

[1] Mezzacapo, F. and Cirac, J. I. (2010) Ground-state properties of the spin-\frac{1}{2} antiferromagnetic Heisenberg model on the triangular lattice: a variational study based on entangled-plaquette states. New. J. Phys., 12, 103039.

You can see below the all the packages I use:

\documentclass[12pt,PhD,twoside,a4paper]{GB_muthesis}%[10pt,PhD, singlespace]
\usepackage[pdftex]{graphicx}
\usepackage[bookmarks=true,colorlinks=true,linkcolor=blue,
urlcolor=blue,citecolor=blue]{hyperref}
\usepackage[numbers,comma, sort&compress]{natbib}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{mathtools}
\usepackage{rotating}
%\usepackage{GE_manthesis}
\usepackage{GB_thesis}
\usepackage{bm}
\usepackage{fmtcount}
\usepackage{setspace}
\usepackage{chapterbib}
\usepackage{subfigure}% allow subfigures
\usepackage{amsfonts}
\usepackage{url, enumitem}
\usepackage{lscape}
\usepackage{notoccite}%This package is for ingnoring the citation in the caption of the figures and tables.
\begin{document}
  • welcome to tex.sx, you can use the '' and {} buttons to format your question. See the edit I just made. – David Carlisle Apr 12 '13 at 9:32
  • Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – Marco Daniel Apr 12 '13 at 9:34
  • 3
    Please post that entry in the .bib file that you are using. It looks as if it is entered as \verb|\frac{1}{2}| – David Carlisle Apr 12 '13 at 9:34
16

With the following MWE you can see how to include mathematical symbols in your bibliography. Off course you have to include mathematics with $.

The MWE

\RequirePackage{filecontents}        % loading package filecontents
% writing file \jobname.bib, for example mb-bibtex.bib.
\begin{filecontents*}{\jobname.bib}
@Article{Mathetitle,
  author  = {Mezzacapo, F. and Cirac, J. I.},
  title   = {Ground-state properties of the spin-$\frac{1}{2}$ antiferromagnetic {Heisenberg} 
             model on the triangular lattice: a variational study based on 
             entangled-plaquette states.},
  year    = {2010},
  journal = {New. J. Phys.},
  number  = {12},
  issn    = {103039},
}
\end{filecontents*}


\documentclass{article}

\usepackage[numbers]{natbib}         % bibliography style
\usepackage[colorlinks]{hyperref}    % better urls in bibliography

\begin{document}
Test of bibliography: 
A title with mathematics~\cite{Mathetitle}.

\bibliographystyle{plainnat}  % needs package natbib
\bibliography{\jobname}       % uses \jobname.bib, according to \jobname.tex
\end{document}

gives you

enter image description here

  • 1
    You should probably put Heisenberg in braces to preserve the capital letter as well. – Chris H Jul 26 '13 at 9:10

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.