Link references items with their source sites without using URL in APA.

200 views
Skip to first unread message

Luyen Khac Bui

unread,
Jun 13, 2019, 1:13:32 AM6/13/19
to LaTeX Users Group
Hi all,

I am using APA citation with hyperref packages. I want my references that is created so that when I click on an item's name (e.g., the name of a paper), it directs me to the source website of this but not use url displayed in that item. I have seen some papers that have this references type with items' names are displayed in a color other than black, e.g., blue.

Anyone can advise me how to do this?

Thanks,
Luyen.

Peter Flynn

unread,
Jun 13, 2019, 4:23:33 AM6/13/19
to latexusersgroup
On Thu, Jun 13, 2019 at 6:13 AM Luyen Khac Bui <bkl...@gmail.com> wrote:
Hi all,

I am using APA citation with hyperref packages.

OK
 
I want my references that is created so that when I click on an item's name (e.g., the name of a paper), it directs me to the source website of this but not use url displayed in that item.

To create a hypertext link in hyperref, use \href{http://www.publisher.com/journal/paper/}{The Title of a Paper}

I don't understand "but not use url displayed in that item" — there is no URL displayed: the title is displayed and it is a link to the paper.

I think if you use biblatex and biber instead of old BiBTeX, any URLs in the bibliography are automatically made into links.

What you seem to be saying is you want the title in the references made into a link, and that link must be different to the publisher's URL that you provide as part of the entry. Is that correct?

I don't think that is possible with the standard styles: the formatting of the references is done by biblatex or BiBTeX, and you cannot change that unless you rewrite the APA module.

Or have I misunderstood? Can you show an example?

It is possible to display a URL and make it link to a different one: 
That will display http://www.publisher.com/journal/paper2/ but clicking on it will go to paper1. Probably A Bad Idea.

I have seen some papers that have this references type with items' names are displayed in a color other than black, e.g., blue.

\RequirePackage{hyperref}
  \hypersetup{linkcolor=green,urlcolor=blue,citecolor=red,colorlinks=true}
  \AtBeginDocument{\renewcommand{\UrlFont}{\ttfamily}}


Peter 

Luyen Khac Bui

unread,
Jun 13, 2019, 5:00:51 AM6/13/19
to LaTeX Users Group
Hi Peter,

Sorry for letting you be confusing. In .bib file, there are various fields including author, journal, doi, url, ... When I added an in-text citation, its source appeared in references with its URL display in red color (please see Fig1.png), and I can click on that to access the link of the paper on the internet. But this is not my preference. What I want is that when I click on a paper's name in references, it takes me to the link of the paper, and url is not displayed in references. Please see an example in Fig2.png. In this example, papers' names and others (except authors' names) are in blue, and I can click on that to access the paper internet source.

Cheers,
Luyen.

Vào 16:23:33 UTC+8 Thứ Năm, ngày 13 tháng 6 năm 2019, Peter đã viết:
Fig1.png
Fig2.png

Peter Flynn

unread,
Jun 13, 2019, 8:07:36 PM6/13/19
to latexus...@googlegroups.com
On 13/06/2019 10:00, Luyen Khac Bui wrote:
> Hi Peter,
>
> Sorry for letting you be confusing. In .bib file, there are various
> fields including author, journal, doi, url, ... When I added an in-text
> citation, its source appeared in references with its URL display in red
> color (please see Fig1.png),

Are you using old BiBTeX or biblatex?

I don't know if the red is done automatically by the style file.
It is standard APA6 to include the URI if you provide it.

> and I can click on that to access the link
> of the paper on the internet. But this is not my preference.

Do you have that choice? If you must use APA (for the publisher or for a
university) you may not be permitted the choice. If you are publishing
for yourself, you of course have any choice you want.

> What I want
> is that when I click on a paper's name in references,

When you say "paper's name" do you mean title or author names?

> it takes me to the
> link of the paper, and url is not displayed in references.

OK. I don't think that is APA style. I cannot see any way in the APA
biblatex documentation to do this, so if you need it, you must rewrite
some of the style file manually.

Maybe it's something that biblatex itself can do, independently of the
APA style, but I am not a biblatex expert.

> Please see an
> example in Fig2.png. In this example, papers' names and others (except
> authors' names) are in blue, and I can click on that to access the paper
> internet source.

OK, so it's titles (don't call them names) that you want linked. It may
be possible to write that in biblatex, but if you fiddle with the APA
style, then it won't be APA any more but your own private style.

Probably the best place to ask this level of question is on the
comp.text.tex Usenet newsgroup or the tex.stackexchange.com website,
where there are people who know a lot about biblatex.

Peter

Reply all
Reply to author
Forward
0 new messages