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

Is XSS in canonical link possible?

Should I install hardwood flooring or cabinets first?

Is possible to search in vim history?

Why did the EU agree to delay the Brexit deadline?

Drawing ramified coverings with tikz

Visiting the UK as unmarried couple

Is there a word to describe the feeling of being transfixed out of horror?

Proving a function is onto where f(x)=|x|.

Diode in opposite direction?

Customize circled numbers

Have I saved too much for retirement so far?

Freedom of speech and where it applies

Why in book's example is used 言葉(ことば) instead of 言語(げんご)?

A social experiment. What is the worst that can happen?

Can I rely on this github repository files?

Are all species of CANNA edible?

Journal losing indexing services

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

Engineer refusing to file/disclose patents

Can someone explain how this makes sense electrically?

Do Legal Documents Require Signing In Standard Pen Colors?

How do you respond to a colleague from another team when they're wrongly expecting that you'll help them?

Open a doc from terminal, but not by its name

Find last 3 digits of this monster number



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


Table numbers in beamerProblem when using pdfcomment in figure captions and then referencingBeamer ignoring a label when used inside certain only'sReferencing subfigure when subfigures are in the same imageReferencing “coupled” tables Extra “appendix” when referencing using cleveref in elsarticleCross-referencing issue with subcaption in beamerReferencing tables in pandocChange item font style when referencingNumber 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 9 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

          Can't compile dgruyter and caption packagesLaTeX templates/packages for writing a patent specificationLatex...

          Schneeberg (Smreczany) Bibliografia | Menu...

          Hans Bellmer Spis treści Życiorys | Upamiętnienie | Przypisy | Bibliografia | Linki zewnętrzne |...