Skip to content

Commit

Permalink
Clarify difference without using bold.
Browse files Browse the repository at this point in the history
  • Loading branch information
HansOlsson committed May 12, 2023
1 parent 41c1976 commit 17e26ea
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions chapters/annotations.tex
Expand Up @@ -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}

Expand Down

0 comments on commit 17e26ea

Please sign in to comment.