On 04/30/2012 07:20 PM, Allen Barker wrote:

The listings insets (at least in 2.0.3) always seem to
alphabetize their list of "More Parameters." Is there
a way to avoid that? The Latex listings are sensitive to
the position of their parameters, so you can define, say,
a new language (from a base language) and then selectively
override certain parts. With alphabetization you can
only override settings earlier in the alphabet.

Making every language definition part of the "official
list" seems like overkill in simple cases. Even when a
language like Python is selected on the front "settings"
page menu, something like keywords={egg,salad} on the
"More Parameters" list still does not override the
keywords like it does when it occurs after the language
parameter in a Latex ERT such as:

\begin{lstlisting}[language=Python,keywords={egg,salad}]
print "hello"
if egg == salad:
pass
\end{lstlisting}

Also, when entering "basicstyle" in the parameter window
it validates it up to "basicstyl" and then, when the
word is completed, it says: "Unknown listing parameter
name: basicstyle_" with an underscore. Is there some
reason for that?

I've narrowed this latter situation down.  It does not
always do that, but it does seem to repeat it if the font
size is selected as "small" on the menu on the first
"settings" page and then "basicstyle" is entered into the
parameter window.  It gives the "Unknown" message even in
a new buffer with nothing but a single listings inset in
it.




Reply via email to