Re: Font greci “stile codice” dentro un codice listing

#55611
lorenzo.pantieri
Partecipante
    Up
    0
    Down
    ::


    Ho trovato il busillis. Il comando suggerito da Claudio, che funziona e fa quello che mi serve, non va più bene se carico anche ArsClassica.
    `\documentclass{scrreprt}
    \usepackage[writefile]{listings}
    \usepackage{classicthesis-ldpkg}
    \usepackage[beramono]{classicthesis}
    \usepackage[polutonikogreek,italian]{babel}
    \usepackage[italian]{arsclassica}

    \newcommand{\greco}[1]{%
    \begin{otherlanguage*}{greek}\sffamily#1\end{otherlanguage*}}

    \lstset{basicstyle=\normalfont\ttfamily,frame=lines}
    \lstset{escapeinside={£*}{*£}}

    \lstnewenvironment{codice}%
    {\setkeys{lst}{columns=fullflexible,keepspaces=true}%
    \lstset{basicstyle=\small\ttfamily,escapeinside={£*}{*£}}%
    }%
    {}

    \begin{document}
    \begin{codice}
    abc £*\greco{abc}*£
    \end{codice}
    \end{document}`
    Se si commenta ArsClassica, tutto ok. Come posso fare per avere i font greci sans serif con ArsClassica?

    Grazie davvero: è un punto importante, vedrete a breve perché… 😉

    Ciao,
    L.

    Go to top