Tengo la siguiente estructura de trabajo para excluir diapositivas de conferencias particulares del formato de artículo de una conferencia:
\documentclass[11pt,handout]{beamer}
\newif\iflecture
\lecturetrue
% Next three lines for article form of presentation
\lecturefalse
\documentclass[11pt]{article}
\usepackage{beamerarticle}
\iflecture
...frames for just the lecture and not the article form
\fi
fotogramas restantes para ambos.
¿Se puede extender esta lógica a un solo marco?
\begin{frame}
...content for both lecture and article, a problem for example
end article content here
...remaining content just for lecture
\end{frame}
Respuesta1
Si desea que cierto material aparezca sólo cuando el archivo se compone como una conferencia, con \lectureture
, entonces sólo necesita rodearlo con
\iflecture <lecture only material>...\fi
De manera similar, para el material que no es para uso de conferencia:
\iflecture\else <article only material>...\fi
Por supuesto, también puedes combinar estos:
\iflecture <lecture only material>
\else <article only material>\fi
Otra construcción útil es que puedes pasar diferentes opciones a Beamer o a otros paquetes usando \PassOptionsToClass
. Aquí hay un MWE completo:
\newif\iflecture
\lecturefalse % uncomment if typesetting as an article
%\lecturetrue % uncomment if typesetting as a lecture
\iflecture\else
\PassOptionsToClass{11pt,handout}{beamer}
\fi
\documentclass{beamer}
\begin{document}
\iflecture
\begin{frame}{Lecture only frame}
A framed lecture
\end{frame}
\fi
\begin{frame}
...content for both lecture and article, a problem for example
\iflecture\else article content here\fi
\iflecture ...remaining content just for lecture\fi
\end{frame}
\end{document}