Skip to content

Commit

Permalink
Make connect-annotation example fit page width
Browse files Browse the repository at this point in the history
Fixes problem with empty line in listing caused by the entire list of points being moved to the next line.
  • Loading branch information
henrikt-ma committed May 17, 2023
1 parent 2f5f52c commit 315378f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions chapters/annotations.tex
Expand Up @@ -953,11 +953,10 @@ \subsection{Connections}\label{connections1}
connect(controlBus.axisControlBus1, axis1.axisControlBus)
annotation(
Text(string = "%first", index = -1, extent = [-6, 3; -6, 7]),
Line(points =
{{-80,-10},{-80,-14.5},{-79,-14.5},{-79,-17},{-65,-17},{-65,-65},{-25,-65}})
Line(points = {{41, 30}, {50, 30}, {50, 50}, {58, 50}})
);
\end{lstlisting}
Draws a connection line and adds the text \emph{axisControlBus1} ending at $(-6,\, 3) + (-25,\, -65)$ and 4 vertical units of space for the text.
Draws a connection line and adds the text \emph{axisControlBus1} ending at $(-6,\, 3) + (58,\, 50)$ and 4 vertical units of space for the text.
Using a height of zero, such as \lstinline!extent = [-6, 3; -6, 3]! is deprecated, but gives similar result.
\end{example}

Expand Down

0 comments on commit 315378f

Please sign in to comment.