Tue Apr 12 20:11:08 2011, original submission:
Jan wrote, on Thu, 01 Jul 2010 09:54:23 +0200:
Hi Brooks,
I have a big problem with a listing. The problem is that I can't do a
minimal example because the problem doesn't occur. I have a big latex
document. And in the following listing I get strange errors:
\begin{lstlisting}[language=Java,caption={Eine Caption}, label=lst:label]
public interface IRoleMappingRegistry {
public static final IRoleMappingRegistry INSTANCE = new
BasicRoleMappingRegistry();
public Map<String, RoleMapping> getRoleMappingsForUri(String nsUri);
public List<RoleMapping> registerRoleMapping(RoleMappingModel roleMapping);
public void updateMappings(List<RoleMapping> mappingsToUpdate);
public Map<String, Map<String, RoleMapping>> getRoleMappingsMap();
public void registerPostProcessor(RoleMapping mapping,
IRefactoringPostProcessor postProcessor);
public IRefactoringPostProcessor getPostProcessor(RoleMapping mapping);
public ImageDescriptor getImageForMapping(RoleMapping mapping);
}
\end{lstlisting}
! Incomplete \iffalse; all text was ignored after line 503
! Forbidden control sequence found while scanning text of \write
For testing this is the same listing as in another place in my document
before. But here it fails on the second line. If I put only one line
into this listing all compiles. So I started to comment out the text
between the both identical listings to find out more. First I commented
out all the text and all compiled. Then I activated the direct paragraph
before the second listing and I got the following errors:
! Argument of \lst@DelimOpen has an extra }
! Paragraph ended before \lst@DelimOpen was complete.
! Incomplete \iffalse; all text was ignored after line 503
! Forbidden control sequence found while scanning text of \write
I'm very frustrated because I wasn't able to determine how to solve this
problem. That's why I'm writing you because I hope you can help me. It
is a little bit urgent because this is my diploma thesis which I have to
deliver in two weeks. Do you have an idea?
best regards,
Jan
|