Skip to content

Commit

Permalink
RewriteBasedOnSuggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
HansOlsson committed Oct 31, 2024
1 parent 95fe025 commit 267ebfc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chapters/annotations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1096,10 +1096,10 @@ \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!.
Additionally, \lstinline!%{a.p}! should give the value of the parameter \lstinline!p! in the component \lstinline!a!.
If the parameter does not exist it is an error.
\end{itemize}

Expand Down

0 comments on commit 267ebfc

Please sign in to comment.