I want to write different text in the middle of a sentence in a beamer
presentation and its corresponding beamerarticle
. But it seems that \mode<...>{...}
introduces a new paragraph and breaks the sentence.
Please look at the code and results:
\documentclass[ignorenonframetext]{beamer}
%\documentclass{article}
%\usepackage{beamerarticle}
\begin{document}
\begin{frame}{This is a frame}
This is some text in \texttt{beamer} and \texttt{article} modes.
This is some text in \mode<article>{\texttt{article}}\mode<beamer>{\texttt{beamer}} mode.
\end{frame}
\end{document}
This is the result in beamer
mode. It looks like \mode<beamer>{text}
introduces \par
(or something similar) before and after text
.
while \mode<article>{text}
just introduces \par
after text
.
In any case I would like t have some mechanism to alternate text without introducing paragraph breaks. Is it possible?