Enumerate: reference and hyperlink /hyperref the “numbering” of items












0















I aim to use



begin{enumerate}
item
...
end{enumerate}



Goal: such that the numbering (1,2,3,...) of each item in the list can have a reference and hyperlink /hyperref, so I can refer to them later. How to do it? Thank you in advance.




Presumably, I need to add



usepackage[colorlinks,citecolor=blue,linkcolor=blue,urlcolor=blue]{hyperref}



How to reference and hyperlink /hyperref the "numbering" of items, presumably with a blue color for each number (1,2,3,...)?




A minimal MWE follows a related post here enumitem: referencing items in enumerate from @Werner
is



documentclass{article}
usepackage{enumitem,cleveref}% http://ctan.org/pkg/{enumitem,cleveref}
begin{document}
begin{enumerate}
item
one label{one}
item
two label{two}
end{enumerate}
This cref{two} is great.
begin{enumerate}[ref={observation~arabic*}]
item
one label{dog}
item
two label{cat}
end{enumerate}
This ref{cat} is a cat.
end{document}









share|improve this question























  • How to reference them items? Use label and then you can ref later. Oh, that's what you're already doing. So, what's the question?

    – Werner
    Jan 17 at 18:13











  • What's the question here? Loading hyperref helps

    – Christian Hupfer
    Jan 17 at 18:13













  • Does hyperref give a hyperlink? I am not sure

    – wonderich
    Jan 17 at 19:24











  • I want to have the itme number in blur color, and it can be referred later with a hyperref or hyperlink.

    – wonderich
    Jan 17 at 19:28
















0















I aim to use



begin{enumerate}
item
...
end{enumerate}



Goal: such that the numbering (1,2,3,...) of each item in the list can have a reference and hyperlink /hyperref, so I can refer to them later. How to do it? Thank you in advance.




Presumably, I need to add



usepackage[colorlinks,citecolor=blue,linkcolor=blue,urlcolor=blue]{hyperref}



How to reference and hyperlink /hyperref the "numbering" of items, presumably with a blue color for each number (1,2,3,...)?




A minimal MWE follows a related post here enumitem: referencing items in enumerate from @Werner
is



documentclass{article}
usepackage{enumitem,cleveref}% http://ctan.org/pkg/{enumitem,cleveref}
begin{document}
begin{enumerate}
item
one label{one}
item
two label{two}
end{enumerate}
This cref{two} is great.
begin{enumerate}[ref={observation~arabic*}]
item
one label{dog}
item
two label{cat}
end{enumerate}
This ref{cat} is a cat.
end{document}









share|improve this question























  • How to reference them items? Use label and then you can ref later. Oh, that's what you're already doing. So, what's the question?

    – Werner
    Jan 17 at 18:13











  • What's the question here? Loading hyperref helps

    – Christian Hupfer
    Jan 17 at 18:13













  • Does hyperref give a hyperlink? I am not sure

    – wonderich
    Jan 17 at 19:24











  • I want to have the itme number in blur color, and it can be referred later with a hyperref or hyperlink.

    – wonderich
    Jan 17 at 19:28














0












0








0


1






I aim to use



begin{enumerate}
item
...
end{enumerate}



Goal: such that the numbering (1,2,3,...) of each item in the list can have a reference and hyperlink /hyperref, so I can refer to them later. How to do it? Thank you in advance.




Presumably, I need to add



usepackage[colorlinks,citecolor=blue,linkcolor=blue,urlcolor=blue]{hyperref}



How to reference and hyperlink /hyperref the "numbering" of items, presumably with a blue color for each number (1,2,3,...)?




A minimal MWE follows a related post here enumitem: referencing items in enumerate from @Werner
is



documentclass{article}
usepackage{enumitem,cleveref}% http://ctan.org/pkg/{enumitem,cleveref}
begin{document}
begin{enumerate}
item
one label{one}
item
two label{two}
end{enumerate}
This cref{two} is great.
begin{enumerate}[ref={observation~arabic*}]
item
one label{dog}
item
two label{cat}
end{enumerate}
This ref{cat} is a cat.
end{document}









share|improve this question














I aim to use



begin{enumerate}
item
...
end{enumerate}



Goal: such that the numbering (1,2,3,...) of each item in the list can have a reference and hyperlink /hyperref, so I can refer to them later. How to do it? Thank you in advance.




Presumably, I need to add



usepackage[colorlinks,citecolor=blue,linkcolor=blue,urlcolor=blue]{hyperref}



How to reference and hyperlink /hyperref the "numbering" of items, presumably with a blue color for each number (1,2,3,...)?




A minimal MWE follows a related post here enumitem: referencing items in enumerate from @Werner
is



