Stranissimo…
Questo esattamente il sorgente:
`
\documentclass{minimal}\usepackage[uft8x]{inputenc}
\usepackage{listings}\lstset{language=\(\)tex,
escapechar=£}\newcommand{\meta}[1]{$\langle$\textit{#1}$\rangle$}
\begin{document}
\begin{lstlisting}
Ora il tuo comando non viene interpretato \meta{prova}
\end{lstlisting}
\begin{lstlisting}
Ora il tuo comando viene interpretato £\meta{prova}£
\end{lstlisting}
\end{document}`
e questo l’output di pdflatex:
`
$ pdflatex test.tex
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2009/09/24>
Babeland hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, farsi, arabic, croatian, bulgarian, ukrainian, russian, czech, slov
ak, danish, dutch, finnish, french, basque, ngerman, german, german-x-2009-06-1
9, ngerman-x-2009-06-19, ibycus, monogreek, greek, ancientgreek, hungarian, san
skrit, italian, latin, latvian, lithuanian, mongolian2a, mongolian, bokmal, nyn
orsk, romanian, irish, coptic, serbian, turkish, welsh, esperanto, uppersorbian
, estonian, indonesian, interlingua, icelandic, kurmanji, slovenian, polish, po
rtuguese, spanish, galician, catalan, swedish, ukenglish, pinyin, loaded.
(/usr/share/texmf-texlive/tex/latex/base/minimal.cls
Document Class: minimal 2001/05/25 Standard LaTeX minimal class
) (/usr/share/texmf-texlive/tex/latex/base/inputenc.sty! LaTeX Error: File `uft8x.def' not found.
Type X to quit or
to proceed,
or enter new name. (Default extension: def)Enter file name:
`
Nessun problema invece se commento la riga con inputenc.Tutto ciò su Debian Squeeze.
Sembra un problema con “utf8x” inveche che con listings.
Hai provato con un documento minimale che contenga solo la chiamata al pacchetto inputenc?
😉
LuCa