Ciao Claudio,
grazie della spiegazione. Ho provato a fare come mi hai detto. Usando il tuo codice il font usato, mi viene detto, è gttn1000. Usando il codice di Enrico non mi compare ne l’uno ne l’altro caso (fra grmn1000 e grtt1000) ma GFSNeohellenic-Regular.
Per quanto riguarda l’uso del Bera Mono, invece, ho capito poco di quello che bisogna fare. Cercando di seguire la guida, ho visto nella documentazione del pacchetto [tt]beramono[/tt] che la famiglia monospaziata regolare dovrebbe chiamarsi “fvm”. Perciò ho scritto questo codice:
`\documentclass[a4paper,11pt,extrafontsizes,twoside,openright]{memoir}
\usepackage{etex}
\usepackage{etoolbox}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[greek,italian]{babel}
\usepackage{microtype}
\usepackage{xcolor}
\usepackage{teubner}
\usepackage[scaled=.85]{beramono}
\Lipsiantrue
\ifFamily{fvm}{cmr}
\usepackage{listings}
\lstset{language=Mathematica,
basicstyle=\footnotesize\ttfamily,
keywordstyle=\footnotesize\bfseries,
identifierstyle=,
commentstyle=\color{gray},
stringstyle=\ttfamily,
showstringspaces=false,
numbers=left,
numberstyle=\tiny,
escapechar={|}}
\newcommand{\greekcodefont}{\fontfamily{neohellenic}\selectfont}
\newif\ifincode
\lstnewenvironment{codice}%
{\incodetrue\setkeys{lst}{columns=fullflexible,keepspaces=true}%
\lstset{basicstyle=\small\ttfamily,escapeinside={|}{|}}%
}%
{}
\newcommand{\gcode}[1]{\foreignlanguage{greek}{\greekcodefont\ttfamily#1\noboundary}}
\begin{document}
\begin{codice}
|\gcode{s}|Table
(* commento *)
\end{codice}
\end{document}`
Ma non viene usato il Bera Mono anche se al posto di [tt]neohellenic[/tt] nella definizione di [tt]\greekcodefont[/tt] sostituisco [tt]beramono[/tt] o [tt]fvm.[/tt]
Cosa sbaglio? 🙁
Ciao e grazie,
Marco.