Skip to content

Commit

Permalink
Put figure captions below the figure
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Jul 2, 2020
1 parent f5c002b commit f641621
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 36 deletions.
14 changes: 9 additions & 5 deletions chapters/connectors.tex
Expand Up @@ -84,8 +84,10 @@ \subsection{Inside and Outside Connectors}\doublelabel{inside-and-outside-connec

\begin{example}
\begin{figure}[H]
\includegraphics[scale=0.95]{innerouterconnector}
\caption{Example for inside and outside connectors}
\begin{center}
\includegraphics[scale=0.95]{innerouterconnector}
\end{center}
\caption{Example for inside and outside connectors}
\end{figure}
The figure visualizes the following \lstinline!connect! equations to
the connector \lstinline!c! in the models \lstinline!m!$i$. Consider the
Expand Down Expand Up @@ -992,9 +994,11 @@ \subsection{Examples of Overconstrained Connection Graphs}\doublelabel{examples-

\begin{example}
\begin{figure}[H]
\caption{Example of a virtual connection graph.}
% Need to shrink a little to avoid overully
\includegraphics[scale=0.85]{overdetermined}
\begin{center}
% Need to shrink a little to avoid overully
\includegraphics[scale=0.85]{overdetermined}
\end{center}
\caption{Example of a virtual connection graph.}
\end{figure}
\end{example}

Expand Down
24 changes: 12 additions & 12 deletions chapters/derivationofstream.tex
Expand Up @@ -41,10 +41,10 @@ \section{Reasons for avoiding the actual mixing enthalpy in connector definition
equations. The stream connectors provide a suitable alternative.

\begin{figure}[H]
\caption{Exemplary connection set with three connected components and a common mixing enthalpy}
\begin{center}
\includegraphics[width=3in,height=3in]{fluidmix}
\end{center}
\begin{center}
\includegraphics[width=3in,height=3in]{fluidmix}
\end{center}
\caption{Exemplary connection set with three connected components and a common mixing enthalpy}
\end{figure}

\section{Rationale for the formulation of inStream}\doublelabel{rationale-for-the-formulation-of-the-instream-operator}
Expand Down Expand Up @@ -137,10 +137,10 @@ \section{Rationale for the formulation of inStream}\doublelabel{rationale-for-th
\text{\lstinline!inStream!}(h_{outflow,3}) &= \frac{\text{max}(-\dot{m}_1,0)h_{outflow,1}+\text{max}(-\dot{m}_2,0)h_{outflow,2}}{\text{max}(-\dot{m}_1,0)+\text{max}(-\dot{m}_2,0)}
\end{align*}
\begin{figure}[H]
\caption{Exemplary connection set with three connected components}
\begin{center}
\includegraphics[width=3in,height=3in]{fluidmix3}
\end{center}
\begin{center}
\includegraphics[width=3in,height=3in]{fluidmix3}
\end{center}
\caption{Exemplary connection set with three connected components}
\end{figure}

In the general case of a connection set with \emph{n} components,
Expand Down Expand Up @@ -188,10 +188,10 @@ \subsection{Connection of 3 stream connectors where one mass flow rate is identi
\end{cases}
\end{align*}
\begin{figure}[H]
\caption{Example series connection of multiple models with stream connectors }
\begin{center}
\includegraphics[width=6in,height=3in]{fluidmix4}
\end{center}
\begin{center}
\includegraphics[width=6in,height=3in]{fluidmix4}
\end{center}
\caption{Example series connection of multiple models with stream connectors }
\end{figure}

For the two components with finite mass flow rates (not the sensor), the
Expand Down
9 changes: 5 additions & 4 deletions chapters/interface.tex
Expand Up @@ -118,10 +118,11 @@ \section{The Concepts of Type, Interface and Subtype}\doublelabel{the-concepts-o
in all its values.

\begin{figure}[H]
\caption{The type \lstinline!R! can be defined as the set of
record values containing \lstinline!x! and \lstinline!b!. The subtype \lstinline!R2! is the subset of values
that all contain \lstinline!x!, \lstinline!b!, and \lstinline!y!.}
\includegraphics[width=9cm]{subtype}
\begin{center}
\includegraphics[width=9cm]{subtype}
\end{center}
\caption{The type \lstinline!R! can be defined as the set o record values containing \lstinline!x! and \lstinline!b!. The subtype \lstinline!R2! is the subset of value that all contain
\lstinline!x!, \lstinline!b!, and \lstinline!y!.}
\end{figure}
\end{example}

Expand Down
12 changes: 6 additions & 6 deletions chapters/packages.tex
Expand Up @@ -327,12 +327,12 @@ \subsubsection{Example of Searching MODELICAPATH}\doublelabel{example-of-searchi
as the file \filename{C:\textbackslash{}lib2\textbackslash{}ComplexNumbers.mo}.

\begin{figure}[H]
\caption{%
Roots of package hierarchies, e.g., \lstinline!Modelica!, \lstinline!MyLib!, and \lstinline!ComplexNumbers! in
\lstinline!MODELICAPATH! = \filename{"C:\textbackslash{}library;C:\textbackslash{}lib1;C:\textbackslash{}lib2"}.
}
\label{fig:roots}
\includegraphics[width=6in,height=2in]{modelicapath}
\begin{center}
\includegraphics[width=6in,height=2in]{modelicapath}
\end{center}
\caption{Roots of package hierarchies, e.g., \lstinline!Modelica!, \lstinline!MyLib!, and \lstinline!ComplexNumbers! in
\lstinline!MODELICAPATH! = \filename{"C:\textbackslash{}library;C:\textbackslash{}lib1;C:\textbackslash{}lib2"}.}
\label{fig:roots}
\end{figure}

Assume that we want to access the package \lstinline!MyLib.Pack2! in \autoref{fig:roots} above, e.g.\ through an \lstinline!import!-clause \lstinline!import MyLib.Pack2;!.
Expand Down
8 changes: 4 additions & 4 deletions chapters/stream.tex
Expand Up @@ -123,10 +123,10 @@ \section{Stream Operator inStream and Connection Equations}\doublelabel{stream-o
end FluidSystem;
\end{lstlisting}
\begin{figure}[H]
\caption{Examplary FluidSystem with $N$=3 and $M$=2}
\begin{center}
\includegraphics[width=2.3in,height=2.08125in]{fluidsystem}
\end{center}
\begin{center}
\includegraphics[width=2.3in,height=2.08125in]{fluidsystem}
\end{center}
\caption{Examplary FluidSystem with $N$=3 and $M$=2}
\end{figure}

\begin{nonnormative}
Expand Down
9 changes: 4 additions & 5 deletions chapters/synchronous.tex
Expand Up @@ -15,11 +15,10 @@ \subsection{Overview}\doublelabel{overview}

The following small example shows the most important elements:
\begin{figure}[H]
\caption{A continuous plant and a sampled data controller connected
together with sample and (zero-order) hold elements}
\begin{center}
\includegraphics[width=7in,height=4in]{plantmodel}
\end{center}
\begin{center}
\includegraphics[width=7in,height=4in]{plantmodel}
\end{center}
\caption{A continuous plant and a sampled data controller connected together with sample and (zero-order) hold elements}
\end{figure}

\begin{itemize}
Expand Down

0 comments on commit f641621

Please sign in to comment.