Latex 在pandoc中设置列表环境的语言

Latex 在pandoc中设置列表环境的语言,latex,markdown,pandoc,listings,Latex,Markdown,Pandoc,Listings,当使用--listings参数从扩展降价(pandoc)转换为latex时,我正在努力说服pandoc自动设置列表语言。这是文件foo.txt: A listing follows. ~~~{.prolog} % fooing around foo :- format("bar~n"). ~~~~ 当我使用pandoc-s foo.txt-o foo.html时,代码会高亮显示 当我使用pandoc-s foo.txt-o foo.latex时,代码会高亮显示,使用pandoc在la

当使用
--listings
参数从扩展降价(pandoc)转换为latex时,我正在努力说服pandoc自动设置列表语言。这是文件
foo.txt

A listing follows.

~~~{.prolog}
% fooing around
foo :-
    format("bar~n").
~~~~
当我使用
pandoc-s foo.txt-o foo.html
时,代码会高亮显示

当我使用
pandoc-s foo.txt-o foo.latex
时,代码会高亮显示,使用pandoc在latex序言中插入的自定义命令

当我使用
pandoc-s foo.txt--listings foo.latex
时,代码不会突出显示,因为没有设置listings环境的
语言
选项。我可以解决这个问题:

~~~{.prolog language=Prolog}

但这与目的背道而驰。我是否缺少某些内容,或者此功能不受支持?如果故意省略,原因是什么?

我无法复制,您使用的是哪个版本的pandoc?@MatthewPickering我可能使用的是旧版本或拙劣的安装(我在使用定制的Ubuntu12.04)。安装阴谋集团花了很长时间,但现在问题消失了。