Search found 4 matches

by peterwilson_69
Wed Mar 03, 2010 2:13 pm
Forum: General
Topic: Syntax of \lstdefinelanguage in Listings Package is wrong!
Replies: 3
Views: 9933

Syntax of \lstdefinelanguage in Listings Package is wrong!

I standby my criticism of the manual. In section 4.18 of the manual it clearly states the syntax for creating a new language based on an existing one.

If the language definition is based on another definition, you must specify the whole [<base dialect>]{<and base language>}.


\lstdefinelanguage ...
by peterwilson_69
Tue Mar 02, 2010 2:54 pm
Forum: General
Topic: Syntax of \lstdefinelanguage in Listings Package is wrong!
Replies: 3
Views: 9933

Syntax of \lstdefinelanguage in Listings Package is wrong!

What is the syntax for \lstdefinelanguage with respect to creating a new language, based on an existing language?

The syntax in the documentation does not work - gives errors.

Code: Select all

\lstdefinelanguage{[MyDialect]{C++}[Visual]{C++}}
:evil: DOES NOT WORK! :evil:

So what am I missing?
by peterwilson_69
Sun Feb 28, 2010 8:22 am
Forum: General
Topic: Question about indexes in Listings Package (lstlisting)
Replies: 1
Views: 1555

Re: Question about indexes in Listings Package (lstlisting)

I'm working on a solution and will post here when I'm done.
by peterwilson_69
Fri Feb 26, 2010 11:34 am
Forum: General
Topic: Question about indexes in Listings Package (lstlisting)
Replies: 1
Views: 1555

Question about indexes in Listings Package (lstlisting)

Can someone please help me? I'm trying to get a handle on using indexes with the Listings Package. The official documentation is pretty light on sample code and seems to assume I'm a LaTeX expert already - I'm not.

Some simple examples would probably answer all my questions, however I'm struggling ...