von Bartman » Mo 16. Mai 2016, 16:54
Was hältst Du davon?
\documentclass{scrreprt}
\usepackage[svgnames]{xcolor}
\usepackage{listings}
\lstdefinelanguage{SIMTALK}{
basicstyle=\small\ttfamily,
morekeywords ={is,do,for,to,loop,If,then,elseif,end},keywordstyle = \color{blue},
classoffset = 1,
morekeywords={true,false,void},keywordstyle = \color{purple},
classoffset = 0,
sensitive=false,
commentstyle=\itshape\color{DarkGreen},
morecomment=[l]{--},
literate=%
{Ö}{{\"O}}1
{Ä}{{\"A}}1
{Ü}{{\"U}}1
{ß}{{\ss}}2
{ü}{{\"u}}1
{ä}{{\"a}}1
{ö}{{\"o}}1
}
\begin{document}
\begin{lstlisting}[language = SIMTALK, caption=SIMTALK-Code, label=simtalk_code]
-- Wahrscheinlichkeit überschreiben
If ~.t_EBR_Prüfung[6,i] >= 0.01 then
true
\end{lstlisting}
\end{document}
In Kommentaren dürften Umlaute kein Problem sein. Dein SIMTALK-Übersetzungsprogramm nimmt den Umlaut in Prüfung ohne Fehlermeldung an?
Was hältst Du davon?
[code]\documentclass{scrreprt}
\usepackage[svgnames]{xcolor}
\usepackage{listings}
\lstdefinelanguage{SIMTALK}{
basicstyle=\small\ttfamily,
morekeywords ={is,do,for,to,loop,If,then,elseif,end},keywordstyle = \color{blue},
classoffset = 1,
morekeywords={true,false,void},keywordstyle = \color{purple},
classoffset = 0,
sensitive=false,
commentstyle=\itshape\color{DarkGreen},
morecomment=[l]{--},
literate=%
{Ö}{{\"O}}1
{Ä}{{\"A}}1
{Ü}{{\"U}}1
{ß}{{\ss}}2
{ü}{{\"u}}1
{ä}{{\"a}}1
{ö}{{\"o}}1
}
\begin{document}
\begin{lstlisting}[language = SIMTALK, caption=SIMTALK-Code, label=simtalk_code]
-- Wahrscheinlichkeit überschreiben
If ~.t_EBR_Prüfung[6,i] >= 0.01 then
true
\end{lstlisting}
\end{document}[/code]
In Kommentaren dürften Umlaute kein Problem sein. Dein SIMTALK-Übersetzungsprogramm nimmt den Umlaut in [tt]Prüfung[/tt] ohne Fehlermeldung an?