helpListings package for LaTeX - Support: sr #320, Question on LaTeX listings package

 
 
Show feedback again

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

sr #320: Question on LaTeX listings package

Submitted by:  Brooks Moses <brooks>
Submitted on:  Wed Apr 13 05:21:34 2011  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenOperating System: None

Wed Apr 13 05:21:34 2011, original submission:

Na'im R. Tyson wrote, on Thu, 13 Jan 2011 00:42:32 -0500:


Hi Brooks,

I hate to bother you about this package, but I'm having real trouble
defining a new programming language in LaTeX's listings package.

The language is for the Praat scripting language. It's very similar
to Basic, but the name of string variable ends with a dollar sign.
I'm using the following command to define it:

\lstdefinelanguage{Praat}
{keywords={call,clearinfo,comment,Create,else,endfor,endform,endif,endproc,exit,fileappend,filedelete,fileReadable,for,form,Get,if,index_regex,length,nocheck,pause,plus,procedure,print,printline,Read,Remove,repeat,right,select,sentence,Set,system,system_nocheck,text,to,To,until,Write},%
sensitive=true,%
alsoletter={\$},%
comment=[l]{\#},%
string=[b]",%
string=[b]'%
}

When I call to the file using \lstinputlisting, I get an error
'Missing $ inserted'. I am no LaTeX expert, so I really do not know
what I need to do to fix this.

Any help you could provide would really appreciated. I have attached
a praat script file just to give you an idea of what I was doing.

Yours truly,

Na'im R. Tyson

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