Skip to content

Commit

Permalink
Use lstlisting instead of \lstinline for complete element
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Nov 22, 2020
1 parent 31653d6 commit 8757f62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chapters/synchronous.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down

0 comments on commit 8757f62

Please sign in to comment.