-
Notifications
You must be signed in to change notification settings - Fork 42
/
MLS.tex
170 lines (124 loc) · 3.95 KB
/
MLS.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
\documentclass[10pt,a4paper]{report}
\NeedsTeXFormat{LaTeX2e}
\usepackage[utf8]{inputenc}
\input{preamble.tex}
% Define title for use by LaTeXML.
% An extended title is defined separately in the 'titlepage'.
\newcommand{\mlsversion}{3.5-dev}
\title{Modelica\textsuperscript{\textregistered} Language Specification version~\mlsversion}
\date{\today}
\author{Modelica Association}
% The other parts start on new page and could be optionally included
\begin{document}
% Setting pageanchor false for these unnumbered pages
% Changed back after abstract
% The downside is that you cannot go to them in acrobat
% This is from https://tex.stackexchange.com/questions/18924/pdftex-warning-ext4-destination-with-the-same-identifier-nam-epage-1-has
% The accepted solution did not seem to work
\hypersetup{pageanchor=false,bookmarksdepth=2,destlabel=true,bookmarksopenlevel=0}
% Title
\begin{titlepage}
% Note that things like \vspace and linebreaks with height (\\[2\baselineskip]) are lost in generated HTML;
% only line breaks and paragraph breaks survive.
\addtolength{\parskip}{\baselineskip}% Lots of space between paragraphs on the PDF title page.
\vspace*{\fill}
\begin{center}
\ifpdf
\includegraphics[width=8cm]{Modelica_Language}
\else
\includegraphics[width=15cm]{Modelica_Language}
\fi
\vspace{1cm}
\huge
Modelica\textsuperscript{\textregistered} -- A Unified Object-Oriented Language for~Systems Modeling
Language Specification
Version \mlsversion
\vspace{1cm}% This has no effect in the generated HTML.
\Large
\makeatletter
\@date
\@author
\makeatother
\end{center}
\ifpdf
\vfill
\else
\newpage % In the HTML, this will appear as some extra vertical space.
\fi
\input{chapters/abstract}
\end{titlepage}
% Add new Modelica Language logotype
% The header ruler looks odd as Modelica Language define a natural line that is further up
% We also need to fill the vertical space on the right
% Not using page numbers in right-header, since we usually refer to sections.
%
% Using nouppercase since it is seems more normal for the sections, and is also
% needed for over-determined connectors (as it would otherwise overflow)
\cleardoublepage
\pagestyle{fancy}
\rhead{Modelica Language Specification 3.5-dev\\ \nouppercase{\rightmark} \vspace{1mm}}
\lhead{\includegraphics[height=6.5mm]{Modelica_Language}}
\renewcommand{\headrulewidth}{0.0pt}
\hypersetup{pageanchor=true}
% Copyright
\input{chapters/copyright}
\cleardoublepage
\tableofcontents
% Preface
\input{chapters/preface}
% Introduction
\input{chapters/introduction}
% Lexical Structure
\input{chapters/lexicalstructure}
% Operators and Expressions
\input{chapters/operatorsandexpressions}
% Classes, Predefined Types, and Declarations
\input{chapters/classes}
% Scoping, Name Lookup, and Flattening
\input{chapters/scoping}
% Interface or Type Relationships
\input{chapters/interface}
% Inheritance, Modification, and Redeclaration
\input{chapters/inheritance}
% Equations
\input{chapters/equations}
% Connectors and Connections
\input{chapters/connectors}
% Arrays
\input{chapters/arrays}
% Statements and Algorithm Chapters
\input{chapters/statements}
% Functions
\input{chapters/functions}
% Packages
\input{chapters/packages}
% Overloaded Operators
\input{chapters/overloaded}
% Stream Connectors
\input{chapters/stream}
% Synchronous Language Elements
\input{chapters/synchronous}
% State Machines
\input{chapters/statemachines}
% Annotations
\input{chapters/annotations}
% Unit Expressions
\input{chapters/unitexpressions}
% The Modelica Standard Library
\input{chapters/library}
\appendix
% https://tex.stackexchange.com/questions/370384/change-toc-depth-mid-document
\addtocontents{toc}{\setcounter{tocdepth}{0}}
% Glossary
\input{chapters/glossary}
% Modelica Concrete Syntax
\input{chapters/syntax}
% Modelica DAE Representation}
\input{chapters/dae}
% Derivation of Stream Equations
\input{chapters/derivationofstream}
% Modelica Revision History
\input{chapters/revisions}
% Literature
\input{chapters/literature}
\end{document}