BibTeX, biblatex and biberCitation links to bibliography at end

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
derajan
Posts: 4
Joined: Wed May 13, 2009 4:46 am

Citation links to bibliography at end

Post by derajan »

Hi,
i am trying to make my citations in my paper linked to the bibliography at the end. Such that when I click at the citation (e.g. [1]) in the chapter, it takes me to theend of chapter where the reference actually sits with all details.
Can some one help me with how to do this.

RA

Recommended reading 2024:

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

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

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Citation links to bibliography at end

Post by frabjous »

I think the hyperref package does this more or less automatically. Check out its manual here:
Hyperref Manual
derajan
Posts: 4
Joined: Wed May 13, 2009 4:46 am

Re: Citation links to bibliography at end

Post by derajan »

Hi,
Actually hyperref is not doing so automatically in my case:
Here is my hyperref statements:


\urlstyle{rm}
\usepackage[all]{hypcap}
\hypersetup{
bookmarksnumbered,
pdfstartview={FitH},
citecolor={blue},
linkcolor={blue},
urlcolor={black},
pdfpagemode={UseOutlines}
}
\makeatletter
\newcommand\org@hypertarget{}
\let\org@hypertarget\hypertarget
\renewcommand\hypertarget[2]{%
\Hy@raisedlink{\org@hypertarget{#1}{}}#2%
}
\makeatother
%algorithm includes (must go after hyperref)
\usepackage{algorithm}
\usepackage[noend]{algorithmic}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10344
Joined: Mon Mar 10, 2008 9:44 pm

Citation links to bibliography at end

Post by Stefan Kottwitz »

Hi derajan,

try the backref option.

Stefan
LaTeX.org admin
derajan
Posts: 4
Joined: Wed May 13, 2009 4:46 am

Citation links to bibliography at end

Post by derajan »

Hi Stefan,
I am using backref , but its not linking my citation to the biliography at the end. No link comes up at the citation number.

This is how I am actually doing it:

Code: Select all

Code, edit and compile here:
\usepackage[
pdfauthor={derajan},
pdftitle={How to do this},
pdfstartview=XYZ,
bookmarks=true,
colorlinks=true,
linkcolor=blue,
urlcolor=blue,
citecolor=blue,
pdftex,
bookmarks=true,
linktocpage=true, % makes the page number as hyperlink in table of content
hyperindex=true
]{hyperref}
\usepackage{hyperref}
%\usepackage{natbib}
\urlstyle{rm}
\usepackage[all]{hypcap}
\hypersetup{
backref=true
bookmarksnumbered,
pdfstartview={FitH},
citecolor={blue},
linkcolor={blue},
urlcolor={black},
pdfpagemode={UseOutlines}
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
But this does not give me what i want. Further more my citations do not come up in blue as I want it to be!!

Thanx,
derajan
Kiczko
Posts: 1
Joined: Thu May 14, 2009 12:01 pm

Re: Citation links to bibliography at end

Post by Kiczko »

Hey,

You call the hyperref package twice, maybe this is an issue?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Citation links to bibliography at end

Post by localghost »

derajan wrote:[...] I am using backref , but its not linking my citation to the biliography at the end. No link comes up at the citation number. [...]
There is a missing comma in the second setup block for hyperref right behind the backref option.
derajan
Posts: 4
Joined: Wed May 13, 2009 4:46 am

Re: Citation links to bibliography at end

Post by derajan »

Hi,
Thanx I tried both options (putting comma after backref, removing second hyperef option).
But still its not doing what I want it to do.

derajan
dfmalh
Posts: 19
Joined: Fri Jul 25, 2008 1:12 pm

Citation links to bibliography at end

Post by dfmalh »

Hi, I am having similar problems.

I cite in the followinf manner: Bla bla bla \citep{Pretorius2001} bla bla bla. For more than one citation, it is the same, but look like this: \citep{Pretorius2001a, Pretorius2001b}

When I use the backref in the following manner:

Code: Select all

\usepackage[hyperpageref]{backref}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
I get the following output in my Reference List:
Pretorius, I.S. (2001). Gene technology in winemaking: new approaches to an ancient art. Agric. Conspec. Sci., vol. 66, no. 1, pp. 27–47. 50, 51, 55
The 50, 51 and 55 are the pages where the citations can be found. This is confusing, as it look as if it should be part of the reference...

I would like it to look like:
Pretorius, I.S. (2001). Gene technology in winemaking: new approaches to an ancient art. Agric. Conspec. Sci., vol. 66, no. 1, pp. 27–47.
3 citations on 3 pages 50, 51, 55
When I add the following code below \usepackage[hyperpageref]{backref} I get the following output:

Code: Select all

Code, edit and compile here:
% Some language options are detected by package backref.
% This affects the following macros:
% \backrefpagesname
% \backrefsectionsname
% \backrefsep
% \backreftwosep
% \backreflastsep
\renewcommand*{\backref}[1]{
% default interface
% #1: backref list
%
% We want to use the alternative interface,
% therefore the definition is empty here.
}
\renewcommand*{\backrefalt}[4]{%
% alternative interface
% #1: number of distinct back references
% #2: backref list with distinct entries
% #3: number of back references including duplicates
% #4: backref list including duplicates
% \par
% #3 citation(s) on #1 page(s):
% #2,\par
\ifnum#1=1 %
\ifnum#3=1 %
1 citation on page %
\else
#3 citations on page %
\fi
\else
#3 citations on #1 pages %
\fi
#2,\par
% \ifnum#3=1 %
% 1 citation located at page %
% \else
% #3 citations located at pages %
% \fi
% #4.\par
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Here is the output:
Pretorius, I.S. (2001). Gene technology in winemaking: new approaches to an ancient art. Agric. Conspec. Sci., vol. 66, no. 1, pp. 27–47.
0 citations on 0 pages
Notice that there is suddenly no citations... ??? When I remove the "new" code it works again, and only the numbers are displayed.

Have anybody come across the same problem? Any help will be greatly appreciated, my thesis is due in 3 weeks.

Thanks for any help!
dfmalh
Posts: 19
Joined: Fri Jul 25, 2008 1:12 pm

Citation links to bibliography at end

Post by dfmalh »

Hi, I found something, I don't know, maybe it points in the right direction to get an answer....

From the Internet (not my post):
...you have forgotten the empty lines after the \bibitem entries.
backref does need them to detect the end of the entry.
OK, I don't use \bibitem, I use \usepackage{chapterbib} and my uni's bib style based on Natbib.

Because I use the memoir class and include my chapters (and references at the end of each chapter), I have the following at the end of each chapter:
  • \bibliographystyle{usmeg-a}
    \bibliography{dmthesisRef}
There is also no, \end{document} at the end of each chapter as this is in the master file.

I hope someone have and idea, or can point me to another Post maybe I posted in the wrong Forum?

Thanks
Post Reply