helpListings package for LaTeX - Support: sr #279, potential bug in Listings Package

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

sr #279: potential bug in Listings Package

Submitted by:  Brooks Moses <brooks>
Submitted on:  Tue Apr 12 19:56:47 2011  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenOperating System: None

Tue Apr 12 19:56:47 2011, original submission:

Moritz Schubotz wrote, on Mon, 3 Jan 2011 22:17:17 +0100:


Hi,

when I use \refstepcounter in a listings caption I get the missing
\endcsname error. I know that this might sound strange but I need this
feature I combination with a user defined command.
I'm not sure I you are the right person to address therefore I'd be
happy about a short feedback.

Example code crash with pdfLaTex:
\documentclass[]{article}
\usepackage{listings}

%opening
\title{test}
\author{moritz schubotz}

\begin{document}

\maketitle
\newcounter{c1}

\begin{abstract}

\end{abstract}

\begin{lstlisting}[caption=caption \refstepcounter{c1} ]
test
\end{lstlisting}

\end{document}

--
Best regards
Moritz Schubotz

Brooks Moses <brooks>
Project Administrator

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by brooks (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray