4

In the example bellow, the citation call-out to entry 58 includes also the section 12.3.2. Is there a package or a built-in way to create call-outs in this format? I'm using bibtex to manage the bibliography.

enter image description here

For example, I expected that I could use a command like:

default graph \cite{foo}[12.3.2]. This...
4

If you load the natbib citation management package (with the option numbers, since it looks like you use a numeric citation call-out style), you could issue the following citation command to achieve your objective:

\cite[\S12.3.2]{<foo>}

where <foo> is the key of the bib entry you wish to cite.

Here's the output of a minimal working example that illustrates these points:

enter image description here

\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{abcdefgh.bib} 
@article{xyz,
  author = "Anne Author",
  title  = "Thoughts",
  year   = "3001",
  journal= "Circularity Today",
  volume = "111",
  number = 1,
  pages  = "1-100",
}
\end{filecontents}
\usepackage[numbers]{natbib}
\bibliographystyle{plainnat}
\begin{document}
\cite[\S12.3.2]{xyz}
\bibliography{abcdefgh}
\end{document}
  • I found that natlib have some incompatibility with algorithm2e. I got an error when using both libraries in the same document. – Daniel Hernández Feb 4 '15 at 20:30
  • I found the solution here: tex.stackexchange.com/questions/15098/… – Daniel Hernández Feb 4 '15 at 20:34
  • @DanielHernández - The solution is simple: be sure to load natbib before algorithm2e. – Mico Feb 4 '15 at 20:39
  • Thanks! My solution was including the package titlesec before both packages. Your solution is better. – Daniel Hernández Feb 4 '15 at 22:14

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.