1

I would like a dummy macro that ignores overlay specification (from beamer) when the code is copy-pasted into another class.

\documentclass{article}
\usepackage{fontspec}
\newcommand{\onslide}[1]{}
\begin{document}
   \onslide<3-10>{test}
\end{document}

I have some text from a beamer presentation that will be included into an article or book document, and since it's a lot of code, I'd like to copy-paste it without having to manually remove all the overlay specifications.

In the given example, my goal is a macro that prints only the word "test" and nothing else, ignoring the <3-10> specification.

closed as off-topic by user36296, R. Schumacher, Mensch, Zarko, user13907 Sep 27 '16 at 1:03

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 5
    Use \usepackage{beamerarticle} – Marco Daniel Jun 8 '14 at 11:19
  • \usepackage{xparse} and \NewDocumentCommand\onslide{ D<>{} m }{#2}. – Henri Menke Sep 14 '14 at 14:15
  • 4
    I'm voting to close this question as off-topic because solved in comments – user36296 Sep 27 '16 at 0:05

Browse other questions tagged or ask your own question.