documentclass{article}
usepackage{enumitem,cleveref}% http://ctan.org/pkg/{enumitem,cleveref}
begin{document}
begin{enumerate}
item
one label{one}
item
two label{two}
end{enumerate}
This cref{two} is great.
begin{enumerate}[ref={observation~arabic*}]
item
one label{dog}
item
two label{cat}
end{enumerate}
This ref{cat} is a cat.
end{document}






hyperref cross-referencing enumerate enumitem hyperlink






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 17 at 18:10









wonderichwonderich

766619




766619













  • How to reference them items? Use label and then you can ref later. Oh, that's what you're already doing. So, what's the question?

    – Werner
    Jan 17 at 18:13











  • What's the question here? Loading hyperref helps

    – Christian Hupfer
    Jan 17 at 18:13













  • Does hyperref give a hyperlink? I am not sure

    – wonderich
    Jan 17 at 19:24











  • I want to have the itme number in blur color, and it can be referred later with a hyperref or hyperlink.

    – wonderich
    Jan 17 at 19:28



















  • How to reference them items? Use label and then you can ref later. Oh, that's what you're already doing. So, what's the question?

    – Werner
    Jan 17 at 18:13











  • What's the question here? Loading hyperref helps

    – Christian Hupfer
    Jan 17 at 18:13













  • Does hyperref give a hyperlink? I am not sure

    – wonderich
    Jan 17 at 19:24











  • I want to have the itme number in blur color, and it can be referred later with a hyperref or hyperlink.

    – wonderich
    Jan 17 at 19:28

















How to reference them items? Use label and then you can ref later. Oh, that's what you're already doing. So, what's the question?

– Werner
Jan 17 at 18:13





How to reference them items? Use label and then you can ref later. Oh, that's what you're already doing. So, what's the question?

– Werner
Jan 17 at 18:13













What's the question here? Loading hyperref helps

– Christian Hupfer
Jan 17 at 18:13







What's the question here? Loading hyperref helps

– Christian Hupfer
Jan 17 at 18:13















Does hyperref give a hyperlink? I am not sure

– wonderich
Jan 17 at 19:24





Does hyperref give a hyperlink? I am not sure

– wonderich
Jan 17 at 19:24













I want to have the itme number in blur color, and it can be referred later with a hyperref or hyperlink.

– wonderich
Jan 17 at 19:28





I want to have the itme number in blur color, and it can be referred later with a hyperref or hyperlink.

– wonderich
Jan 17 at 19:28










1 Answer
1






active

oldest

votes


















1














Perhaps you're interested in the following; setting the label to use a colour and using hyperref's linkcolor to make it match:



enter image description here



documentclass{article}

usepackage{enumitem,xcolor}
usepackage{hyperref,cleveref}

hypersetup{
colorlinks = true,
linkcolor = blue
}

begin{document}

begin{enumerate}[label=textcolor{blue}{arabic*.}, ref=arabic*]
item
one label{one}
item
two label{two}
end{enumerate}

This cref{two} is great.

end{document}





share|improve this answer
























  • Thanks +1, this is basically what I wanted

    – wonderich
    Jan 17 at 22:14











  • The key is this "[label=textcolor{blue}{arabic*.}, ref=arabic*]" I do not know this before!

    – wonderich
    Jan 17 at 22:14






  • 1





    @wonderich: Indeed. You can specify a separate label and ref key. The former will be used for printing the item number and the latter will be used if you ref a label set in that item.

    – Werner
    Jan 17 at 22:33











  • You have comments on this too? tex.stackexchange.com/q/470600/41144 Thank you!

    – wonderich
    Jan 17 at 23:38











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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f470579%2fenumerate-reference-and-hyperlink-hyperref-the-numbering-of-items%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














Perhaps you're interested in the following; setting the label to use a colour and using hyperref's linkcolor to make it match:



enter image description here



documentclass{article}

usepackage{enumitem,xcolor}
usepackage{hyperref,cleveref}

hypersetup{
colorlinks = true,
linkcolor = blue
}

begin{document}

begin{enumerate}[label=textcolor{blue}{arabic*.}, ref=arabic*]
item
one label{one}
item
two label{two}
end{enumerate}

This cref{two} is great.

end{document}





share|improve this answer
























  • Thanks +1, this is basically what I wanted

    – wonderich
    Jan 17 at 22:14











  • The key is this "[label=textcolor{blue}{arabic*.}, ref=arabic*]" I do not know this before!

    – wonderich
    Jan 17 at 22:14






  • 1





    @wonderich: Indeed. You can specify a separate label and ref key. The former will be used for printing the item number and the latter will be used if you ref a label set in that item.

    – Werner
    Jan 17 at 22:33











  • You have comments on this too? tex.stackexchange.com/q/470600/41144 Thank you!

    – wonderich
    Jan 17 at 23:38
















