Referencing tables when they are inside `onlyenv`
My friend sent me a screenshot of a transaction hash, but when I search for it I find divergent data. What happened?
Is it possible to have a strip of cold climate in the middle of a planet?
List of people who lose a child in תנ"ך
Is there a word to describe the feeling of being transfixed out of horror?
Transformation of random variables and joint distributions
Does the Mind Blank spell prevent the target from being frightened?
Diode in opposite direction?
Longest common substring in linear time
Can I Retrieve Email Addresses from BCC?
Would it be legal for a US State to ban exports of a natural resource?
How can Trident be so inexpensive? Will it orbit Triton or just do a (slow) flyby?
Can I rely on this github repository files?
Have I saved too much for retirement so far?
Is XSS in canonical link possible?
Query about absorption line spectra
Drawing a topological "handle" with Tikz
Why in book's example is used 言葉(ことば) instead of 言語(げんご)?
Melting point of aspirin, contradicting sources
Is possible to search in vim history?
Open a doc from terminal, but not by its name
Global amount of publications over time
Divine apple island
Drawing ramified coverings with tikz
THT: What is a squared annular “ring”?
Referencing tables when they are inside `onlyenv`
It seems that I cannot reference tables when they are placed inside onlyenv
, but . This applies to both of cref
and the traditional ref
Here is the MWE. When you try to run it, you must do so twice to get the real result.
documentclass[aspectratio=169, xcolor={x11names}]{beamer}
usecolortheme{seahorse}
useoutertheme{miniframes}
useinnertheme{inmargin}
usefonttheme[onlylarge]{structurebold}
setbeamertemplate{caption}[numbered]
% Command to change margins for a page wide
makeatletter
newcommand{framePageWide}{
defGm@lmargin{5mm}%
defGm@rmargin{5mm}%
textwidth=dimexprpaperwidth-Gm@lmargin-Gm@rmarginrelax
hsizetextwidth
columnwidthtextwidth
setlength{linewidth}{textwidth}
hoffset=dimexpr-beamer@leftsidebar+Gm@lmargin-0mmrelax
}
makeatother
newcommand{framePageWideEnumI}{setlength{leftmargini}{10mm}}
usepackage{adjustbox}
usepackage{ragged2e}
usepackage{tabularx}
% BEGIN_FOLD
newcolumntype{C}{ >{arraybackslash Centering}X }
newcommand{scalelinespace}[1]{
rule{0pt}{#1normalbaselineskip}
}
% END_FOLD
usepackage{booktabs}
usepackage{makecell}
usepackage{amsmath}
usepackage{amssymb, amsfonts}
usepackage{cleveref}
crefformat{table}{Table #1}
begin{document}
{framePageWide
begin{frame}{Tables}
begin{onlyenv}<1>
framePageWideEnumI
begin{itemize}
item Item 1
item Item 2
end{itemize}
end{onlyenv}
begin{onlyenv}<2>
begin{table}
begin{adjustbox}{minipage={0.5textwidth}, valign=t}
caption{Time, in seconds, needed to calculate a single ${Z}_{bus}$ Element}
label{table:results2}
begin{tabularx}{linewidth}{c C C}
toprule
System Size & Our Method & Brown's Method
\
addlinespace
200-bus & $4.3times10^{-6}$ & $0.092$
\
Xhline{0.25mm}
2383-bus & $3.8times10^{-6}$ & $166.2$
\
Xhline{0.25mm}
3120-bus & $3.2times10^{-6}$ & $398.8$
\
bottomrule
end{tabularx}
end{adjustbox}
hfill
begin{adjustbox}{minipage={0.43textwidth}, valign=t}
From cref{table:results2} we see that
begin{itemize}
item Our method is fast
item By contrast, Brown's becomes very slow when the system is large
end{itemize}
end{adjustbox}
end{table}
end{onlyenv}
end{frame}
}
end{document}
beamer cross-referencing cleveref
add a comment |
It seems that I cannot reference tables when they are placed inside onlyenv
, but . This applies to both of cref
and the traditional ref
Here is the MWE. When you try to run it, you must do so twice to get the real result.
documentclass[aspectratio=169, xcolor={x11names}]{beamer}
usecolortheme{seahorse}
useoutertheme{miniframes}
useinnertheme{inmargin}
usefonttheme[onlylarge]{structurebold}
setbeamertemplate{caption}[numbered]
% Command to change margins for a page wide
makeatletter
newcommand{framePageWide}{
defGm@lmargin{5mm}%
defGm@rmargin{5mm}%
textwidth=dimexprpaperwidth-Gm@lmargin-Gm@rmarginrelax
hsizetextwidth
columnwidthtextwidth
setlength{linewidth}{textwidth}
hoffset=dimexpr-beamer@leftsidebar+Gm@lmargin-0mmrelax
}
makeatother
newcommand{framePageWideEnumI}{setlength{leftmargini}{10mm}}
usepackage{adjustbox}
usepackage{ragged2e}
usepackage{tabularx}
% BEGIN_FOLD
newcolumntype{C}{ >{arraybackslash Centering}X }
newcommand{scalelinespace}[1]{
rule{0pt}{#1normalbaselineskip}
}
% END_FOLD
usepackage{booktabs}
usepackage{makecell}
usepackage{amsmath}
usepackage{amssymb, amsfonts}
usepackage{cleveref}
crefformat{table}{Table #1}
begin{document}
{framePageWide
begin{frame}{Tables}
begin{onlyenv}<1>
framePageWideEnumI
begin{itemize}
item Item 1
item Item 2
end{itemize}
end{onlyenv}
begin{onlyenv}<2>
begin{table}
begin{adjustbox}{minipage={0.5textwidth}, valign=t}
caption{Time, in seconds, needed to calculate a single ${Z}_{bus}$ Element}
label{table:results2}
begin{tabularx}{linewidth}{c C C}
toprule
System Size & Our Method & Brown's Method
\
addlinespace
200-bus & $4.3times10^{-6}$ & $0.092$
\
Xhline{0.25mm}
2383-bus & $3.8times10^{-6}$ & $166.2$
\
Xhline{0.25mm}
3120-bus & $3.2times10^{-6}$ & $398.8$
\
bottomrule
end{tabularx}
end{adjustbox}
hfill
begin{adjustbox}{minipage={0.43textwidth}, valign=t}
From cref{table:results2} we see that
begin{itemize}
item Our method is fast
item By contrast, Brown's becomes very slow when the system is large
end{itemize}
end{adjustbox}
end{table}
end{onlyenv}
end{frame}
}
end{document}
beamer cross-referencing cleveref
add a comment |
It seems that I cannot reference tables when they are placed inside onlyenv
, but . This applies to both of cref
and the traditional ref
Here is the MWE. When you try to run it, you must do so twice to get the real result.
documentclass[aspectratio=169, xcolor={x11names}]{beamer}
usecolortheme{seahorse}
useoutertheme{miniframes}
useinnertheme{inmargin}
usefonttheme[onlylarge]{structurebold}
setbeamertemplate{caption}[numbered]
% Command to change margins for a page wide
makeatletter
newcommand{framePageWide}{
defGm@lmargin{5mm}%
defGm@rmargin{5mm}%
textwidth=dimexprpaperwidth-Gm@lmargin-Gm@rmarginrelax
hsizetextwidth
columnwidthtextwidth
setlength{linewidth}{textwidth}
hoffset=dimexpr-beamer@leftsidebar+Gm@lmargin-0mmrelax
}
makeatother
newcommand{framePageWideEnumI}{setlength{leftmargini}{10mm}}
usepackage{adjustbox}
usepackage{ragged2e}
usepackage{tabularx}
% BEGIN_FOLD
newcolumntype{C}{ >{arraybackslash Centering}X }
newcommand{scalelinespace}[1]{
rule{0pt}{#1normalbaselineskip}
}
% END_FOLD
usepackage{booktabs}
usepackage{makecell}
usepackage{amsmath}
usepackage{amssymb, amsfonts}
usepackage{cleveref}
crefformat{table}{Table #1}
begin{document}
{framePageWide
begin{frame}{Tables}
begin{onlyenv}<1>
framePageWideEnumI
begin{itemize}
item Item 1
item Item 2
end{itemize}
end{onlyenv}
begin{onlyenv}<2>
begin{table}
begin{adjustbox}{minipage={0.5textwidth}, valign=t}
caption{Time, in seconds, needed to calculate a single ${Z}_{bus}$ Element}
label{table:results2}
begin{tabularx}{linewidth}{c C C}
toprule
System Size & Our Method & Brown's Method
\
addlinespace
200-bus & $4.3times10^{-6}$ & $0.092$
\
Xhline{0.25mm}
2383-bus & $3.8times10^{-6}$ & $166.2$
\
Xhline{0.25mm}
3120-bus & $3.2times10^{-6}$ & $398.8$
\
bottomrule
end{tabularx}
end{adjustbox}
hfill
begin{adjustbox}{minipage={0.43textwidth}, valign=t}
From cref{table:results2} we see that
begin{itemize}
item Our method is fast
item By contrast, Brown's becomes very slow when the system is large
end{itemize}
end{adjustbox}
end{table}
end{onlyenv}
end{frame}
}
end{document}
beamer cross-referencing cleveref
It seems that I cannot reference tables when they are placed inside onlyenv
, but . This applies to both of cref
and the traditional ref
Here is the MWE. When you try to run it, you must do so twice to get the real result.
documentclass[aspectratio=169, xcolor={x11names}]{beamer}
usecolortheme{seahorse}
useoutertheme{miniframes}
useinnertheme{inmargin}
usefonttheme[onlylarge]{structurebold}
setbeamertemplate{caption}[numbered]
% Command to change margins for a page wide
makeatletter
newcommand{framePageWide}{
defGm@lmargin{5mm}%
defGm@rmargin{5mm}%
textwidth=dimexprpaperwidth-Gm@lmargin-Gm@rmarginrelax
hsizetextwidth
columnwidthtextwidth
setlength{linewidth}{textwidth}
hoffset=dimexpr-beamer@leftsidebar+Gm@lmargin-0mmrelax
}
makeatother
newcommand{framePageWideEnumI}{setlength{leftmargini}{10mm}}
usepackage{adjustbox}
usepackage{ragged2e}
usepackage{tabularx}
% BEGIN_FOLD
newcolumntype{C}{ >{arraybackslash Centering}X }
newcommand{scalelinespace}[1]{
rule{0pt}{#1normalbaselineskip}
}
% END_FOLD
usepackage{booktabs}
usepackage{makecell}
usepackage{amsmath}
usepackage{amssymb, amsfonts}
usepackage{cleveref}
crefformat{table}{Table #1}
begin{document}
{framePageWide
begin{frame}{Tables}
begin{onlyenv}<1>
framePageWideEnumI
begin{itemize}
item Item 1
item Item 2
end{itemize}
end{onlyenv}
begin{onlyenv}<2>
begin{table}
begin{adjustbox}{minipage={0.5textwidth}, valign=t}
caption{Time, in seconds, needed to calculate a single ${Z}_{bus}$ Element}
label{table:results2}
begin{tabularx}{linewidth}{c C C}
toprule
System Size & Our Method & Brown's Method
\
addlinespace
200-bus & $4.3times10^{-6}$ & $0.092$
\
Xhline{0.25mm}
2383-bus & $3.8times10^{-6}$ & $166.2$
\
Xhline{0.25mm}
3120-bus & $3.2times10^{-6}$ & $398.8$
\
bottomrule
end{tabularx}
end{adjustbox}
hfill
begin{adjustbox}{minipage={0.43textwidth}, valign=t}
From cref{table:results2} we see that
begin{itemize}
item Our method is fast
item By contrast, Brown's becomes very slow when the system is large
end{itemize}
end{adjustbox}
end{table}
end{onlyenv}
end{frame}
}
end{document}
beamer cross-referencing cleveref
beamer cross-referencing cleveref
asked 42 secs ago
Al-Motasem AldaoudeyehAl-Motasem Aldaoudeyeh
1,832414
1,832414
add a comment |
add a comment |
0
active
oldest
votes
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%2f481299%2freferencing-tables-when-they-are-inside-onlyenv%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f481299%2freferencing-tables-when-they-are-inside-onlyenv%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