Ciao a tutti.
Il seguente:
`\documentclass{scrreprt}
\usepackage{classicthesis-ldpkg}
\usepackage[beramono]{classicthesis}
\usepackage[polutonikogreek,italian]{babel}\newcommand{\greco}[1]{%
\begin{otherlanguage*}{greek}#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}`
fa quello che deve fare, ovvero produce caratteri greci dentro un codice prodotto con listings. Vorrei però cambiare il font dei caratteri greci. Mi piacerebbe impostarne uno diverso, diciamo sans serif, o neretto: insomma, uno che dia l’idea di “codice” e non di “typeset” (caratteri greci typewrtiter non esistono, giusto?).Come si fa?
Grazie anticipate,
Lorenzo
`\newcommand{\greco}[1]{%
\begin{otherlanguage*}{greek}
\ifincode\greekcodefont\fi#1
\end{otherlanguage*}}
\newcommand{\greekcodefont}{\fontfamily{neohellenic}\selectfont}
\newif\ifincode
\lstset{basicstyle=\normalfont\ttfamily,frame=lines}
\lstset{escapeinside={£*}{*£}}
\lstnewenvironment{codice}%
{\incodetrue\setkeys{lst}{columns=fullflexible,keepspaces=true}%
\lstset{basicstyle=\small\ttfamily,escapeinside={£*}{*£}}%
}%
{} `
Ti faccio notare che, nell’ultima versione di ClassicThesis, Miede ha tolto il caricamento di listings.
Ciao
Enrico