Skip to content

Commit

Permalink
New environment for non-normative content without delimiting paragrap…
Browse files Browse the repository at this point in the history
…h breaks

When using the nonnormative* environment, it is the author's responsibility to ensure that the content doesn't mix with other paragraphs.  The main use at the moment is in tables, where there shouldn't be a paragraph break before the line break at the end of a table row.
  • Loading branch information
henrikt-ma committed Apr 26, 2020
1 parent 43537f3 commit 4cdc9bd
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions preamble.tex
Expand Up @@ -89,12 +89,22 @@
\renewcommand{\labelenumiii}{\labelenumii\arabic{enumiii}.}
\renewcommand{\labelenumiv}{\labelenumiii\arabic{enumiv}.}

% Non-normative content
% Non-normative content without paragraph breaks at beginning and end.
% In most cases, one should use the 'nonnormative' environment instead.
\newenvironment{nonnormative*}[0]{%
{[}\itshape\ignorespaces
}{%
\unskip\upshape{]}%
}

% Non-normative content with paragraph breaks at beginning and end.
\newenvironment{nonnormative}[0]{%
\par{[}\itshape\ignorespaces
\par\begin{nonnormative*}%
}{%
\unskip\upshape{]}\par%
\end{nonnormative*}\par%
}

% Example environment, as a special case of non-normative content.
\newenvironment{example}[0]{%
\begin{nonnormative}Example:
}{%
Expand Down

0 comments on commit 4cdc9bd

Please sign in to comment.