Skip to content

Commit

Permalink
Turn too long \lstinline into lstlisting
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Nov 22, 2020
1 parent a7d3d51 commit 9975c70
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion chapters/synchronous.tex
Expand Up @@ -499,7 +499,16 @@ \section{Clock Constructors}\label{clock-constructors}
\item
If-expressions of clocks in equations.
\begin{example}
\lstinline!Clock c2 = if f>0 then subSample(c1, f) elseif f<0 then superSample(c1, f) else c1!
\begin{lstlisting}[language=modelica]
Clock c2 =
if f > 0 then
subSample(c1, f)
elseif f < 0 then
superSample(c1, f)
else
c1;
\end{lstlisting}
\lstinline!!
\end{example}
\item
Clock variables can be declared in models, blocks, connectors, and
Expand Down

0 comments on commit 9975c70

Please sign in to comment.