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

lstlisting inside LTXexample generates ! Undefined control sequence #9

Open
h-kitagawa opened this issue Jul 29, 2020 · 0 comments
Open

Comments

@h-kitagawa
Copy link

Hello,

I tried to typeset the following code:

\documentclass{article}
\usepackage{showexpl}
\begin{document}
\begin{LTXexample}
\begin{lstlisting}
hoge
\end{lstlisting}
\end{LTXexample}
\end{document}
% Package: showexpl 2020/05/26 v0.3q Typesetting example code (RN)
% Package: listings 2020/03/24 1.8d (Carsten Heinz)

But I got an error:

! Undefined control sequence.
<argument> c@\@captype

l.1 \begin{lstlisting}

The error is not generated if I replace \begin{LTXexample} with

\begin{LTXexample}[preset=\expandafter\def\csname @captype\endcsname{lstlisting}]
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

1 participant