Skip to content
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

interaction with beamer overlays #50

Open
BeastyBlacksmith opened this issue Apr 20, 2023 · 3 comments
Open

interaction with beamer overlays #50

BeastyBlacksmith opened this issue Apr 20, 2023 · 3 comments

Comments

@BeastyBlacksmith
Copy link

usually you can specify to show environments on certain beamer overlays with

\begin{env}<2->
\end{env}

for showing that only at the second overlay. However, this doesn't seem to work with jllisting.

@wg030
Copy link
Owner

wg030 commented Apr 20, 2023

Could you maybe create a MWE which I can run myself so that I can have a closer look ath this issue?

@BeastyBlacksmith
Copy link
Author

\documentclass{beamer}

\usepackage{jlcode}

\begin{document}

\begin{frame}[fragile]

\begin{jllisting}<1>
Hello
\end{jllisting}

\begin{jllisting}<2>
World
\end{jllisting}
% shows both
\end{frame}

\begin{frame}[fragile]

\onslide<2>{
\begin{jllisting}
Hello
\end{jllisting}
} % errors

\end{frame}

\end{document}

@wg030
Copy link
Owner

wg030 commented Apr 21, 2023

Thank you for the MWE.

I had a quick look at the problem and I figured out that this problem does not seem to be a problem of the jlcode package specifically, but rather a problem of the listings package in general.
That's because testing the code

\documentclass{beamer}

\usepackage{listings}

\begin{document}

\begin{frame}[fragile]

\begin{lstlisting}<1>
Hello
\end{lstlisting}

\begin{lstlisting}<2>
World
\end{lstlisting}
% shows both
\end{frame}

\begin{frame}[fragile]

\onslide<2>{
\begin{lstlisting}
Hello
\end{lstlisting}
} % errors

\end{frame}

\end{document}

yields exactly the same problem. Hence I cannot really help you here I guess. ☹️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants