-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
! File ended while scanning use of \@xverbatim error starting with commit 0c387de #360
Comments
I think this is probably 'to be expected'! I've got two competing issues:
To allow the former to work, you have to 'lift' the restriction that For the case where one is documenting \documentclass{beamer}
\newenvironment{slide}
{\begin{frame}[fragile,environment=slide]}
{\end{frame}}
\begin{document}
\begin{slide}
\frametitle{Beamer's tutorial}
\framesubtitle{Code for frames}
Here is how you create a frame with Beamer class:\pause{}
\begin{verbatim}
\begin{frame}
\end{frame}
\end{verbatim}
\end{slide}
\end{document} |
I guess I could arrange to 'count up' the nesting of \documentclass{beamer}
\begin{document}
\begin{frame}[fragile]
\frametitle{Beamer's tutorial}
\framesubtitle{Code for frames}
Here is how you create a frame with Beamer class:\pause{}
\begin{verbatim}
\end{frame}
\end{verbatim}
\end{frame}
\end{document} |
Am 12.01.2017 um 17:38 schrieb Joseph Wright:
I guess I could arrange to 'count up' the nesting of |frame|
environments, which would solve this issue but would be vulnerable still
to /e.g./
I think all of this is overkill (and as you say it will stay with some
sort of exception unless you really go to very very slow parsing)
So better document that beamer can document itself (on frame
environments) using verbatim in order to make life easier for real uses
but that you have to use, say semiverbatim in that case. Bit of a
nuisance but you have to die one death here
|
Yes, something in the docs is likely appropriate. |
BTW, nice to know someone is testing the code (other than me, of course). |
OK, agree. But, tell more than just "semiverbatim", otherwise some folks would be puzzled :) |
You're welcome :) |
AFAICS, the drawback of environments defined by \documentclass{beamer}
\newenvironment<>{slide}[1][]{\begin{frame}[fragile,environment=slide]}{\end{frame}}
\begin{document}
\begin{slide}[label=foo]
Foo
\end{slide}
%
\againframe{foo}
\end{document} |
I'm reopening here so there is an issue to remind me to do the documentation. I'll cover a few options: |
This works if you actually pass the optional argument on to the frame:
|
The following M(n)WE:
used to work nicely until commit 6a23fce and fails starting with commit 0c387de with error:
The text was updated successfully, but these errors were encountered: