Code: Select all
\begin{lstlisting}
int main () {
bool b = true;
cout << boolalpha << b << endl;
cout << noboolalpha << b << endl;
return 0;
}
\end{lstlisting}
Code: Select all
\begin{lstlisting}
int main () {
bool b = true;
cout << boolalpha << b << endl;
cout << noboolalpha << b << endl;
return 0;
}
\end{lstlisting}
1) from the first: there are no empty spaces in the lstlisting's box in the pdf file (when generated with pdflatex)
2) from the second: is the style I would like to use when typing the latex code in the notepad
Any ideas how to do that?