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
|