Re: Xelatex e listings

#85301
samiel
Partecipante
    Up
    0
    Down
    ::


    Con questo codice:
    `\documentclass[a4paper]{article}
    \usepackage{fontspec}
    \usepackage{polyglossia}
    \setmainlanguage{italian}
    \usepackage{listings}
    \lstset{mathescape=true}
    \lstset{literate=%
    {Ö}{{\”O}}1
    {Ä}{{\”A}}1
    {Ü}{{\”U}}1
    {ß}{{\ss}}2
    {ü}{{\”u}}1
    {ä}{{\”a}}1
    {ë}{{\”e}}1
    {ö}{{\”o}}1
    {ć}{{\'c}}1
    {č}{{\v{c}}}1
    {đ}{{\dj{}}}1
    {š}{{\v{s}}}1
    {ž}{{\v{z}}}1
    {Ć}{{\'C}}1
    {Č}{{\v{C}}}1
    {Đ}{{\DJ{}}}1
    {Š}{{\v{S}}}1
    {Ž}{{\v{Z}}}1
    }

    \begin{document}

    \begin{lstlisting}

    $\epsilon$

    $\beta$

    Schloß

    Kruščëv

    \end{lstlisting}

    \end{document}`
    il risultato è un po’ strano

    [attachment=687]listings.png[/attachment]

    Attachments:
    You must be logged in to view attached files.

    Go to top