Text FormattingPages of the backref section list

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
CharlieMAC
Posts: 19
Joined: Wed May 04, 2011 5:50 pm

Pages of the backref section list

Post by CharlieMAC »

Hi everyone:

I have to write a paper and I have a lot of references. Some of them have no cite in the document. The thing I want to add the pages of the sections where the references are cited.

This is what I have:

Code: Select all

...
\usepackage[backref=section]{hyperref}     

\renewcommand*{\backref}[1]{}% for backref < 1.33 necessary
\renewcommand*{\backreftwosep}[1]{ y }
\renewcommand*{\backreflastsep}[1]{ y }
\renewcommand*{\backrefalt}[4]{%
\ifcase #1 %
\textbf{No hay citas.}%
\or
\textbf{cite in section #2.}%
\else
\textbf{cited in sections #2}%
\fi
}
\begin{document}
...
But I would like to add more information. I want it to say "cited in sections 1,2 and 3, pages 22, 35, 66" for example. Currently says "cited in sections 1,2 and 3.".

Any idea?

Thanks in advance
MAC

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply