Tag Info

New answers tagged

5

environ creates an environment that uses TeX parameter text in definitions to capture the environment contents. This parameter-text style definition allows the package to capture the environment contents, but it also requires a very strict usage of the macros/definitions... something you're not adhering to when using a command-style environment ...


3

It does not work if you place the content in the main file. It only don't give an error. Try this: \documentclass{scrartcl} \usepackage{environ} \begin{document} \NewEnviron{myenv}{BEGIN\BODY END} \begingroup \myenv Hello \endmyenv \endgroup World \end{document} Environ needs to find \end{myenv} to stop the parsing.


4

Rather than define a new command, I would use the \againframe facility offered by beamer itself: \documentclass{beamer} \setbeamercovered{transparent} \begin{document} \begin{frame}<4>[label=repeater]{Repeating frame} \begin{enumerate} \item \uncover<1,4>{The is item 1} \item \uncover<2,4>{The is item 2} \item ...


1

Here is a more general approach where you can also determine the total ammount of items and give alternate titles to single frames: \documentclass{beamer} \setbeamercovered{transparent} \usepackage{pgffor} \makeatletter \@namedef{theitem1}{The is item 1} \@namedef{theitem2}{The is item 2} \@namedef{theitem3}{The is item 3} \@namedef{theitem4}{The is item ...


1

This is one possible solution via a simple \ifnum #1=xx ... \else ... \fi conditional check. Code \documentclass{beamer} \setbeamercovered{transparent} \newcommand{\repeatingframe}[1]{ \ifnum #1=0 \def\a{1} \def\b{1} \def\c{1} \else \ifnum #1=3 \def\a{0} \def\b{0} \def\c{1} \else \ifnum #1=1 \def\a{1} \def\b{0} \def\c{0} \else \ifnum #1=2 ...


4

The error is in using \xdef instead of \protected@xdef; all \text... macros in LaTeX cannot be used in the replacement text for \edef (and so \xdef). \documentclass{article} \usepackage{fixltx2e,hyperref,ifthen} \usepackage{tipx} \makeatletter \newcount\mod \newcommand*{\modulo}[2]{% \mod=#1 \@tempcnta=#2 \ifnum\mod<\@tempcnta\else \loop ...



Top 50 recent answers are included