Refer to page numbers where table is referencedHow does one extract specific attributes of a label e.g. just...
Is there really no use for MD5 anymore?
Repelling Blast: Must targets always be pushed back?
Rivers without rain
Does Gita support doctrine of eternal cycle of birth and death for evil people?
Who is the Umpire in this picture?
Do I have an "anti-research" personality?
Why other Westeros houses don't use wildfire?
How to creep the reader out with what seems like a normal person?
Mac Pro install disk keeps ejecting itself
Binary Numbers Magic Trick
Controversial area of mathematics
Can someone publish a story that happened to you?
Do I have to worry about players making “bad” choices on level up?
Does a semiconductor follow Ohm's law?
How to make a pipeline wait for end-of-file or stop after an error?
What does it mean to express a gate in Dirac notation?
Why isn't the definition of absolute value applied when squaring a radical containing a variable?
Pulling the rope with one hand is as heavy as with two hands?
What do the phrase "Reeyan's seacrest" and the word "fraggle" mean in a sketch?
What was the first Intel x86 processor with "Base + Index * Scale + Displacement" addressing mode?
How can the Zone of Truth spell be defeated without the caster knowing?
Phrase for the opposite of "foolproof"
Apply MapThread to all but one variable
Does holding a wand and speaking its command word count as V/S/M spell components?
Refer to page numbers where table is referenced
How does one extract specific attributes of a label e.g. just the section number?ref, make figure/table reference automatically toggle between “above” or “below”Refer to a specific page of a multipage objectHow to cross-reference another documentHow do I label and refer to a specific row of a table?Wrong page reference of bibliographyCross-reference referenced page in captionForce floats to appear where referencedHow to define a name for paragraphs referenced by autorefHow to display a chapter / section reference in the pattern (chapter n section m), where n is the chapter number and m the section path
I'm using autoref to refer to tables in the text, e.g.
In
autoref{tab:main_result}
, you can see ...
I'd like to be able to refer to a variable that lists the pages that tab:main_result
is called on. The ultimate goal is to be able to put that reference in the table note (e.g. "For discussion of this table, see page XX").
Is this possible? I know that I could refer to the section in the table notes, but I'd like to be able to refer to the page.
cross-referencing
New contributor
add a comment |
I'm using autoref to refer to tables in the text, e.g.
In
autoref{tab:main_result}
, you can see ...
I'd like to be able to refer to a variable that lists the pages that tab:main_result
is called on. The ultimate goal is to be able to put that reference in the table note (e.g. "For discussion of this table, see page XX").
Is this possible? I know that I could refer to the section in the table notes, but I'd like to be able to refer to the page.
cross-referencing
New contributor
How aboutpageref{tab:main_result}
?
– marmot
20 hours ago
That references the page the table is on, not the page the table is referred to on.
– texxx
20 hours ago
AFAICT, LaTeX doesn't provide any built-in facilities for keep tracking of where some item (e.g., atable
) is being cross-referenced elsewhere in the document. A preprocessor approach might offer a viable solution. pdfLaTeX and XeLaTeX don't provide a built-in preprocessor facility, but LuaLaTeX does. Are you able to switch to and use LuaLaTeX?
– Mico
14 hours ago
add a comment |
I'm using autoref to refer to tables in the text, e.g.
In
autoref{tab:main_result}
, you can see ...
I'd like to be able to refer to a variable that lists the pages that tab:main_result
is called on. The ultimate goal is to be able to put that reference in the table note (e.g. "For discussion of this table, see page XX").
Is this possible? I know that I could refer to the section in the table notes, but I'd like to be able to refer to the page.
cross-referencing
New contributor
I'm using autoref to refer to tables in the text, e.g.
In
autoref{tab:main_result}
, you can see ...
I'd like to be able to refer to a variable that lists the pages that tab:main_result
is called on. The ultimate goal is to be able to put that reference in the table note (e.g. "For discussion of this table, see page XX").
Is this possible? I know that I could refer to the section in the table notes, but I'd like to be able to refer to the page.
cross-referencing
cross-referencing
New contributor
New contributor
edited 21 hours ago
siracusa
5,39311429
5,39311429
New contributor
asked 21 hours ago
texxxtexxx
211
211
New contributor
New contributor
How aboutpageref{tab:main_result}
?
– marmot
20 hours ago
That references the page the table is on, not the page the table is referred to on.
– texxx
20 hours ago
AFAICT, LaTeX doesn't provide any built-in facilities for keep tracking of where some item (e.g., atable
) is being cross-referenced elsewhere in the document. A preprocessor approach might offer a viable solution. pdfLaTeX and XeLaTeX don't provide a built-in preprocessor facility, but LuaLaTeX does. Are you able to switch to and use LuaLaTeX?
– Mico
14 hours ago
add a comment |
How aboutpageref{tab:main_result}
?
– marmot
20 hours ago
That references the page the table is on, not the page the table is referred to on.
– texxx
20 hours ago
AFAICT, LaTeX doesn't provide any built-in facilities for keep tracking of where some item (e.g., atable
) is being cross-referenced elsewhere in the document. A preprocessor approach might offer a viable solution. pdfLaTeX and XeLaTeX don't provide a built-in preprocessor facility, but LuaLaTeX does. Are you able to switch to and use LuaLaTeX?
– Mico
14 hours ago
How about
pageref{tab:main_result}
?– marmot
20 hours ago
How about
pageref{tab:main_result}
?– marmot
20 hours ago
That references the page the table is on, not the page the table is referred to on.
– texxx
20 hours ago
That references the page the table is on, not the page the table is referred to on.
– texxx
20 hours ago
AFAICT, LaTeX doesn't provide any built-in facilities for keep tracking of where some item (e.g., a
table
) is being cross-referenced elsewhere in the document. A preprocessor approach might offer a viable solution. pdfLaTeX and XeLaTeX don't provide a built-in preprocessor facility, but LuaLaTeX does. Are you able to switch to and use LuaLaTeX?– Mico
14 hours ago
AFAICT, LaTeX doesn't provide any built-in facilities for keep tracking of where some item (e.g., a
table
) is being cross-referenced elsewhere in the document. A preprocessor approach might offer a viable solution. pdfLaTeX and XeLaTeX don't provide a built-in preprocessor facility, but LuaLaTeX does. Are you able to switch to and use LuaLaTeX?– Mico
14 hours ago
add a comment |
2 Answers
2
active
oldest
votes
Something like this?
documentclass{article}
usepackage{varioref}
usepackage[colorlinks]{hyperref}
usepackage[noabbrev]{cleveref}
begin{document}
begin{table} caption{A}label{tab:main} end{table}
clearpage null clearpage
In vref{tab:main}, you can see dots
For a discussion of cref{tab:main}, see cpageref{tab:main}.
end{document}
add a comment |
When I first read this I thought that the question was asking for a command that gave the list of pages that contain a reference to a given table. That is, an analogue of backref for autoref
instead of for cite
. Rereading the question it probably does not ask for this but, nonetheless, I thought this an interesting question and the code below is one way of providing this functionality.
The code works by redefining the autoref
command so that whenever it is called it first adds the current page number to a corresponding latex3 sequence. At the end of the document this sequence is saved to the aux file. Once the document has been compiled at least once the command pagerefs{...}
can be used to print the list of pages that the reference appears on. So, for example, the MWE below produces:
Here is the code:
documentclass{article}
usepackage{lipsum}
usepackage{etoolbox}
usepackage{xparse}
usepackage{hyperref}
ExplSyntaxOn
NewDocumentCommandPageReferences{mm}{
seq_if_exist:cF {g__pages_#1_seq}{
seq_new:c {g__pages_#1_seq}
seq_gset_from_clist:cn {g__pages_#1_seq} {#2}
}
}
RenewDocumentCommandautoref{sm}{
seq_if_exist:cF {g_pages_#2_seq}{
seq_new:c {g_pages_#2_seq}
AtEndDocument{
iow_now:cx { @auxout } {
token_to_str:N PageReferences{#2} { seq_use:cn {g_pages_#2_seq}{,}}
}
}
}
seq_if_in:cxF {g_pages_#2_seq} {thepage} {
seq_gput_right:cx {g_pages_#2_seq} {thepage}
}
% now call the real autoref, which is really HyPsd@autoref
IfBooleanTF{#1}{csuse{HyPsd@autoref}*{#2}}{csuse{HyPsd@autoref}{#2}}
}
NewDocumentCommandpagerefs{m}{
seq_if_exist:cTF {g__pages_#1_seq}{
seq_use:cnnn {g__pages_#1_seq} { ~and~ } { ,~ } { ,~and~ }
}{??}
}
ExplSyntaxOff
begin{document}
begin{equation}label{E:1} 1+1=2 end{equation}
Look at autoref{E:1}! It occurs on pages pagerefs{E:1}.
lipsum
Look at autoref{E:1}
lipsum
Look at autoref{E:1}
lipsum
Look at autoref{E:1}
lipsum
Look at autoref{E:1}
lipsum
Look at autoref{E:1}
lipsum
end{document}
Your answer is fine and gives what is seams that OP looking for, however, i can't imagine why someone will repeat the same equation with the same label many times in a document. This, to my opinion, only confuse readers :-(.
– Zarko
14 hours ago
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
});
}
});
texxx 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%2f487858%2frefer-to-page-numbers-where-table-is-referenced%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
Something like this?
documentclass{article}
usepackage{varioref}
usepackage[colorlinks]{hyperref}
usepackage[noabbrev]{cleveref}
begin{document}
begin{table} caption{A}label{tab:main} end{table}
clearpage null clearpage
In vref{tab:main}, you can see dots
For a discussion of cref{tab:main}, see cpageref{tab:main}.
end{document}
add a comment |
Something like this?
documentclass{article}
usepackage{varioref}
usepackage[colorlinks]{hyperref}
usepackage[noabbrev]{cleveref}
begin{document}
begin{table} caption{A}label{tab:main} end{table}
clearpage null clearpage
In vref{tab:main}, you can see dots
For a discussion of cref{tab:main}, see cpageref{tab:main}.
end{document}
add a comment |
Something like this?
documentclass{article}
usepackage{varioref}
usepackage[colorlinks]{hyperref}
usepackage[noabbrev]{cleveref}
begin{document}
begin{table} caption{A}label{tab:main} end{table}
clearpage null clearpage
In vref{tab:main}, you can see dots
For a discussion of cref{tab:main}, see cpageref{tab:main}.
end{document}
Something like this?
documentclass{article}
usepackage{varioref}
usepackage[colorlinks]{hyperref}
usepackage[noabbrev]{cleveref}
begin{document}
begin{table} caption{A}label{tab:main} end{table}
clearpage null clearpage
In vref{tab:main}, you can see dots
For a discussion of cref{tab:main}, see cpageref{tab:main}.
end{document}
answered 19 hours ago
MicoMico
288k32394782
288k32394782
add a comment |
add a comment |
When I first read this I thought that the question was asking for a command that gave the list of pages that contain a reference to a given table. That is, an analogue of backref for autoref
instead of for cite
. Rereading the question it probably does not ask for this but, nonetheless, I thought this an interesting question and the code below is one way of providing this functionality.
The code works by redefining the autoref
command so that whenever it is called it first adds the current page number to a corresponding latex3 sequence. At the end of the document this sequence is saved to the aux file. Once the document has been compiled at least once the command pagerefs{...}
can be used to print the list of pages that the reference appears on. So, for example, the MWE below produces:
Here is the code:
documentclass{article}
usepackage{lipsum}
usepackage{etoolbox}
usepackage{xparse}
usepackage{hyperref}
ExplSyntaxOn
NewDocumentCommandPageReferences{mm}{
seq_if_exist:cF {g__pages_#1_seq}{
seq_new:c {g__pages_#1_seq}
seq_gset_from_clist:cn {g__pages_#1_seq} {#2}
}
}
RenewDocumentCommandautoref{sm}{
seq_if_exist:cF {g_pages_#2_seq}{
seq_new:c {g_pages_#2_seq}
AtEndDocument{
iow_now:cx { @auxout } {
token_to_str:N PageReferences{#2} { seq_use:cn {g_pages_#2_seq}{,}}
}
}
}
seq_if_in:cxF {g_pages_#2_seq} {thepage} {
seq_gput_right:cx {g_pages_#2_seq} {thepage}
}
% now call the real autoref, which is really HyPsd@autoref
IfBooleanTF{#1}{csuse{HyPsd@autoref}*{#2}}{csuse{HyPsd@autoref}{#2}}
}
NewDocumentCommandpagerefs{m}{
seq_if_exist:cTF {g__pages_#1_seq}{
seq_use:cnnn {g__pages_#1_seq} { ~and~ } { ,~ } { ,~and~ }
}{??}
}
ExplSyntaxOff
begin{document}
begin{equation}label{E:1} 1+1=2 end{equation}
Look at autoref{E:1}! It occurs on pages pagerefs{E:1}.
lipsum
Look at autoref{E:1}
lipsum
Look at autoref{E:1}
lipsum
Look at autoref{E:1}
lipsum
Look at autoref{E:1}
lipsum
Look at autoref{E:1}
lipsum
end{document}
Your answer is fine and gives what is seams that OP looking for, however, i can't imagine why someone will repeat the same equation with the same label many times in a document. This, to my opinion, only confuse readers :-(.
– Zarko
14 hours ago
add a comment |
When I first read this I thought that the question was asking for a command that gave the list of pages that contain a reference to a given table. That is, an analogue of backref for autoref
instead of for cite
. Rereading the question it probably does not ask for this but, nonetheless, I thought this an interesting question and the code below is one way of providing this functionality.
The code works by redefining the autoref
command so that whenever it is called it first adds the current page number to a corresponding latex3 sequence. At the end of the document this sequence is saved to the aux file. Once the document has been compiled at least once the command pagerefs{...}
can be used to print the list of pages that the reference appears on. So, for example, the MWE below produces:
Here is the code:
documentclass{article}
usepackage{lipsum}
usepackage{etoolbox}
usepackage{xparse}
usepackage{hyperref}
ExplSyntaxOn
NewDocumentCommandPageReferences{mm}{
seq_if_exist:cF {g__pages_#1_seq}{
seq_new:c {g__pages_#1_seq}
seq_gset_from_clist:cn {g__pages_#1_seq} {#2}
}
}
RenewDocumentCommandautoref{sm}{
seq_if_exist:cF {g_pages_#2_seq}{
seq_new:c {g_pages_#2_seq}
AtEndDocument{
iow_now:cx { @auxout } {
token_to_str:N PageReferences{#2} { seq_use:cn {g_pages_#2_seq}{,}}
}
}
}
seq_if_in:cxF {g_pages_#2_seq} {thepage} {
seq_gput_right:cx {g_pages_#2_seq} {thepage}
}
% now call the real autoref, which is really HyPsd@autoref
IfBooleanTF{#1}{csuse{HyPsd@autoref}*{#2}}{csuse{HyPsd@autoref}{#2}}
}
NewDocumentCommandpagerefs{m}{
seq_if_exist:cTF {g__pages_#1_seq}{
seq_use:cnnn {g__pages_#1_seq} { ~and~ } { ,~ } { ,~and~ }
}{??}
}
ExplSyntaxOff
begin{document}
begin{equation}label{E:1} 1+1=2 end{equation}
Look at autoref{E:1}! It occurs on pages pagerefs{E:1}.
lipsum
Look at autoref{E:1}
lipsum
Look at autoref{E:1}
lipsum
Look at autoref{E:1}
lipsum
Look at autoref{E:1}
lipsum
Look at autoref{E:1}
lipsum
end{document}
Your answer is fine and gives what is seams that OP looking for, however, i can't imagine why someone will repeat the same equation with the same label many times in a document. This, to my opinion, only confuse readers :-(.
– Zarko
14 hours ago
add a comment |
When I first read this I thought that the question was asking for a command that gave the list of pages that contain a reference to a given table. That is, an analogue of backref for autoref
instead of for cite
. Rereading the question it probably does not ask for this but, nonetheless, I thought this an interesting question and the code below is one way of providing this functionality.
The code works by redefining the autoref
command so that whenever it is called it first adds the current page number to a corresponding latex3 sequence. At the end of the document this sequence is saved to the aux file. Once the document has been compiled at least once the command pagerefs{...}
can be used to print the list of pages that the reference appears on. So, for example, the MWE below produces:
Here is the code:
documentclass{article}
usepackage{lipsum}
usepackage{etoolbox}
usepackage{xparse}
usepackage{hyperref}
ExplSyntaxOn
NewDocumentCommandPageReferences{mm}{
seq_if_exist:cF {g__pages_#1_seq}{
seq_new:c {g__pages_#1_seq}
seq_gset_from_clist:cn {g__pages_#1_seq} {#2}
}
}
RenewDocumentCommandautoref{sm}{
seq_if_exist:cF {g_pages_#2_seq}{
seq_new:c {g_pages_#2_seq}
AtEndDocument{
iow_now:cx { @auxout } {
token_to_str:N PageReferences{#2} { seq_use:cn {g_pages_#2_seq}{,}}
}
}
}
seq_if_in:cxF {g_pages_#2_seq} {thepage} {
seq_gput_right:cx {g_pages_#2_seq} {thepage}
}
% now call the real autoref, which is really HyPsd@autoref
IfBooleanTF{#1}{csuse{HyPsd@autoref}*{#2}}{csuse{HyPsd@autoref}{#2}}
}
NewDocumentCommandpagerefs{m}{
seq_if_exist:cTF {g__pages_#1_seq}{
seq_use:cnnn {g__pages_#1_seq} { ~and~ } { ,~ } { ,~and~ }
}{??}
}
ExplSyntaxOff
begin{document}
begin{equation}label{E:1} 1+1=2 end{equation}
Look at autoref{E:1}! It occurs on pages pagerefs{E:1}.
lipsum
Look at autoref{E:1}
lipsum
Look at autoref{E:1}
lipsum
Look at autoref{E:1}
lipsum
Look at autoref{E:1}
lipsum
Look at autoref{E:1}
lipsum
end{document}
When I first read this I thought that the question was asking for a command that gave the list of pages that contain a reference to a given table. That is, an analogue of backref for autoref
instead of for cite
. Rereading the question it probably does not ask for this but, nonetheless, I thought this an interesting question and the code below is one way of providing this functionality.
The code works by redefining the autoref
command so that whenever it is called it first adds the current page number to a corresponding latex3 sequence. At the end of the document this sequence is saved to the aux file. Once the document has been compiled at least once the command pagerefs{...}
can be used to print the list of pages that the reference appears on. So, for example, the MWE below produces:
Here is the code:
documentclass{article}
usepackage{lipsum}
usepackage{etoolbox}
usepackage{xparse}
usepackage{hyperref}
ExplSyntaxOn
NewDocumentCommandPageReferences{mm}{
seq_if_exist:cF {g__pages_#1_seq}{
seq_new:c {g__pages_#1_seq}
seq_gset_from_clist:cn {g__pages_#1_seq} {#2}
}
}
RenewDocumentCommandautoref{sm}{
seq_if_exist:cF {g_pages_#2_seq}{
seq_new:c {g_pages_#2_seq}
AtEndDocument{
iow_now:cx { @auxout } {
token_to_str:N PageReferences{#2} { seq_use:cn {g_pages_#2_seq}{,}}
}
}
}
seq_if_in:cxF {g_pages_#2_seq} {thepage} {
seq_gput_right:cx {g_pages_#2_seq} {thepage}
}
% now call the real autoref, which is really HyPsd@autoref
IfBooleanTF{#1}{csuse{HyPsd@autoref}*{#2}}{csuse{HyPsd@autoref}{#2}}
}
NewDocumentCommandpagerefs{m}{
seq_if_exist:cTF {g__pages_#1_seq}{
seq_use:cnnn {g__pages_#1_seq} { ~and~ } { ,~ } { ,~and~ }
}{??}
}
ExplSyntaxOff
begin{document}
begin{equation}label{E:1} 1+1=2 end{equation}
Look at autoref{E:1}! It occurs on pages pagerefs{E:1}.
lipsum
Look at autoref{E:1}
lipsum
Look at autoref{E:1}
lipsum
Look at autoref{E:1}
lipsum
Look at autoref{E:1}
lipsum
Look at autoref{E:1}
lipsum
end{document}
answered 15 hours ago
AndrewAndrew
31.5k34483
31.5k34483
Your answer is fine and gives what is seams that OP looking for, however, i can't imagine why someone will repeat the same equation with the same label many times in a document. This, to my opinion, only confuse readers :-(.
– Zarko
14 hours ago
add a comment |
Your answer is fine and gives what is seams that OP looking for, however, i can't imagine why someone will repeat the same equation with the same label many times in a document. This, to my opinion, only confuse readers :-(.
– Zarko
14 hours ago
Your answer is fine and gives what is seams that OP looking for, however, i can't imagine why someone will repeat the same equation with the same label many times in a document. This, to my opinion, only confuse readers :-(.
– Zarko
14 hours ago
Your answer is fine and gives what is seams that OP looking for, however, i can't imagine why someone will repeat the same equation with the same label many times in a document. This, to my opinion, only confuse readers :-(.
– Zarko
14 hours ago
add a comment |
texxx is a new contributor. Be nice, and check out our Code of Conduct.
texxx is a new contributor. Be nice, and check out our Code of Conduct.
texxx is a new contributor. Be nice, and check out our Code of Conduct.
texxx 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%2f487858%2frefer-to-page-numbers-where-table-is-referenced%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
How about
pageref{tab:main_result}
?– marmot
20 hours ago
That references the page the table is on, not the page the table is referred to on.
– texxx
20 hours ago
AFAICT, LaTeX doesn't provide any built-in facilities for keep tracking of where some item (e.g., a
table
) is being cross-referenced elsewhere in the document. A preprocessor approach might offer a viable solution. pdfLaTeX and XeLaTeX don't provide a built-in preprocessor facility, but LuaLaTeX does. Are you able to switch to and use LuaLaTeX?– Mico
14 hours ago