helpListings package for LaTeX - Support: sr #330, listings 1.4: otherkeywords and...

 
 
Show feedback again

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

sr #330: listings 1.4: otherkeywords and escapeinside are incompatible

Submitted by:  Brooks Moses <brooks>
Submitted on:  Tue Aug 14 06:05:05 2012  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenOperating System: None

Tue Aug 14 06:05:05 2012, original submission:

Akim Demaille wrote:


Hi!

If there is a place where you would like me to report bugs, please let me know!

The following source fails to compile. Apparently, one cannot use in a listings an otherkeyword if there is an escapeinside. Thanks!

Also, it would be nice if the documentation could point out the existence of listingsutf and listings-ext.

\documentclass{article}
\usepackage{listings}

\begin{document}
\begin{lstlisting}[otherkeywords={*},escapeinside=`']
*
\end{lstlisting}
\end{document}

> Running `LaTeX' on `foo' with ``pdflatex -interaction=nonstopmode "\input" foo.tex''
> This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010/MacPorts 2010_4)
> restricted \write18 enabled.
> entering extended mode
> LaTeX2e <2009/09/24>
> Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, loaded.
> (./foo.tex (/opt/local/share/texmf-texlive-dist/tex/latex/base/article.cls
> Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
> (/opt/local/share/texmf-texlive-dist/tex/latex/base/size10.clo))
> (/opt/local/share/texmf-texlive-dist/tex/latex/listings/listings.sty
> (/opt/local/share/texmf-texlive-dist/tex/latex/graphics/keyval.sty)
> (/opt/local/share/texmf-texlive-dist/tex/latex/listings/lstmisc.sty)
> (/opt/local/share/texmf-texlive-dist/tex/latex/listings/listings.cfg))
> (./foo.aux)
> ! Undefined control sequence.
> \lst@OutputToken ...lst@CheckMerge {\lst@thestyle
> {\lst@FontAdjust \setbox \...
> l.6 *
>
> (/opt/local/share/texmf-texlive-dist/tex/latex/base/omscmr.fd) [1{/opt/local/var/db/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./foo.aux) )
> (see the transcript file for additional information)</opt/local/share/texmf-texlive-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></opt/local/share/texmf-texlive-dist/fonts/type1/public/amsfonts/cm/cmsy10.pfb>
> Output written on foo.pdf (1 page, 15451 bytes).
> Transcript written on foo.log.
>
> LaTeX exited abnormally with code 1 at Wed May 18 10:09:16

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