From 8757f629efa2f4400c4168893d5f8574257d3f17 Mon Sep 17 00:00:00 2001 From: Henrik Tidefelt Date: Sun, 22 Nov 2020 23:50:06 +0100 Subject: [PATCH] Use lstlisting instead of \lstinline for complete element --- chapters/synchronous.tex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chapters/synchronous.tex b/chapters/synchronous.tex index 8c7d8f9f2..19bb2f1d8 100644 --- a/chapters/synchronous.tex +++ b/chapters/synchronous.tex @@ -514,7 +514,9 @@ \section{Clock Constructors}\label{clock-constructors} Clock variables can be declared in models, blocks, connectors, and records. A clock variable can be declared with the prefixes \lstinline!input!, \lstinline!output!, \lstinline!inner!, \lstinline!outer!, but \emph{not} with the prefixes \lstinline!flow!, \lstinline!stream!, \lstinline!discrete!, \lstinline!parameter!, or \lstinline!constant!. \begin{example} - \lstinline!connector ClockInput = input Clock;! +\begin{lstlisting}[language=modelica] +connector ClockInput = input Clock; +\end{lstlisting} \end{example} \end{itemize}