/[ascend]/trunk/doc/howto-model3.lyx
ViewVC logotype

Diff of /trunk/doc/howto-model3.lyx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1385 by jpye, Sat Apr 7 09:13:41 2007 UTC revision 1386 by jpye, Sat Apr 7 09:14:32 2007 UTC
# Line 3  Line 3 
3  \begin_document  \begin_document
4  \begin_header  \begin_header
5  \textclass book  \textclass book
6    \begin_preamble
7    \usepackage[bookmarks,bookmarksnumbered=true]{hyperref}
8    \usepackage{lmodern}
9    \usepackage{color}
10    \definecolor{darkred}{rgb}{0.55,0,0}
11    \definecolor{darkgreen}{rgb}{0,0.55,0}
12    
13    \usepackage{listings}
14    
15    \lstdefinelanguage{ascend}{
16      morekeywords=[1]{
17         REQUIRE,IMPORT,NOTES,
18         ATOM,MODEL,METHOD,METHODS,
19         UNIVERSAL,CONSTANT,DIMENSION,DEFAULT,
20         END,FOR,CREATE,DO,EXTERNAL,  
21         CONDITIONAL,SATISFIED,WHEN,CASE,OTHERWISE,TRUE,
22         FALSE,SELF,
23      },
24      morekeywords=[2]{
25         REFINES,IS_A,WILL_BE,ALIASES,INPUT,OUTPUT,DATA,
26         FIX,FREE,RUN,ARE_THE_SAME
27      },
28      morekeywords=[3]{
29         solver_var,integer_constant
30      },
31      sensitive=true,
32      morecomment=[s][\color{blue}]{(*}{*)},
33      morestring=[b][\color{darkgreen}]',
34      morestring=[b][\color{darkgreen}]",
35      morecomment=[s][\color{darkgreen}]{\{}{\}},
36    }
37    
38    \lstnewenvironment{ascend}
39      {\lstset{basicstyle=\ttfamily\small, keywordstyle=\color{darkred}}}
40      {}
41    
42    \lstdefinestyle{ascendlisting}{
43      style=ascendlisting,
44      basicstyle=\small\ttfamily,
45      numbers=left,
46      numbersep=5pt,
47      numberstyle=\tiny,
48      escapeinside={(*@}{@*)}
49      backgroundcolor=\color{lightgrey}
50    }
51    \end_preamble
52  \language english  \language english
53  \inputencoding auto  \inputencoding auto
54  \fontscheme default  \fontscheme default

Legend:
Removed from v.1385  
changed lines
  Added in v.1386

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22