The characters not correctly displayed were underscore, %, minus, quoatation mark (maybe some other but these I remember at this moment)
The solution of Rais is working as well. Thank you.
the tested code was:
Code:
\documentclass[a4paper]{book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{listings}
\usepackage[english]{babel}
\usepackage{graphicx,xcolor}
\usepackage[inner=3.5cm, outer=4.5cm, top=3.5cm, bottom=3.5cm,a4paper]{geometry}
\usepackage{graphicx,xcolor}
\usepackage{ushort}
\usepackage{units}
\begin{document}
\ttfamily
\scriptsize
\begin{minipage}[t]{.4\linewidth}
\begin{lstlisting}
mfreset;
mffn Gauss;
mfrep 5;
nlsf.constr$="A_1>0;w_1=0.2";
nlsf.constraints=1;
mfseq %w;
//mfseq2 Data1;
\end{lstlisting}
\end{minipage}
\quad
\begin{minipage}[t]{.6\linewidth}
\begin{lstlisting}
// resets the Advanced Fitter
// select Gaussian fitting function
// total 6 peaks //* USER INPUT HERE
// imposed constraints //* USER INPUT HERE
// activate constraints //* USER INPUT HERE
// fit mode 1 - initialization worksheet %W
// fit mode 2 - initialization worksheet %W
// one can use "mfseq NAME" to load a worksheet NAME instead of %w
\end{lstlisting}
\end{minipage}
\normalsize
\end{document}
Lesezeichen