[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#475746: listings: 'Assembler' and 'Basic' languages don't work



Hi,

Eugene V. Lyubimkin a écrit :
> Frank Küster wrote:
>> You have to do it right, it seems you can't use languages with dialects
>> without specifiying one, even if there is only one:
>>

I'm afraid this is a bit more complicated: you can use a language with
dialects without specifying one only if there is a default dialect for this
language (see table 1, p 12 of the doc). For example, there is a default
dialect for TeX, namely plain, so you can say :

\begin{lstlistings}[language=TeX]

But, somehow surprisingly, there is no predefined default dialect for Basic,
though there is only one dialect. Anyway, you can define a default dialect for
this language with

\lstset{defaultdialect=[Visual]Basic}

in your preamble for example.

> I think this can be explained at section that tells about 'listings'
> package, it would be logical.
> 
Hum, in LaTeX, each package has a separate documentation. For listings, the
documentation is in

/usr/share/doc/texlive-latex-recommended-doc/latex/listings/listings.pdf

and can easily be found by typing 'texdoc listings' in a terminal.

By the way, I would expect section 2.4 of the documentation to mention the
fact that the "optional" argument for the dialect is actually mandatory for
languages without predefined default dialect...

Best,
Manuel.



Reply to: