First instead of 1 when referencinghyperlinks in biblatexpageref points to wrong page number(Avoid) hyperref...

Extension of 2-adic valuation to the real numbers

Does tea made with boiling water cool faster than tea made with boiled (but still hot) water?

What happens to Mjolnir (Thor's hammer) at the end of Endgame?

Apply MapThread to all but one variable

Critique of timeline aesthetic

Re-entry to Germany after vacation using blue card

How did Captain America manage to do this?

What's the polite way to say "I need to urinate"?

Rivers without rain

Is there any official lore on the Far Realm?

Minor Revision with suggestion of an alternative proof by reviewer

Checks user level and limit the data before saving it to mongoDB

How can Republicans who favour free markets, consistently express anger when they don't like the outcome of that choice?

Multiple options vs single option UI

Can I grease a crank spindle/bracket without disassembling the crank set?

Why did C use the -> operator instead of reusing the . operator?

How to have a sharp product image?

can anyone help me with this awful query plan?

How can I practically buy stocks?

"You've called the wrong number" or "You called the wrong number"

Does a large simulator bay have standard public address announcements?

Which big number is bigger?

What is the philosophical significance of speech acts/implicature?

Why does Mind Blank stop the Feeblemind spell?



First instead of 1 when referencing


hyperlinks in biblatexpageref points to wrong page number(Avoid) hyperref links across pages, with automatically generated contentHyperref to the correct entry when using multiple bibliographiesLong caption with listoffigures - breaklink and hyperref issueCalendar instead of table of contentsHow to link to a Theorem that contains only an enumerated listitemize/enumerate - how to turn the very first item of the environment, including the bullet/item-number, into a hyperlink?How to modify the text that prints when cross-referencing a table?How do I link from one piece of text to another within a LaTeX document?













6















I'm using an enumeration with labels assigned to the items.
Referencing to the items it works fine, but in some cases I would like to have "1st" or even "first" instead of just "1", with the former one not being that much of an issue, but as I'm also using hyperref I would like to have "1st" as a link and not only "1"st with the "1" being the link.
But the "first" is more important for me and it should also be a clickable link.
Does anyone have a solution for my issue?



see the MWE here:



documentclass{article}
usepackage[utf8]{inputec}
usepackage[colorlinks=true]{hyperref}
begin{document}
begin{enumerate}
item Item1 label{itm:1}
end{enumerate}
Item ref{itm:1} xyz...\
The ref{itm:1}st item xyz...\
The first item xyz...
end{document}









share|improve this question







New contributor




Andreas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1





    Welcome to TeX - LaTeX!

    – Andrew Swann
    yesterday
















6















I'm using an enumeration with labels assigned to the items.
Referencing to the items it works fine, but in some cases I would like to have "1st" or even "first" instead of just "1", with the former one not being that much of an issue, but as I'm also using hyperref I would like to have "1st" as a link and not only "1"st with the "1" being the link.
But the "first" is more important for me and it should also be a clickable link.
Does anyone have a solution for my issue?



see the MWE here:



documentclass{article}
usepackage[utf8]{inputec}
usepackage[colorlinks=true]{hyperref}
begin{document}
begin{enumerate}
item Item1 label{itm:1}
end{enumerate}
Item ref{itm:1} xyz...\
The ref{itm:1}st item xyz...\
The first item xyz...
end{document}









share|improve this question







New contributor




Andreas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1





    Welcome to TeX - LaTeX!

    – Andrew Swann
    yesterday














6












6








6


0






I'm using an enumeration with labels assigned to the items.
Referencing to the items it works fine, but in some cases I would like to have "1st" or even "first" instead of just "1", with the former one not being that much of an issue, but as I'm also using hyperref I would like to have "1st" as a link and not only "1"st with the "1" being the link.
But the "first" is more important for me and it should also be a clickable link.
Does anyone have a solution for my issue?



see the MWE here:



documentclass{article}
usepackage[utf8]{inputec}
usepackage[colorlinks=true]{hyperref}
begin{document}
begin{enumerate}
item Item1 label{itm:1}
end{enumerate}
Item ref{itm:1} xyz...\
The ref{itm:1}st item xyz...\
The first item xyz...
end{document}









share|improve this question







New contributor




Andreas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I'm using an enumeration with labels assigned to the items.
Referencing to the items it works fine, but in some cases I would like to have "1st" or even "first" instead of just "1", with the former one not being that much of an issue, but as I'm also using hyperref I would like to have "1st" as a link and not only "1"st with the "1" being the link.
But the "first" is more important for me and it should also be a clickable link.
Does anyone have a solution for my issue?



see the MWE here:



documentclass{article}
usepackage[utf8]{inputec}
usepackage[colorlinks=true]{hyperref}
begin{document}
begin{enumerate}
item Item1 label{itm:1}
end{enumerate}
Item ref{itm:1} xyz...\
The ref{itm:1}st item xyz...\
The first item xyz...
end{document}






hyperref






share|improve this question







New contributor




Andreas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




Andreas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




Andreas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked yesterday









AndreasAndreas

334




334




New contributor




Andreas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Andreas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Andreas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 1





    Welcome to TeX - LaTeX!

    – Andrew Swann
    yesterday














  • 1





    Welcome to TeX - LaTeX!

    – Andrew Swann
    yesterday








1




1





Welcome to TeX - LaTeX!

– Andrew Swann
yesterday





Welcome to TeX - LaTeX!

– Andrew Swann
yesterday










2 Answers
2






active

oldest

votes


















6














You can use hyperref to create a link like ref would do (the first argument is an optional argument, but I don't know why):



documentclass{article}
usepackage[utf8]{inputenc}
usepackage[colorlinks=true]{hyperref}
begin{document}
begin{enumerate}
item Item1 label{itm:1}
end{enumerate}
Item ref{itm:1} xyz...\
The ref{itm:1}st item xyz...\
The hyperref[itm:1]{first} item xyz...
end{document}





share|improve this answer
























  • Works like a charm, thanks a lot!

    – Andreas
    yesterday



















7














Building on Ulrike’s answer,



documentclass{article}
usepackage{fmtcount}
usepackage{refcount}
usepackage[colorlinks=true]{hyperref}

newcommand{ordinalref}[1]{%
hyperref[#1]{ordinalstringnum{getrefnumber{#1}}}%
}

begin{document}
begin{enumerate}
item Item1 label{itm:1}
end{enumerate}
Item ref{itm:1} xyz...\
The ordinalref{itm:1} item xyz...\
The first item xyz...
end{document}


It doesn't work for nested items, unless you change the reference format.



enter image description here






share|improve this answer
























  • Thanks, that also looks like a great solution and an even more flexible one than Ulrikes as it's more automated when adding/removing items. But is it possible to define the language for that to something different than english?

    – Andreas
    yesterday








  • 1





    @Andreas fmtcount supports several languages, see its manual.

    – egreg
    yesterday











  • Took some time, but now I've got it working like I want it to, with the german genders, thank you VERY much!

    – Andreas
    yesterday






  • 2





    @UlrikeFischer True, but referring to an ordinal in the case of a nonnumeric reference would sound strange.

    – egreg
    yesterday






  • 1





    In german writing "the first point" (der erste Punkt) for a point that is numbered as a) o i) would be quite natural - it would even work for an itemize. Also the code will also break if you add some formatting, e.g. 1) or Case 1.

    – Ulrike Fischer
    yesterday














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


}
});






