Referencing tables when they are inside `onlyenv` (beamer)Table numbers in beamerProblem when using...

Drawing ramified coverings with tikz

What does the Rambam mean when he says that the planets have souls?

Divine apple island

Why do IPv6 unique local addresses have to have a /48 prefix?

What is this type of notehead called?

Can the Supreme Court overturn an impeachment?

How should I respond when I lied about my education and the company finds out through background check?

Java - What do constructor type arguments mean when placed *before* the type?

Should I stop contributing to retirement accounts?

Why has "pence" been used in this sentence, not "pences"?

Using a siddur to Daven from in a seforim store

Do Legal Documents Require Signing In Standard Pen Colors?

What linear sensor for a keyboard?

Is camera lens focus an exact point or a range?

Confusion on Parallelogram

List of people who lose a child in תנ"ך

When quoting, must I also copy hyphens used to divide words that continue on the next line?

Query about absorption line spectra

Diode in opposite direction?

Bob has never been a M before

My friend sent me a screenshot of a transaction hash, but when I search for it I find divergent data. What happened?

Why does Async/Await work properly when the loop is inside the async function and not the other way around?

How do I extrude a face to a single vertex

How do I repair my stair bannister?



Referencing tables when they are inside `onlyenv` (beamer)


Table numbers in beamerProblem when using pdfcomment in figure captions and then referencingReferencing subfigure when subfigures are in the same imageReferencing “coupled” tables Extra “appendix” when referencing using cleveref in elsarticleReferencing tables in pandocChange item font style when referencingCross-referencing with label inside documentCross-referencing inside empheq environmentNumber Lemmas based on when they are referenced in textCross Referencing equations that are inside Align environment













0















It seems that I cannot reference tables when they are placed inside onlyenv, but . This applies to both of cref and the traditional ref



enter image description here



The topic Table numbers in beamer is not an answer to this question because my question is asking about referencing a table, not inserting its number in a caption.



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}








share



























    0















    It seems that I cannot reference tables when they are placed inside onlyenv, but . This applies to both of cref and the traditional ref



    enter image description here



    The topic Table numbers in beamer is not an answer to this question because my question is asking about referencing a table, not inserting its number in a caption.



    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}








    share

























      0












      0








      0








      It seems that I cannot reference tables when they are placed inside onlyenv, but . This applies to both of cref and the traditional ref



      enter image description here



      The topic Table numbers in beamer is not an answer to this question because my question is asking about referencing a table, not inserting its number in a caption.



      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}








      share














      It seems that I cannot reference tables when they are placed inside onlyenv, but . This applies to both of cref and the traditional ref



      enter image description here



      The topic Table numbers in beamer is not an answer to this question because my question is asking about referencing a table, not inserting its number in a caption.



      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





      share












      share










      share



      share










      asked 6 mins ago









      Al-Motasem AldaoudeyehAl-Motasem Aldaoudeyeh

      1,832414




      1,832414






















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


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f481299%2freferencing-tables-when-they-are-inside-onlyenv-beamer%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
















          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%2f481299%2freferencing-tables-when-they-are-inside-onlyenv-beamer%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

          El tren de la libertad Índice Antecedentes "Porque yo decido" Desarrollo de la...

          Castillo d'Acher Características Menú de navegación

          Connecting two nodes from the same mother node horizontallyTikZ: What EXACTLY does the the |- notation for...