From 315378f7528c8975ebef6f6667843fe4a20ffbd8 Mon Sep 17 00:00:00 2001 From: Henrik Tidefelt Date: Wed, 17 May 2023 11:50:59 +0200 Subject: [PATCH] Make connect-annotation example fit page width Fixes problem with empty line in listing caused by the entire list of points being moved to the next line. --- chapters/annotations.tex | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/chapters/annotations.tex b/chapters/annotations.tex index 96caa7e5f..417d8b9ca 100644 --- a/chapters/annotations.tex +++ b/chapters/annotations.tex @@ -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}