this is for holding javascript data
Deyan Ginev edited section_Code_Listings_We_will__.tex
almost 9 years ago
Commit id: 5c0607a4a7f1f1f78ad0c27251308151a646e226
deletions | additions
diff --git a/section_Code_Listings_We_will__.tex b/section_Code_Listings_We_will__.tex
index ee1616a..2cea40d 100644
--- a/section_Code_Listings_We_will__.tex
+++ b/section_Code_Listings_We_will__.tex
...
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}