1














Perhaps you're interested in the following; setting the label to use a colour and using hyperref's linkcolor to make it match:



enter image description here



documentclass{article}

usepackage{enumitem,xcolor}
usepackage{hyperref,cleveref}

hypersetup{
colorlinks = true,
linkcolor = blue
}

begin{document}

begin{enumerate}[label=textcolor{blue}{arabic*.}, ref=arabic*]
item
one label{one}
item
two label{two}
end{enumerate}

This cref{two} is great.

end{document}





share|improve this answer
























  • Thanks +1, this is basically what I wanted

    – wonderich
    Jan 17 at 22:14











  • The key is this "[label=textcolor{blue}{arabic*.}, ref=arabic*]" I do not know this before!

    – wonderich
    Jan 17 at 22:14






  • 1





    @wonderich: Indeed. You can specify a separate label and ref key. The former will be used for printing the item number and the latter will be used if you ref a label set in that item.

    – Werner
    Jan 17 at 22:33











  • You have comments on this too? tex.stackexchange.com/q/470600/41144 Thank you!

    – wonderich
    Jan 17 at 23:38














1












1








1







Perhaps you're interested in the following; setting the label to use a colour and using hyperref's linkcolor to make it match:



enter image description here



documentclass{article}

usepackage{enumitem,xcolor}
usepackage{hyperref,cleveref}

hypersetup{
colorlinks = true,
linkcolor = blue
}

begin{document}

begin{enumerate}[label=textcolor{blue}{arabic*.}, ref=arabic*]
item
one label{one}
item
two label{two}
end{enumerate}

This cref{two} is great.

end{document}





share|improve this answer













Perhaps you're interested in the following; setting the label to use a colour and using hyperref's linkcolor to make it match:



enter image description here



documentclass{article}

usepackage{enumitem,xcolor}
usepackage{hyperref,cleveref}

hypersetup{
colorlinks = true,
linkcolor = blue
}

begin{document}

begin{enumerate}[label=textcolor{blue}{arabic*.}, ref=arabic*]
item
one label{one}
item
two label{two}
end{enumerate}

This cref{two} is great.

end{document}






share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 17 at 20:35









WernerWerner

441k679721667




441k679721667













  • Thanks +1, this is basically what I wanted

    – wonderich
    Jan 17 at 22:14











  • The key is this "[label=textcolor{blue}{arabic*.}, ref=arabic*]" I do not know this before!

    – wonderich
    Jan 17 at 22:14






  • 1





    @wonderich: Indeed. You can specify a separate label and ref key. The former will be used for printing the item number and the latter will be used if you ref a label set in that item.

    – Werner
    Jan 17 at 22:33











  • You have comments on this too? tex.stackexchange.com/q/470600/41144 Thank you!

    – wonderich
    Jan 17 at 23:38



















  • Thanks +1, this is basically what I wanted

    – wonderich
    Jan 17 at 22:14











  • The key is this "[label=textcolor{blue}{arabic*.}, ref=arabic*]" I do not know this before!

    – wonderich
    Jan 17 at 22:14






  • 1





    @wonderich: Indeed. You can specify a separate label and ref key. The former will be used for printing the item number and the latter will be used if you ref a label set in that item.

    – Werner
    Jan 17 at 22:33











  • You have comments on this too? tex.stackexchange.com/q/470600/41144 Thank you!

    – wonderich
    Jan 17 at 23:38

















Thanks +1, this is basically what I wanted

– wonderich
Jan 17 at 22:14





Thanks +1, this is basically what I wanted

– wonderich
Jan 17 at 22:14













The key is this "[label=textcolor{blue}{arabic*.}, ref=arabic*]" I do not know this before!

– wonderich
Jan 17 at 22:14





The key is this "[label=textcolor{blue}{arabic*.}, ref=arabic*]" I do not know this before!

– wonderich
Jan 17 at 22:14




1




1





@wonderich: Indeed. You can specify a separate label and ref key. The former will be used for printing the item number and the latter will be used if you ref a label set in that item.

– Werner
Jan 17 at 22:33





@wonderich: Indeed. You can specify a separate label and ref key. The former will be used for printing the item number and the latter will be used if you ref a label set in that item.

– Werner
Jan 17 at 22:33













You have comments on this too? tex.stackexchange.com/q/470600/41144 Thank you!

– wonderich
Jan 17 at 23:38





You have comments on this too? tex.stackexchange.com/q/470600/41144 Thank you!

– wonderich
Jan 17 at 23:38


















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f470579%2fenumerate-reference-and-hyperlink-hyperref-the-numbering-of-items%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?