Deyan Ginev edited section_Code_Listings_We_will__.tex  almost 9 years ago

Commit id: 5c0607a4a7f1f1f78ad0c27251308151a646e226

deletions | additions      

       

We will be illustrating all of our examples with code listings in this tutorial, so it makes sense to first show how to use them.  An example setup that you should add to your Header file is:  \begin{lstlisting} \begin{lstlisting}[caption={Setting up the listings environment}]  \usepackage{listings}  \lstset{ %  backgroundcolor=\color{white}, % choose the background color 

xleftmargin=\fboxsep, %  xrightmargin=-\fboxsep, %  }  \caption{Setting up the listings environment}  \end{lstlisting}