From f005ac0c76183548262f70e93f3290dc9c1e7983 Mon Sep 17 00:00:00 2001 From: Henrik Tidefelt Date: Mon, 15 Feb 2021 11:56:43 +0100 Subject: [PATCH] More systematic use of \lstinline for figure annotations Axis and Curve Also fixing some issues with missing punctuation. --- chapters/annotations.tex | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/chapters/annotations.tex b/chapters/annotations.tex index a35145e7d..5b1afede6 100644 --- a/chapters/annotations.tex +++ b/chapters/annotations.tex @@ -173,9 +173,10 @@ \subsubsection{Axis Properties}\label{axis-properties} If a tool does not recognize the \lstinline!unit!, it is recommended to issue a warning and treat the \lstinline!unit! as if it was empty, as well as ignore any setting for \lstinline!min! and \lstinline!max!. -When an axis label isn't provided, the tool produces a default label. Providing the empty string as axis label means that no label should be shown. Variable replacements, as described in -\cref{variable-replacements}, can be used in the \lstinline!label! of \lstinline!Axis! The Modelica tool is responsible for showing the unit used for values at the axis tick marks, so the axis -\lstinline!label! shall not contain the unit. +When \lstinline!label! isn't provided, the tool produces a default label. +Providing the empty string as \lstinline!label! means that no label should be shown. +Variable replacements, as described in \cref{variable-replacements}, can be used in \lstinline!label!. +The Modelica tool is responsible for showing the unit used for values at the axis tick marks, so the axis \lstinline!label! shall not contain the unit. \subsubsection{Plot Curves}\label{plot-curves} @@ -192,11 +193,9 @@ \subsubsection{Plot Curves}\label{plot-curves} It is an error if \lstinline!x! or \lstinline!y! does not designate a scalar variable. When the \lstinline!unit! of an \lstinline!Axis! is non-empty, it is an error if the unit of the corresponding \lstinline!Curve! expression (i.e., a variable's \lstinline!unit!, or second for \lstinline!time!) is incompatible with the axis unit. -When \lstinline!legend! isn't provided, the tool produces a default based on -\lstinline!x! and/or \lstinline!y!. Providing the empty string as -\lstinline!legend! means that the curve shall be omitted from the plot legend. -Variable replacements, as described in \cref{variable-replacements}, can be -used in the \lstinline!legend! of \lstinline!Curve! +When \lstinline!legend! isn't provided, the tool produces a default based on \lstinline!x! and/or \lstinline!y!. +Providing the empty string as \lstinline!legend! means that the curve shall be omitted from the plot legend. +Variable replacements, as described in \cref{variable-replacements}, can be used in \lstinline!legend!. \subsubsection{Escape sequences}\label{text-markup-escape-sequences}