options for appearance of links in hyperrefHow to change color of hyperlink to an external URL?Can't get...
It took me a lot of time to make this, pls like. (YouTube Comments #1)
Why zero tolerance on nudity in space?
Why publish a research paper when a blog post or a lecture slide can have more citation count than a journal paper?
Early credit roll before the end of the film
In Linux what happens if 1000 files in a directory are moved to another location while another 300 files were added to the source directory?
What's a good word to describe a public place that looks like it wouldn't be rough?
Why did Democrats in the Senate oppose the Born-Alive Abortion Survivors Protection Act (2019 S.130)?
Eww, those bytes are gross
Absorbing damage with Planeswalker
Why wasn't TEventArgs made contravariant in the standard event pattern in the .NET ecosystem?
A curious equality of integrals involving the prime counting function?
What would be the rarity of this magic item(s)?
How to play electric guitar and bass as a duet
Is boss over stepping boundary/micromanaging?
Quickly creating a sparse array
Can we harness gravitational potential energy?
How to make ice magic work from a scientific point of view?
What are "industrial chops"?
Do theoretical physics suggest that gravity is the exchange of gravitons or deformation/bending of spacetime?
Cookies - Should the toggles be on?
Making him into a bully (how to show mild violence)
Why did Luke use his left hand to shoot?
Increment each digit in a number to form a new number
Consequences of lack of rigour
options for appearance of links in hyperref
How to change color of hyperlink to an external URL?Can't get url's to show colorWhat is the best way to change citation color? I want it to change from blue to blackCross referencing the Fig.1 and Eq.(1) in blue color in documentclass{elsarticle}Tcolorbox - setting linkcolor and citecolor at the same timeHow to use hyperref to change font color of citation?Remove ugly borders around clickable cross-references and hyperlinksFurther customize color of hyperref linksHow to avoid link higlighting when using package hyperref?How do I specify color in RGB using hypersetup in hyperref?Options and suggestions for hyperref font?hyperref bad referencesHyperref optionsToggle border links in table of contentsAppearance of Links in hyperrefSimpler alternative to hyperref?Mouseover with Hyperref Internal LinksColor Options for Appearance of Links in HyperrefPossibility to exclude coloring certain links using hyperrefhyperref does not create links for expex
If I use
usepackage[colorlinks]{hyperref}
I get colored links for cite
(not good for printing or even viewing) but table of content looks fine.
If I use
usepackage[colorlinks=false]{hyperref}
I get cite
links in black with a colored frame (this looks very good) but the table of content looks strange with extra long boxes.
What are my other options? Can you have two styles in different parts of a document?
How do you make the page numbers in TOC to be the links instead of the section headers?
hyperref color
add a comment |
If I use
usepackage[colorlinks]{hyperref}
I get colored links for cite
(not good for printing or even viewing) but table of content looks fine.
If I use
usepackage[colorlinks=false]{hyperref}
I get cite
links in black with a colored frame (this looks very good) but the table of content looks strange with extra long boxes.
What are my other options? Can you have two styles in different parts of a document?
How do you make the page numbers in TOC to be the links instead of the section headers?
hyperref color
3
To answer my own last question, useusepackage[colorlinks=false, linktocpage=true]{hyperref}
to avoid those long boxes in TOC. See link for details.
– Maesumi
Apr 5 '12 at 0:29
related: tex.stackexchange.com/questions/98528/…
– craq
Dec 28 '15 at 17:50
usepackage[hidelinks]{hyperref} More here
– devssh
May 5 '16 at 9:17
add a comment |
If I use
usepackage[colorlinks]{hyperref}
I get colored links for cite
(not good for printing or even viewing) but table of content looks fine.
If I use
usepackage[colorlinks=false]{hyperref}
I get cite
links in black with a colored frame (this looks very good) but the table of content looks strange with extra long boxes.
What are my other options? Can you have two styles in different parts of a document?
How do you make the page numbers in TOC to be the links instead of the section headers?
hyperref color
If I use
usepackage[colorlinks]{hyperref}
I get colored links for cite
(not good for printing or even viewing) but table of content looks fine.
If I use
usepackage[colorlinks=false]{hyperref}
I get cite
links in black with a colored frame (this looks very good) but the table of content looks strange with extra long boxes.
What are my other options? Can you have two styles in different parts of a document?
How do you make the page numbers in TOC to be the links instead of the section headers?
hyperref color
hyperref color
edited Nov 24 '16 at 16:10
m0nhawk
7,47953065
7,47953065
asked Apr 4 '12 at 16:29
MaesumiMaesumi
3,30343351
3,30343351
3
To answer my own last question, useusepackage[colorlinks=false, linktocpage=true]{hyperref}
to avoid those long boxes in TOC. See link for details.
– Maesumi
Apr 5 '12 at 0:29
related: tex.stackexchange.com/questions/98528/…
– craq
Dec 28 '15 at 17:50
usepackage[hidelinks]{hyperref} More here
– devssh
May 5 '16 at 9:17
add a comment |
3
To answer my own last question, useusepackage[colorlinks=false, linktocpage=true]{hyperref}
to avoid those long boxes in TOC. See link for details.
– Maesumi
Apr 5 '12 at 0:29
related: tex.stackexchange.com/questions/98528/…
– craq
Dec 28 '15 at 17:50
usepackage[hidelinks]{hyperref} More here
– devssh
May 5 '16 at 9:17
3
3
To answer my own last question, use
usepackage[colorlinks=false, linktocpage=true]{hyperref}
to avoid those long boxes in TOC. See link for details.– Maesumi
Apr 5 '12 at 0:29
To answer my own last question, use
usepackage[colorlinks=false, linktocpage=true]{hyperref}
to avoid those long boxes in TOC. See link for details.– Maesumi
Apr 5 '12 at 0:29
related: tex.stackexchange.com/questions/98528/…
– craq
Dec 28 '15 at 17:50
related: tex.stackexchange.com/questions/98528/…
– craq
Dec 28 '15 at 17:50
usepackage[hidelinks]{hyperref} More here
– devssh
May 5 '16 at 9:17
usepackage[hidelinks]{hyperref} More here
– devssh
May 5 '16 at 9:17
add a comment |
2 Answers
2
active
oldest
votes
You can customise pretty much any thing in that regard, all the way to hiding all the links (no colours, no frames, just plain black text) with hidelinks
.
if you use colorlinks=true
you can set (defaults in []):
linkcolor
[red]
anchorcolor
[black]
citecolor
[green]
filecolor
[cyan]
menucolor
[red]
runcolor
[cyan - same as file color]
urlcolor
[magenta]
allcolors
-- use this if you want to set all links to the same color
if you want some of these not coloured, simply set them to .
(e.g., citecolor=.
), which will use the color of the text where the link appears.
if you use colorlinks=false
and therefore want the frames around the links you have access to these settings:
citebordercolor
[rgb 0 1 0]
filebordercolor
[rgb 0 .5 .5]
linkbordercolor
[rgb 1 0 0]
menubordercolor
[rgb 1 0 0]
urlbordercolor
[rgb 0 1 1]
runbordercolor
[rgb 0 .7 .7]allbordercolors
again if you want some of these to not appear, set them to white.
In your case, if you want the frames around links in citations but not on the table of content (and therefore not on other links such as to figures, tables or footnotes) I suggest you have a hypersetup
configuration with at least:
usepackage{hyperref}
hypersetup{
colorlinks = false,
linkbordercolor = {white},
<your other options...>,
}
11
Thx! hypersetup{ hidelinks = true, } worked for me to keep link functionality, but print them black (without frames)
– OneWorld
Sep 6 '12 at 23:59
2
@OneWorld hidelinks does not take on any values. You just include the option or you don't. In particular, no Boolean modifier...
– kan
Oct 9 '12 at 2:42
2
@Sampath: Thank you, I will consider that next time I use this command. However, as I remember the extra value did not break anything. So, for the record:hypersetup{ hidelinks, }
is correct.
– OneWorld
Oct 12 '12 at 12:47
@DimitarAsenov: Is it possible to change the footnote color? :)
– H. R.
Nov 25 '16 at 9:24
4
@displayname See this answer tex.stackexchange.com/a/4506 e.g.urlcolor = [rgb]{0,0,0.5}
.
– Ponkadoodle
Jul 13 '17 at 18:50
|
show 6 more comments
Very useful discussion. Thanks. Only one small comment
if you want some of these not coloured, simply set them to . (e.g., citecolor=.), which
will use the color of the text where the link appears.
I found (MikTeX, current as of Feb 2019) that [linkcolor=] caused it to follow the text color, but [linkcolor=.] caused an error.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f50747%2foptions-for-appearance-of-links-in-hyperref%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can customise pretty much any thing in that regard, all the way to hiding all the links (no colours, no frames, just plain black text) with hidelinks
.
if you use colorlinks=true
you can set (defaults in []):
linkcolor
[red]
anchorcolor
[black]
citecolor
[green]
filecolor
[cyan]
menucolor
[red]
runcolor
[cyan - same as file color]
urlcolor
[magenta]
allcolors
-- use this if you want to set all links to the same color
if you want some of these not coloured, simply set them to .
(e.g., citecolor=.
), which will use the color of the text where the link appears.
if you use colorlinks=false
and therefore want the frames around the links you have access to these settings:
citebordercolor
[rgb 0 1 0]
filebordercolor
[rgb 0 .5 .5]
linkbordercolor
[rgb 1 0 0]
menubordercolor
[rgb 1 0 0]
urlbordercolor
[rgb 0 1 1]
runbordercolor
[rgb 0 .7 .7]allbordercolors
again if you want some of these to not appear, set them to white.
In your case, if you want the frames around links in citations but not on the table of content (and therefore not on other links such as to figures, tables or footnotes) I suggest you have a hypersetup
configuration with at least:
usepackage{hyperref}
hypersetup{
colorlinks = false,
linkbordercolor = {white},
<your other options...>,
}
11
Thx! hypersetup{ hidelinks = true, } worked for me to keep link functionality, but print them black (without frames)
– OneWorld
Sep 6 '12 at 23:59
2
@OneWorld hidelinks does not take on any values. You just include the option or you don't. In particular, no Boolean modifier...
– kan
Oct 9 '12 at 2:42
2
@Sampath: Thank you, I will consider that next time I use this command. However, as I remember the extra value did not break anything. So, for the record:hypersetup{ hidelinks, }
is correct.
– OneWorld
Oct 12 '12 at 12:47
@DimitarAsenov: Is it possible to change the footnote color? :)
– H. R.
Nov 25 '16 at 9:24
4
@displayname See this answer tex.stackexchange.com/a/4506 e.g.urlcolor = [rgb]{0,0,0.5}
.
– Ponkadoodle
Jul 13 '17 at 18:50
|
show 6 more comments
You can customise pretty much any thing in that regard, all the way to hiding all the links (no colours, no frames, just plain black text) with hidelinks
.
if you use colorlinks=true
you can set (defaults in []):
linkcolor
[red]
anchorcolor
[black]
citecolor
[green]
filecolor
[cyan]
menucolor
[red]
runcolor
[cyan - same as file color]
urlcolor
[magenta]
allcolors
-- use this if you want to set all links to the same color
if you want some of these not coloured, simply set them to .
(e.g., citecolor=.
), which will use the color of the text where the link appears.
if you use colorlinks=false
and therefore want the frames around the links you have access to these settings:
citebordercolor
[rgb 0 1 0]
filebordercolor
[rgb 0 .5 .5]
linkbordercolor
[rgb 1 0 0]
menubordercolor
[rgb 1 0 0]
urlbordercolor
[rgb 0 1 1]
runbordercolor
[rgb 0 .7 .7]allbordercolors
again if you want some of these to not appear, set them to white.
In your case, if you want the frames around links in citations but not on the table of content (and therefore not on other links such as to figures, tables or footnotes) I suggest you have a hypersetup
configuration with at least:
usepackage{hyperref}
hypersetup{
colorlinks = false,
linkbordercolor = {white},
<your other options...>,
}
11
Thx! hypersetup{ hidelinks = true, } worked for me to keep link functionality, but print them black (without frames)
– OneWorld
Sep 6 '12 at 23:59
2
@OneWorld hidelinks does not take on any values. You just include the option or you don't. In particular, no Boolean modifier...
– kan
Oct 9 '12 at 2:42
2
@Sampath: Thank you, I will consider that next time I use this command. However, as I remember the extra value did not break anything. So, for the record:hypersetup{ hidelinks, }
is correct.
– OneWorld
Oct 12 '12 at 12:47
@DimitarAsenov: Is it possible to change the footnote color? :)
– H. R.
Nov 25 '16 at 9:24
4
@displayname See this answer tex.stackexchange.com/a/4506 e.g.urlcolor = [rgb]{0,0,0.5}
.
– Ponkadoodle
Jul 13 '17 at 18:50
|
show 6 more comments
You can customise pretty much any thing in that regard, all the way to hiding all the links (no colours, no frames, just plain black text) with hidelinks
.
if you use colorlinks=true
you can set (defaults in []):
linkcolor
[red]
anchorcolor
[black]
citecolor
[green]
filecolor
[cyan]
menucolor
[red]
runcolor
[cyan - same as file color]
urlcolor
[magenta]
allcolors
-- use this if you want to set all links to the same color
if you want some of these not coloured, simply set them to .
(e.g., citecolor=.
), which will use the color of the text where the link appears.
if you use colorlinks=false
and therefore want the frames around the links you have access to these settings:
citebordercolor
[rgb 0 1 0]
filebordercolor
[rgb 0 .5 .5]
linkbordercolor
[rgb 1 0 0]
menubordercolor
[rgb 1 0 0]
urlbordercolor
[rgb 0 1 1]
runbordercolor
[rgb 0 .7 .7]allbordercolors
again if you want some of these to not appear, set them to white.
In your case, if you want the frames around links in citations but not on the table of content (and therefore not on other links such as to figures, tables or footnotes) I suggest you have a hypersetup
configuration with at least:
usepackage{hyperref}
hypersetup{
colorlinks = false,
linkbordercolor = {white},
<your other options...>,
}
You can customise pretty much any thing in that regard, all the way to hiding all the links (no colours, no frames, just plain black text) with hidelinks
.
if you use colorlinks=true
you can set (defaults in []):
linkcolor
[red]
anchorcolor
[black]
citecolor
[green]
filecolor
[cyan]
menucolor
[red]
runcolor
[cyan - same as file color]
urlcolor
[magenta]
allcolors
-- use this if you want to set all links to the same color
if you want some of these not coloured, simply set them to .
(e.g., citecolor=.
), which will use the color of the text where the link appears.
if you use colorlinks=false
and therefore want the frames around the links you have access to these settings:
citebordercolor
[rgb 0 1 0]
filebordercolor
[rgb 0 .5 .5]
linkbordercolor
[rgb 1 0 0]
menubordercolor
[rgb 1 0 0]
urlbordercolor
[rgb 0 1 1]
runbordercolor
[rgb 0 .7 .7]allbordercolors
again if you want some of these to not appear, set them to white.
In your case, if you want the frames around links in citations but not on the table of content (and therefore not on other links such as to figures, tables or footnotes) I suggest you have a hypersetup
configuration with at least:
usepackage{hyperref}
hypersetup{
colorlinks = false,
linkbordercolor = {white},
<your other options...>,
}
edited Nov 24 '16 at 14:37
Dimitar Asenov
1156
1156
answered Apr 4 '12 at 17:01
ArTourterArTourter
10.7k43551
10.7k43551
11
Thx! hypersetup{ hidelinks = true, } worked for me to keep link functionality, but print them black (without frames)
– OneWorld
Sep 6 '12 at 23:59
2
@OneWorld hidelinks does not take on any values. You just include the option or you don't. In particular, no Boolean modifier...
– kan
Oct 9 '12 at 2:42
2
@Sampath: Thank you, I will consider that next time I use this command. However, as I remember the extra value did not break anything. So, for the record:hypersetup{ hidelinks, }
is correct.
– OneWorld
Oct 12 '12 at 12:47
@DimitarAsenov: Is it possible to change the footnote color? :)
– H. R.
Nov 25 '16 at 9:24
4
@displayname See this answer tex.stackexchange.com/a/4506 e.g.urlcolor = [rgb]{0,0,0.5}
.
– Ponkadoodle
Jul 13 '17 at 18:50
|
show 6 more comments
11
Thx! hypersetup{ hidelinks = true, } worked for me to keep link functionality, but print them black (without frames)
– OneWorld
Sep 6 '12 at 23:59
2
@OneWorld hidelinks does not take on any values. You just include the option or you don't. In particular, no Boolean modifier...
– kan
Oct 9 '12 at 2:42
2
@Sampath: Thank you, I will consider that next time I use this command. However, as I remember the extra value did not break anything. So, for the record:hypersetup{ hidelinks, }
is correct.
– OneWorld
Oct 12 '12 at 12:47
@DimitarAsenov: Is it possible to change the footnote color? :)
– H. R.
Nov 25 '16 at 9:24
4
@displayname See this answer tex.stackexchange.com/a/4506 e.g.urlcolor = [rgb]{0,0,0.5}
.
– Ponkadoodle
Jul 13 '17 at 18:50
11
11
Thx! hypersetup{ hidelinks = true, } worked for me to keep link functionality, but print them black (without frames)
– OneWorld
Sep 6 '12 at 23:59
Thx! hypersetup{ hidelinks = true, } worked for me to keep link functionality, but print them black (without frames)
– OneWorld
Sep 6 '12 at 23:59
2
2
@OneWorld hidelinks does not take on any values. You just include the option or you don't. In particular, no Boolean modifier...
– kan
Oct 9 '12 at 2:42
@OneWorld hidelinks does not take on any values. You just include the option or you don't. In particular, no Boolean modifier...
– kan
Oct 9 '12 at 2:42
2
2
@Sampath: Thank you, I will consider that next time I use this command. However, as I remember the extra value did not break anything. So, for the record:
hypersetup{ hidelinks, }
is correct.– OneWorld
Oct 12 '12 at 12:47
@Sampath: Thank you, I will consider that next time I use this command. However, as I remember the extra value did not break anything. So, for the record:
hypersetup{ hidelinks, }
is correct.– OneWorld
Oct 12 '12 at 12:47
@DimitarAsenov: Is it possible to change the footnote color? :)
– H. R.
Nov 25 '16 at 9:24
@DimitarAsenov: Is it possible to change the footnote color? :)
– H. R.
Nov 25 '16 at 9:24
4
4
@displayname See this answer tex.stackexchange.com/a/4506 e.g.
urlcolor = [rgb]{0,0,0.5}
.– Ponkadoodle
Jul 13 '17 at 18:50
@displayname See this answer tex.stackexchange.com/a/4506 e.g.
urlcolor = [rgb]{0,0,0.5}
.– Ponkadoodle
Jul 13 '17 at 18:50
|
show 6 more comments
Very useful discussion. Thanks. Only one small comment
if you want some of these not coloured, simply set them to . (e.g., citecolor=.), which
will use the color of the text where the link appears.
I found (MikTeX, current as of Feb 2019) that [linkcolor=] caused it to follow the text color, but [linkcolor=.] caused an error.
add a comment |
Very useful discussion. Thanks. Only one small comment
if you want some of these not coloured, simply set them to . (e.g., citecolor=.), which
will use the color of the text where the link appears.
I found (MikTeX, current as of Feb 2019) that [linkcolor=] caused it to follow the text color, but [linkcolor=.] caused an error.
add a comment |
Very useful discussion. Thanks. Only one small comment
if you want some of these not coloured, simply set them to . (e.g., citecolor=.), which
will use the color of the text where the link appears.
I found (MikTeX, current as of Feb 2019) that [linkcolor=] caused it to follow the text color, but [linkcolor=.] caused an error.
Very useful discussion. Thanks. Only one small comment
if you want some of these not coloured, simply set them to . (e.g., citecolor=.), which
will use the color of the text where the link appears.
I found (MikTeX, current as of Feb 2019) that [linkcolor=] caused it to follow the text color, but [linkcolor=.] caused an error.
answered 12 mins ago
Dr DarrenDr Darren
192
192
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f50747%2foptions-for-appearance-of-links-in-hyperref%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
3
To answer my own last question, use
usepackage[colorlinks=false, linktocpage=true]{hyperref}
to avoid those long boxes in TOC. See link for details.– Maesumi
Apr 5 '12 at 0:29
related: tex.stackexchange.com/questions/98528/…
– craq
Dec 28 '15 at 17:50
usepackage[hidelinks]{hyperref} More here
– devssh
May 5 '16 at 9:17