/[ascend]/trunk/doc/book.lyx
ViewVC logotype

Annotation of /trunk/doc/book.lyx

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1385 - (hide annotations) (download) (as text)
Sat Apr 7 09:13:41 2007 UTC (17 years, 7 months ago) by jpye
File MIME type: application/x-lyx
File size: 4499 byte(s)
Some work on adding 'listing' support in the ASCEND manual.
1 jpye 1384 #LyX 1.4.3 created this file. For more info see http://www.lyx.org/
2     \lyxformat 245
3     \begin_document
4     \begin_header
5     \textclass book
6     \begin_preamble
7     \usepackage[bookmarks,bookmarksnumbered=true]{hyperref}
8     \usepackage{lmodern}
9 jpye 1385 \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 jpye 1384 \end_preamble
52     \language english
53     \inputencoding auto
54     \fontscheme palatino
55     \graphics default
56     \paperfontsize default
57     \spacing single
58     \papersize custom
59     \use_geometry true
60     \use_amsmath 1
61     \cite_engine basic
62     \use_bibtopic false
63     \paperorientation portrait
64     \leftmargin 2cm
65     \topmargin 2cm
66     \rightmargin 4cm
67     \bottommargin 2cm
68     \headsep 0.7cm
69     \secnumdepth 3
70     \tocdepth 3
71     \paragraph_separation indent
72     \defskip medskip
73     \quotes_language english
74     \papercolumns 1
75     \papersides 1
76     \paperpagestyle default
77     \tracking_changes false
78     \output_changes true
79     \end_header
80    
81     \begin_body
82    
83     \begin_layout Title
84     ASCEND
85     \end_layout
86    
87     \begin_layout Author
88     The ASCEND Modelling and Simulation Environment
89     \newline
90     (c) 2006-2007 Carnegie Mellon
91     University
92     \end_layout
93    
94     \begin_layout Standard
95     \begin_inset ERT
96     status open
97    
98     \begin_layout Standard
99    
100    
101     \backslash
102     frontmatter
103     \end_layout
104    
105     \end_inset
106    
107    
108     \begin_inset LatexCommand \tableofcontents{}
109    
110     \end_inset
111    
112    
113     \end_layout
114    
115     \begin_layout Standard
116     \begin_inset FloatList figure
117    
118     \end_inset
119    
120    
121     \end_layout
122    
123     \begin_layout Standard
124     \begin_inset FloatList table
125    
126     \end_inset
127    
128    
129     \end_layout
130    
131     \begin_layout Title
132     \begin_inset ERT
133     status open
134    
135     \begin_layout Standard
136    
137    
138     \backslash
139     mainmatter
140     \end_layout
141    
142     \end_inset
143    
144    
145     \end_layout
146    
147     \begin_layout Part
148     Tutorial
149     \end_layout
150    
151     \begin_layout Standard
152     \begin_inset Include \input{howto-overview.lyx}
153     preview false
154    
155     \end_inset
156    
157    
158     \end_layout
159    
160     \begin_layout Standard
161     \begin_inset Include \input{howto-model1.lyx}
162     preview false
163    
164     \end_inset
165    
166    
167     \end_layout
168    
169     \begin_layout Standard
170     \begin_inset Include \input{howto-model2.lyx}
171     preview false
172    
173     \end_inset
174    
175    
176     \end_layout
177    
178     \begin_layout Standard
179     \begin_inset Include \input{howto-model3.lyx}
180     preview false
181    
182     \end_inset
183    
184    
185     \end_layout
186    
187     \begin_layout Standard
188     \begin_inset Include \input{howto-require.lyx}
189     preview false
190    
191     \end_inset
192    
193    
194     \end_layout
195    
196     \begin_layout Standard
197     \begin_inset Include \input{howto-plot.lyx}
198     preview false
199    
200     \end_inset
201    
202    
203     \end_layout
204    
205     \begin_layout Standard
206     \begin_inset Include \input{howto-atoms.lyx}
207     preview false
208    
209     \end_inset
210    
211    
212     \end_layout
213    
214     \begin_layout Standard
215     \begin_inset Include \input{howto-dimeqns.lyx}
216     preview false
217    
218     \end_inset
219    
220    
221     \end_layout
222    
223     \begin_layout Standard
224     \begin_inset Include \input{howto-units.lyx}
225     preview false
226    
227     \end_inset
228    
229    
230     \end_layout
231    
232     \begin_layout Standard
233     \begin_inset Include \input{howto-methods.lyx}
234     preview false
235    
236     \end_inset
237    
238    
239     \end_layout
240    
241     \begin_layout Standard
242     \begin_inset Include \input{howto-physprops.lyx}
243     preview false
244    
245     \end_inset
246    
247    
248     \end_layout
249    
250     \begin_layout Standard
251     \begin_inset Include \input{howto-ivp.lyx}
252     preview false
253    
254     \end_inset
255    
256    
257     \end_layout
258    
259     \begin_layout Standard
260     \begin_inset Include \input{howto-conditional.lyx}
261     preview false
262    
263     \end_inset
264    
265    
266     \end_layout
267    
268     \begin_layout Standard
269     \begin_inset Include \input{howto-bvp.lyx}
270     preview false
271    
272     \end_inset
273    
274    
275     \end_layout
276    
277     \begin_layout Part
278     Language Reference
279     \end_layout
280    
281     \begin_layout Standard
282     \begin_inset Include \input{syntax.lyx}
283     preview false
284    
285     \end_inset
286    
287    
288     \end_layout
289    
290     \begin_layout Standard
291     \start_of_appendix
292    
293     \end_layout
294    
295     \begin_layout Standard
296     \begin_inset LatexCommand \bibtex[bibtotoc,plain]{ascend}
297    
298     \end_inset
299    
300    
301     \end_layout
302    
303     \begin_layout Standard
304     \begin_inset LatexCommand \printindex{}
305    
306     \end_inset
307    
308    
309     \end_layout
310    
311     \end_body
312     \end_document

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