Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass{article}
- usepackage{listings}
- usepackage[listings]{examplep}% this doesn't work
- %usepackage{examplep}% this does
- begin{document}
- pagestyle{empty}
- % This lstlisting has its own caption
- begin{lstlisting}[language=C++,caption={Caption of lstlisting},label=cod:c]
- #include<iostream>
- int main{
- std::cout << "Hello LaTeXn";
- }
- end{lstlisting}
- % The lstlisting caption is not shown here
- begin{WBoth}
- begin{lstlisting}[language=C++,caption={Caption of lstlisting}]
- #include<iostream>
- int main{
- std::cout << "Hello LaTeXn";
- }
- end{lstlisting}
- end{WBoth}
- PexaShowSource{}
- PexaShowSample{}
- end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement