I am using showexpl.sty to display side by side the code snippet and its corresponding output.
Because of the paper size limit, I intentionally want to remove the "redundant" rows, i.e., the first n rows and the last m rows from the code snippet.
Is it possible to do that in showexpl.sty ?
You can use the following minimal code:

Code: Select all
\documentclass{article}
\usepackage{showexpl}
\lstset{%
% any setting goes here.
}
\begin{document}
\begin{LTXexample}[%
%any option goes here.
]
%redundant n rows begin
% one
% two
% ...
% n th rows
Important parts go here.
Again... it is important!
...
%redundant m rows begin
% one
% ...
% m th rows
\end{LTXexample}
% others important parts go here.
\end{document}