mailr20220 - /trunk/docs/latex/relax.tex


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on June 19, 2013 - 19:30:
Author: bugman
Date: Wed Jun 19 19:30:41 2013
New Revision: 20220

URL: http://svn.gna.org/viewcvs/relax?rev=20220&view=rev
Log:
Added the listings package to the relax user manual LaTeX file.

This will be used to improve the formatting and look of relax scripts in the 
manual.


Modified:
    trunk/docs/latex/relax.tex

Modified: trunk/docs/latex/relax.tex
URL: 
http://svn.gna.org/viewcvs/relax/trunk/docs/latex/relax.tex?rev=20220&r1=20219&r2=20220&view=diff
==============================================================================
--- trunk/docs/latex/relax.tex (original)
+++ trunk/docs/latex/relax.tex Wed Jun 19 19:30:41 2013
@@ -37,6 +37,36 @@
             filecolor=blue,%
             linkcolor=blue,%
             urlcolor=blue}
+
+% Source code and scripts.
+\usepackage{listings}
+\usepackage[svgnames]{xcolor}
+\usepackage{textcomp}
+\lstset{
+    backgroundcolor=\color{white},
+    basewidth=0.5em,
+    basicstyle=\ttfamily \footnotesize,
+    breakatwhitespace=false,
+    breaklines=true,
+    captionpos=b,
+    columns=fixed,
+    commentstyle=\color{blue},
+    frame=none,
+    keepspaces=true,
+    keywordstyle=\bfseries \color{ForestGreen},
+    language=Python,
+    numbers=left,
+    numbersep=15pt,
+    numberstyle=\tiny \color{orange},
+    showspaces=false,
+    showstringspaces=false,
+    showtabs=false,
+    stepnumber=1,
+    stringstyle=\color{Crimson},
+    tabsize=4,
+    upquote=true,
+}
+
 
 % New commands.
 \newcommand{\example}[1]{\vspace{-1ex} \sloppy{\footnotesize \texttt{#1}}}




Related Messages


Powered by MHonArc, Updated Wed Jun 19 20:00:02 2013