Andreas is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f487498%2ffirst-instead-of-1-when-referencing%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









6














You can use hyperref to create a link like ref would do (the first argument is an optional argument, but I don't know why):



documentclass{article}
usepackage[utf8]{inputenc}
usepackage[colorlinks=true]{hyperref}
begin{document}
begin{enumerate}
item Item1 label{itm:1}
end{enumerate}
Item ref{itm:1} xyz...\
The ref{itm:1}st item xyz...\
The hyperref[itm:1]{first} item xyz...
end{document}





share|improve this answer
























  • Works like a charm, thanks a lot!

    – Andreas
    yesterday
















6














You can use hyperref to create a link like ref would do (the first argument is an optional argument, but I don't know why):



documentclass{article}
usepackage[utf8]{inputenc}
usepackage[colorlinks=true]{hyperref}
begin{document}
begin{enumerate}
item Item1 label{itm:1}
end{enumerate}
Item ref{itm:1} xyz...\
The ref{itm:1}st item xyz...\
The hyperref[itm:1]{first} item xyz...
end{document}





share|improve this answer
























  • Works like a charm, thanks a lot!

    – Andreas
    yesterday














6












6








6







You can use hyperref to create a link like ref would do (the first argument is an optional argument, but I don't know why):



documentclass{article}
usepackage[utf8]{inputenc}
usepackage[colorlinks=true]{hyperref}
begin{document}
begin{enumerate}
item Item1 label{itm:1}
end{enumerate}
Item ref{itm:1} xyz...\
The ref{itm:1}st item xyz...\
The hyperref[itm:1]{first} item xyz...
end{document}





share|improve this answer













You can use hyperref to create a link like ref would do (the first argument is an optional argument, but I don't know why):



documentclass{article}
usepackage[utf8]{inputenc}
usepackage[colorlinks=true]{hyperref}
begin{document}
begin{enumerate}
item Item1 label{itm:1}
end{enumerate}
Item ref{itm:1} xyz...\
The ref{itm:1}st item xyz...\
The hyperref[itm:1]{first} item xyz...
end{document}






share|improve this answer












share|improve this answer



share|improve this answer










answered yesterday









Ulrike FischerUlrike Fischer

201k9309695




201k9309695













  • Works like a charm, thanks a lot!

    – Andreas
    yesterday



















  • Works like a charm, thanks a lot!

    – Andreas
    yesterday

















Works like a charm, thanks a lot!

– Andreas
yesterday





Works like a charm, thanks a lot!

– Andreas
yesterday











7














Building on Ulrike’s answer,



documentclass{article}
usepackage{fmtcount}
usepackage{refcount}
usepackage[colorlinks=true]{hyperref}

newcommand{ordinalref}[1]{%
hyperref[#1]{ordinalstringnum{getrefnumber{#1}}}%
}

begin{document}
begin{enumerate}
item Item1 label{itm:1}
end{enumerate}
Item ref{itm:1} xyz...\
The ordinalref{itm:1} item xyz...\
The first item xyz...
end{document}


It doesn't work for nested items, unless you change the reference format.



enter image description here






share|improve this answer
























  • Thanks, that also looks like a great solution and an even more flexible one than Ulrikes as it's more automated when adding/removing items. But is it possible to define the language for that to something different than english?

    – Andreas
    yesterday








  • 1





    @Andreas fmtcount supports several languages, see its manual.

    – egreg
    yesterday











  • Took some time, but now I've got it working like I want it to, with the german genders, thank you VERY much!

    – Andreas
    yesterday






  • 2





    @UlrikeFischer True, but referring to an ordinal in the case of a nonnumeric reference would sound strange.

    – egreg
    yesterday






  • 1





    In german writing "the first point" (der erste Punkt) for a point that is numbered as a) o i) would be quite natural - it would even work for an itemize. Also the code will also break if you add some formatting, e.g. 1) or Case 1.

    – Ulrike Fischer
    yesterday


















7














Building on Ulrike’s answer,



documentclass{article}
usepackage{fmtcount}
usepackage{refcount}
usepackage[colorlinks=true]{hyperref}

newcommand{ordinalref}[1]{%
hyperref[#1]{ordinalstringnum{getrefnumber{#1}}}%
}

begin{document}
begin{enumerate}
item Item1 label{itm:1}
end{enumerate}
Item ref{itm:1} xyz...\
The ordinalref{itm:1} item xyz...\
The first item xyz...
end{document}


It doesn't work for nested items, unless you change the reference format.



enter image description here






share|improve this answer
























  • Thanks, that also looks like a great solution and an even more flexible one than Ulrikes as it's more automated when adding/removing items. But is it possible to define the language for that to something different than english?

    – Andreas
    yesterday








  • 1





    @Andreas fmtcount supports several languages, see its manual.

    – egreg
    yesterday











  • Took some time, but now I've got it working like I want it to, with the german genders, thank you VERY much!

    – Andreas
    yesterday






  • 2





    @UlrikeFischer True, but referring to an ordinal in the case of a nonnumeric reference would sound strange.

    – egreg
    yesterday






  • 1





    In german writing "the first point" (der erste Punkt) for a point that is numbered as a) o i) would be quite natural - it would even work for an itemize. Also the code will also break if you add some formatting, e.g. 1) or Case 1.

    – Ulrike Fischer
    yesterday
















