Skip to content

Commit

Permalink
Fix false indention in code listings
Browse files Browse the repository at this point in the history
  • Loading branch information
tobolar committed May 13, 2022
1 parent 9dc3f20 commit ab52d35
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
28 changes: 14 additions & 14 deletions chapters/classes.tex
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ \subsection{Component Variability Prefixes}\label{component-variability-prefixes
if state then // code which is removed during symbolic
der(v) = a; // processing, if state=false
der(r) = v;
end if;
end if;
end Inertia;
\end{lstlisting}

Expand All @@ -464,7 +464,7 @@ \subsection{Component Variability Prefixes}\label{component-variability-prefixes
changed after they have been given a value. It can be used to represent
mathematical constants, e.g.
\begin{lstlisting}[language=modelica]
final constant Real PI=4*atan(1);
final constant Real PI = 4*atan(1);
\end{lstlisting}

There are no continuous-time \lstinline!Boolean!, \lstinline!Integer! or \lstinline!String!
Expand Down Expand Up @@ -877,7 +877,7 @@ \section{Specialized Classes}\label{specialized-classes}
algorithm
result := Complex(re=c1.re*c2.re - c1.im*c2.im,
im=c1.re*c2.im + c1.im*c2.re);
end '*';
end '*';
end Complex;
record MyComplex
extends Complex; // Error; extending from enclosing scope.
Expand Down Expand Up @@ -1171,7 +1171,7 @@ \section{Balanced Models}\label{balanced-models}
import Modelica.Units.SI;

partial model BaseProperties
"Interface of medium model for all type of media"
"Interface of medium model for all type of media"
parameter Boolean preferredStates = false;
constant Integer nXi "Number of independent mass fractions";
InputAbsolutePressure p;
Expand Down Expand Up @@ -1693,16 +1693,16 @@ \subsubsection{StateSelect}\label{stateselect}

\begin{lstlisting}[language=modelica]
type StateSelect = enumeration(
never "Do not use as state at all.",
avoid "Use as state, if it cannot be avoided (but only if variable appears
differentiated and no other potential state with attribute
default, prefer, or always can be selected).",
default "Use as state if appropriate, but only if variable appears
differentiated.",
prefer "Prefer it as state over those having the default value
(also variables can be selected, which do not appear
differentiated).",
always "Do use it as a state."
never "Do not use as state at all.",
avoid "Use as state, if it cannot be avoided (but only if variable appears
differentiated and no other potential state with attribute
default, prefer, or always can be selected).",
default "Use as state if appropriate, but only if variable appears
differentiated.",
prefer "Prefer it as state over those having the default value
(also variables can be selected, which do not appear
differentiated).",
always "Do use it as a state."
);
\end{lstlisting}

Expand Down
2 changes: 1 addition & 1 deletion chapters/connectors.tex
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ \subsection{Expandable Connectors}\label{expandable-connectors}
end EngineBus;

block Sensor
RealOutput speed;
RealOutput speed;
end Sensor;

model Engine
Expand Down

0 comments on commit ab52d35

Please sign in to comment.