diff --git a/chapters/annotations.tex b/chapters/annotations.tex index 4164868ad..c00cadbe2 100644 --- a/chapters/annotations.tex +++ b/chapters/annotations.tex @@ -925,20 +925,19 @@ \subsection{Connections}\label{connections1} \end{example} The optional \lstinline!Text!\index{Text@\robustinline{Text}!\robustinline{connect} annotation} primitive defines a text that will be written on the connection line. -It has the following definition (\emph{it is not equal to the \lstinline!Text! primitive as part of graphics -- the differences are marked as bold lines}): -% NOTE: Technically just the names -- not the entire lines are marked in bold +It has the following definition (\emph{it is not equal to the \lstinline!Text! primitive as part of graphics -- the differences are marked after Note in the description-strings}): \begin{lstlisting}[language=modelica] record Text extends GraphicItem; Extent extent; - String string; + String string "Note: different name"; Real fontSize = 0 "unit pt"; String fontName; TextStyle textStyle[:]; Color textColor = Color.Black; TextAlignment horizontalAlignment = - if index < 0 then TextAlignment.Right else TextAligment.Left; - Integer index; + if index < 0 then TextAlignment.Right else TextAligment.Left "Note: different default"; + Integer index "Note: new"; end Text; \end{lstlisting}