7












7








7







Building on Ulrike’s answer,



documentclass{article}
usepackage{fmtcount}
usepackage{refcount}
usepackage[colorlinks=true]{hyperref}

newcommand{ordinalref}[1]{%
hyperref[#1]{ordinalstringnum{getrefnumber{#1}}}%
}

begin{document}
begin{enumerate}
item Item1 label{itm:1}
end{enumerate}
Item ref{itm:1} xyz...\
The ordinalref{itm:1} item xyz...\
The first item xyz...
end{document}


It doesn't work for nested items, unless you change the reference format.



enter image description here






share|improve this answer













Building on Ulrike’s answer,



documentclass{article}
usepackage{fmtcount}
usepackage{refcount}
usepackage[colorlinks=true]{hyperref}

newcommand{ordinalref}[1]{%
hyperref[#1]{ordinalstringnum{getrefnumber{#1}}}%
}

begin{document}
begin{enumerate}
item Item1 label{itm:1}
end{enumerate}
Item ref{itm:1} xyz...\
The ordinalref{itm:1} item xyz...\
The first item xyz...
end{document}


It doesn't work for nested items, unless you change the reference format.



enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered yesterday









egregegreg

737k8919373265




737k8919373265













  • Thanks, that also looks like a great solution and an even more flexible one than Ulrikes as it's more automated when adding/removing items. But is it possible to define the language for that to something different than english?

    – Andreas
    yesterday








  • 1





    @Andreas fmtcount supports several languages, see its manual.

    – egreg
    yesterday











  • Took some time, but now I've got it working like I want it to, with the german genders, thank you VERY much!

    – Andreas
    yesterday






  • 2





    @UlrikeFischer True, but referring to an ordinal in the case of a nonnumeric reference would sound strange.

    – egreg
    yesterday






  • 1





    In german writing "the first point" (der erste Punkt) for a point that is numbered as a) o i) would be quite natural - it would even work for an itemize. Also the code will also break if you add some formatting, e.g. 1) or Case 1.

    – Ulrike Fischer
    yesterday





















  • Thanks, that also looks like a great solution and an even more flexible one than Ulrikes as it's more automated when adding/removing items. But is it possible to define the language for that to something different than english?

    – Andreas
    yesterday








  • 1





    @Andreas fmtcount supports several languages, see its manual.

    – egreg
    yesterday











  • Took some time, but now I've got it working like I want it to, with the german genders, thank you VERY much!

    – Andreas
    yesterday






  • 2





    @UlrikeFischer True, but referring to an ordinal in the case of a nonnumeric reference would sound strange.

    – egreg
    yesterday






  • 1





    In german writing "the first point" (der erste Punkt) for a point that is numbered as a) o i) would be quite natural - it would even work for an itemize. Also the code will also break if you add some formatting, e.g. 1) or Case 1.

    – Ulrike Fischer
    yesterday



















