[texhax] Adding a New Programming Language in LaTeX listings package
Na'im R. Tyson
ntyson at clovermail.net
Thu Jan 13 17:11:42 CET 2011
Hi TeX Hackers,
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:
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 anyone could provide would really appreciated. I have
include some Praat code below to give you an idea of what I was doing.
# reads from *.phn files of the form (on each line): <label> <start>
# (supposedly) downloads directory from repository to find
form Make TextGrids for text files
sentence Directory /home/ntyson/devl/thesis-dev/trunk/data/formant-data
# sentence Sound_file_extension .wav
sentence Text_file_extension .phn
overwrite = 0
# Check the contents of the user-specified directory and open
phnPath$ = "'directory$'/*'text_file_extension$'"
Create Strings as file list... list 'phnPath$'
More information about the texhax