Skip to content

Commit

Permalink
Replace \textbf by \firstuse when terms are introduced in tables
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Jun 7, 2020
1 parent 4a979d8 commit 3e94d51
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions chapters/synchronous.tex
Expand Up @@ -190,16 +190,17 @@ \subsection{Clocks and Clocked Variables}\doublelabel{clocks-and-clocked-variabl
expressions/variables are defined that are associated to clocks and are
therefore called \firstuse{clocked discrete-time} expressions:
% henrikt-ma: Misusing \tablehead inside the table below to act as some sort of table title.
% Similarly, while this table is actually a list of definitions, the styling of the terms being described
% should probably use something else than \firstuse, perhaps more like a 'description' environment.
% This is all different than how things are done elsewhere, but fixing this is considered a topic for issue #2562.
\begin{longtable}[]{|p{7.3cm}|p{7.3cm}|}
\hline
\multicolumn{2}{|p{14.6cm}|}{\tablehead{The different kinds of discrete-time variables in Modelica}}\\ \hline
\endhead
\begin{tabular}{p{7cm}}
\includegraphics[width=3in,height=1.875in]{piecewise}
\end{tabular}&\begin{tabular}{p{7cm}}\textbf{Piecewise-constant variables (see \autoref{discrete-time-expressions})}

Variables \lstinline!m(t)! of base type \lstinline!Real!, \lstinline!Integer!, \lstinline!Boolean!,
\end{tabular}&\begin{tabular}{p{7cm}}\firstuse{Piecewise-constant variables}\\
(See \autoref{discrete-time-expressions}.) Variables \lstinline!m(t)! of base type \lstinline!Real!, \lstinline!Integer!, \lstinline!Boolean!,
enumeration, and \lstinline!String! that are \emph{constant} inside each interval
t\textsubscript{i} $\le$ t \textless{} t\textsubscript{i+1} (= piecewise
constant continuous-time variables). In other words, \lstinline!m(t)!
Expand All @@ -210,8 +211,7 @@ \subsection{Clocks and Clocked Variables}\doublelabel{clocks-and-clocked-variabl
\begin{tabular}{p{7cm}}
\includegraphics[width=3in,height=1.875in]{clock}
\end{tabular}&
\begin{tabular}{p{7cm}}\textbf{Clock variables}

\begin{tabular}{p{7cm}}\firstuse{Clock variables}\\
Clock variables \lstinline[mathescape=true]!c($t_{i}$)! are of base type \lstinline!Clock!. A
clock is either defined by a constructor (such as \lstinline!Clock(3)!)
that defines when the clock ticks (is active) at a particular time
Expand All @@ -229,7 +229,7 @@ \subsection{Clocks and Clocked Variables}\doublelabel{clocks-and-clocked-variabl
\begin{tabular}{p{7cm}}
\includegraphics[width=3in,height=1.875in]{clocked}
\end{tabular}&
\begin{tabular}{p{7cm}}\textbf{Clocked variables}
\begin{tabular}{p{7cm}}\firstuse{Clocked variables}\\
The elements of clocked variables \lstinline[mathescape=true]!r($t_{i}$)! are of
base type \lstinline!Real!, \lstinline!Integer!, \lstinline!Boolean!, enumeration, \lstinline!String! that are
associated uniquely with a clock \lstinline[mathescape=true]!c($t_{i}$)!. A
Expand Down Expand Up @@ -350,8 +350,7 @@ \section{Clock Constructors}\doublelabel{clock-constructors}
\lstinline!Clock()!
&
\begin{tabular}{@{}p{119mm}@{}}
\textbf{Inferred Clock}\\

\firstuse{Inferred Clock}\\
The operator returns a clock that is inferred.
\par
\begin{example*}
Expand All @@ -377,8 +376,7 @@ \section{Clock Constructors}\doublelabel{clock-constructors}
\end{tabular}
&
\begin{tabular}{@{}p{119mm}@{}}
\textbf{Clock with Rational Interval}\\

\firstuse{Clock with Rational Interval}\\
The first input argument, \lstinline!intervalCounter!, is a clocked Component
Expression (see \autoref{argument-restrictions-component-expression}) or a parameter expression of type
\lstinline!Integer! with \lstinline!min=0!. The optional second argument \lstinline!resolution!
Expand Down Expand Up @@ -428,8 +426,7 @@ \section{Clock Constructors}\doublelabel{clock-constructors}
\lstinline!Clock(interval)!
&
\begin{tabular}{@{}p{119mm}@{}}
\textbf{Clock with Real Interval}\\

\firstuse{Clock with Real Interval}\\
The input argument, \lstinline!interval!, is a clocked Component Expression (see
\autoref{argument-restrictions-component-expression}) or a parameter expression.
The \lstinline!interval! must be strictly positive (\lstinline!interval>0.0!) of type \lstinline!Real! with \lstinline!unit="s"!.
Expand Down Expand Up @@ -457,8 +454,7 @@ \section{Clock Constructors}\doublelabel{clock-constructors}
\end{tabular}
&
\begin{tabular}{@{}p{119mm}@{}}
\textbf{Event Clock}\\

\firstuse{Event Clock}\\
The input argument, \lstinline!condition!, is a continuous-time expression of type
Boolean. The optional \lstinline!startInterval! argument (default = 0.0) is the
value returned by \lstinline!interval()! at the first tick of
Expand Down Expand Up @@ -488,8 +484,7 @@ \section{Clock Constructors}\doublelabel{clock-constructors}
\end{tabular}
&
\begin{tabular}{@{}p{119mm}@{}}
\textbf{Solver Clock}\\

\firstuse{Solver Clock}\\
The first input argument \lstinline!c! is a clock and the operator returns this
clock. The returned clock is associated with the second input argument
of type String \lstinline!solverMethod!. The meaning of solverMethod is defined
Expand Down

0 comments on commit 3e94d51

Please sign in to comment.