First instead of 1 when referencinghyperlinks in biblatexpageref points to wrong page number(Avoid) hyperref...
How much of a wave function must reside inside event horizon for it to be consumed by the black hole?
Why doesn't the standard consider a template constructor as a copy constructor?
What is the unit of time_lock_delta in LND?
Why didn't the Space Shuttle bounce back into space as many times as possible so as to lose a lot of kinetic energy up there?
My bank got bought out, am I now going to have to start filing tax returns in a different state?
Is Electric Central Heating worth it if using Solar Panels?
Contradiction proof for inequality of P and NP?
Is there a word for the censored part of a video?
Retract an already submitted recommendation letter (written for an undergrad student)
A Paper Record is What I Hamper
Will I lose my paid in full property
A strange hotel
What is this word supposed to be?
Multiple fireplaces in an apartment building?
Nails holding drywall
How can I practically buy stocks?
Can I criticise the more senior developers around me for not writing clean code?
Was Dennis Ritchie being too modest in this quote about C and Pascal?
How bug prioritization works in agile projects vs non agile
What is the most expensive material in the world that could be used to create Pun-Pun's lute?
Where was the County of Thurn und Taxis located?
Can a stored procedure reference the database in which it is stored?
How can I wire a 9-position switch so that each position turns on one more LED than the one before?
Are there moral objections to a life motivated purely by money? How to sway a person from this lifestyle?
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?
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
New contributor
add a comment |
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
New contributor
1
Welcome to TeX - LaTeX!
– Andrew Swann
18 hours ago
add a comment |
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
New contributor
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
hyperref
New contributor
New contributor
New contributor
asked 18 hours ago
AndreasAndreas
334
334
New contributor
New contributor
1
Welcome to TeX - LaTeX!
– Andrew Swann
18 hours ago
add a comment |
1
Welcome to TeX - LaTeX!
– Andrew Swann
18 hours ago
1
1
Welcome to TeX - LaTeX!
– Andrew Swann
18 hours ago
Welcome to TeX - LaTeX!
– Andrew Swann
18 hours ago
add a comment |
2 Answers
2
active
oldest
votes
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}
Works like a charm, thanks a lot!
– Andreas
18 hours ago
add a comment |
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.
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
14 hours ago
1
@Andreasfmtcount
supports several languages, see its manual.
– egreg
14 hours ago
Took some time, but now I've got it working like I want it to, with the german genders, thank you VERY much!
– Andreas
13 hours ago
This won't work if you change the numbering in the enumerate e.g. to alph or roman, or in a nested enumerate (which uses (a) as label). It would be imho better to use zref instead of refcount for something like this.
– Ulrike Fischer
13 hours ago
2
@UlrikeFischer True, but referring to an ordinal in the case of a nonnumeric reference would sound strange.
– egreg
12 hours ago
|
show 1 more 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
});
}
});
Andreas is a new contributor. Be nice, and check out our Code of Conduct.
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%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
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}
Works like a charm, thanks a lot!
– Andreas
18 hours ago
add a comment |
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}
Works like a charm, thanks a lot!
– Andreas
18 hours ago
add a comment |
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}
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}
answered 18 hours ago
Ulrike FischerUlrike Fischer
201k9309695
201k9309695
Works like a charm, thanks a lot!
– Andreas
18 hours ago
add a comment |
Works like a charm, thanks a lot!
– Andreas
18 hours ago
Works like a charm, thanks a lot!
– Andreas
18 hours ago
Works like a charm, thanks a lot!
– Andreas
18 hours ago
add a comment |
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.
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
14 hours ago
1
@Andreasfmtcount
supports several languages, see its manual.
– egreg
14 hours ago
Took some time, but now I've got it working like I want it to, with the german genders, thank you VERY much!
– Andreas
13 hours ago
This won't work if you change the numbering in the enumerate e.g. to alph or roman, or in a nested enumerate (which uses (a) as label). It would be imho better to use zref instead of refcount for something like this.
– Ulrike Fischer
13 hours ago
2
@UlrikeFischer True, but referring to an ordinal in the case of a nonnumeric reference would sound strange.
– egreg
12 hours ago
|
show 1 more comment
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.
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
14 hours ago
1
@Andreasfmtcount
supports several languages, see its manual.
– egreg
14 hours ago
Took some time, but now I've got it working like I want it to, with the german genders, thank you VERY much!
– Andreas
13 hours ago
This won't work if you change the numbering in the enumerate e.g. to alph or roman, or in a nested enumerate (which uses (a) as label). It would be imho better to use zref instead of refcount for something like this.
– Ulrike Fischer
13 hours ago
2
@UlrikeFischer True, but referring to an ordinal in the case of a nonnumeric reference would sound strange.
– egreg
12 hours ago
|
show 1 more comment
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.
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.
answered 15 hours ago
egregegreg
737k8919363264
737k8919363264
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
14 hours ago
1
@Andreasfmtcount
supports several languages, see its manual.
– egreg
14 hours ago
Took some time, but now I've got it working like I want it to, with the german genders, thank you VERY much!
– Andreas
13 hours ago
This won't work if you change the numbering in the enumerate e.g. to alph or roman, or in a nested enumerate (which uses (a) as label). It would be imho better to use zref instead of refcount for something like this.
– Ulrike Fischer
13 hours ago
2
@UlrikeFischer True, but referring to an ordinal in the case of a nonnumeric reference would sound strange.
– egreg
12 hours ago
|
show 1 more comment
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
14 hours ago
1
@Andreasfmtcount
supports several languages, see its manual.
– egreg
14 hours ago
Took some time, but now I've got it working like I want it to, with the german genders, thank you VERY much!
– Andreas
13 hours ago
This won't work if you change the numbering in the enumerate e.g. to alph or roman, or in a nested enumerate (which uses (a) as label). It would be imho better to use zref instead of refcount for something like this.
– Ulrike Fischer
13 hours ago
2
@UlrikeFischer True, but referring to an ordinal in the case of a nonnumeric reference would sound strange.
– egreg
12 hours ago
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
14 hours ago
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
14 hours ago
1
1
@Andreas
fmtcount
supports several languages, see its manual.– egreg
14 hours ago
@Andreas
fmtcount
supports several languages, see its manual.– egreg
14 hours ago
Took some time, but now I've got it working like I want it to, with the german genders, thank you VERY much!
– Andreas
13 hours ago
Took some time, but now I've got it working like I want it to, with the german genders, thank you VERY much!
– Andreas
13 hours ago
This won't work if you change the numbering in the enumerate e.g. to alph or roman, or in a nested enumerate (which uses (a) as label). It would be imho better to use zref instead of refcount for something like this.
– Ulrike Fischer
13 hours ago
This won't work if you change the numbering in the enumerate e.g. to alph or roman, or in a nested enumerate (which uses (a) as label). It would be imho better to use zref instead of refcount for something like this.
– Ulrike Fischer
13 hours ago
2
2
@UlrikeFischer True, but referring to an ordinal in the case of a nonnumeric reference would sound strange.
– egreg
12 hours ago
@UlrikeFischer True, but referring to an ordinal in the case of a nonnumeric reference would sound strange.
– egreg
12 hours ago
|
show 1 more comment
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.
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.
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%2f487498%2ffirst-instead-of-1-when-referencing%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
1
Welcome to TeX - LaTeX!
– Andrew Swann
18 hours ago