diff --git a/chapters/annotations.tex b/chapters/annotations.tex index 98219fbe6..fb7e25fbf 100644 --- a/chapters/annotations.tex +++ b/chapters/annotations.tex @@ -1096,8 +1096,9 @@ \subsubsection{Text}\label{text} \begin{example} If \lstinline!par = "Modelica.Blocks.Types.Enumeration.Periodic"!, then \%\emph{par} should be displayed as \emph{Periodic}. \end{example} - When quoted identifiers (e.g., \lstinline!rec.'}'.'quoted ident'!) are involved, the form \%\{\emph{par}\} must be used. - Here, \emph{par} is a general \lstinline[language=grammar]!component-reference!, and the macro can be directly followed by a letter. + When quoted identifiers (e.g., \lstinline!rec.'}'.'quoted ident'!) or composite names (i.e., not simple identifiers) are involved, the form \%\{\emph{par}\} must be used. + Here, \emph{par} is a general \lstinline[language=grammar]!component-reference!, and \lstinline!%{a.p}! gives the value of the parameter \lstinline!p! in the component \lstinline!a!. + The macro can be directly followed by a letter. Thus \lstinline!%{w}x%{h}! gives the value of \lstinline!w! directly followed by \emph{x} and the value of \lstinline!h!, while \lstinline!%wxh! gives the value of the parameter \lstinline!wxh!. If the parameter does not exist it is an error. \end{itemize}