Thanks, that also looks like a great solution and an even more flexible one than Ulrikes as it's more automated when adding/removing items. But is it possible to define the language for that to something different than english?

– Andreas
yesterday







Thanks, that also looks like a great solution and an even more flexible one than Ulrikes as it's more automated when adding/removing items. But is it possible to define the language for that to something different than english?

– Andreas
yesterday






1




1





@Andreas fmtcount supports several languages, see its manual.

– egreg
yesterday





@Andreas fmtcount supports several languages, see its manual.

– egreg
yesterday













Took some time, but now I've got it working like I want it to, with the german genders, thank you VERY much!

– Andreas
yesterday





Took some time, but now I've got it working like I want it to, with the german genders, thank you VERY much!

– Andreas
yesterday




2




2





@UlrikeFischer True, but referring to an ordinal in the case of a nonnumeric reference would sound strange.

– egreg
yesterday





@UlrikeFischer True, but referring to an ordinal in the case of a nonnumeric reference would sound strange.

– egreg
yesterday




1




1





In german writing "the first point" (der erste Punkt) for a point that is numbered as a) o i) would be quite natural - it would even work for an itemize. Also the code will also break if you add some formatting, e.g. 1) or Case 1.

– Ulrike Fischer
yesterday







In german writing "the first point" (der erste Punkt) for a point that is numbered as a) o i) would be quite natural - it would even work for an itemize. Also the code will also break if you add some formatting, e.g. 1) or Case 1.

– Ulrike Fischer
yesterday












Andreas is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















Andreas is a new contributor. Be nice, and check out our Code of Conduct.













Andreas is a new contributor. Be nice, and check out our Code of Conduct.












Andreas is a new contributor. Be nice, and check out our Code of Conduct.
















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%2f487498%2ffirst-instead-of-1-when-referencing%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

VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

Tribunal Administrativo e Fiscal de Mirandela Referências Menu de...

looking for continuous Screen Capture for retroactivly reproducing errors, timeback machineRolling desktop...