Skip to content

Commit

Permalink
Enforce paragraph break at beginning and end of non-normative content
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Apr 23, 2020
1 parent 6c9a4e7 commit f826389
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions chapters/annotations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -862,11 +862,9 @@ \subsubsection{Text}\doublelabel{text}
The intent is that the text is easily readable,
thus if \lstinline!par! is of an enumeration type, replace \lstinline!%par! by the item name,
not by the full name.

\begin{example}
If \lstinline!par = "Modelica.Blocks.Types.Enumeration.Periodic"!, then \lstinline!%par! should be displayed as \emph{Periodic}.
\end{example}

The form \%\{\emph{par\}} allows component-references, and 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! -- and \lstinline!%wxh! gives the value of the
Expand Down
4 changes: 2 additions & 2 deletions preamble.tex
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@

% Non-normative content
\newenvironment{nonnormative}[0]{%
{[}\itshape\ignorespaces
\par{[}\itshape\ignorespaces
}{%
\unskip\upshape{]}%
\unskip\upshape{]}\par%
}
\newenvironment{example}[0]{%
\begin{nonnormative}Example:
Expand Down

0 comments on commit f826389

Please sign in to comment.