I have the following code:
{
\lstset{language=C,
basicstyle=\tiny,
tabsize=3,
frame=lines,
breaklines=true,
breakatwhitespace=true}
\lstinputlisting[float,caption={Caption1},label=txt:Netlink,lastline=69]{file.c}
}
{
\lstset{language=C,
basicstyle=\tiny,
tabsize=3,
frame=lines,
breaklines=true,
breakatwhitespace=true}
\ContinuedFloat
\lstinputlisting[float,caption={Caption 1 (cont.)},label=txt:Netlink,firstline=71]{code.c}
}
It produces something like:
Listing 1.1: Caption 1
The code
Listing 1.2: Caption 1 (cont.)
The code
I want it to be like if you use \Continuedfloat
Listing 1.1: Caption 1
The code
Listing 1.1: Caption 1 (cont.)
The code
And then on list of listings I would like it to be shown just once.
I have no idea on how to do it. Any help is more than welcome.
Edit 1: (for @GonzaloMedina)
This is the result including \lstlistoflistings
Would it be possible to have only one entry there?
\documentclass{...}
, the required\usepackage
's,\begin{document}
, and\end{document}
. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem.