Skip to content

Commit

Permalink
Be even more specific about where variable replacements can be used
Browse files Browse the repository at this point in the history
  • Loading branch information
otronarp committed Feb 11, 2020
1 parent f287cc9 commit 6334db1
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions chapters/annotations.tex
Expand Up @@ -189,9 +189,21 @@ \subsubsection{Axis Properties}\doublelabel{axis-properties}
the \lstinline!label! of \lstinline!Axis!

\subsubsection{Variable Replacements}\doublelabel{variable-replacements}
In most places where text is displayed (\lstinline!title!, \lstinline!caption!, \lstinline!legend!, \lstinline!label!),
the final value of a result variable can be embedded by refering to the variable
as \lstinline!%{inertia1.w}!. This is similar to the \lstinline!Text! graphical in \autoref{text}.
In most places where text for display is defined the final value of a result
variable can be embedded by refering to the variable as
\lstinline!%{inertia1.w}!. This is similar to the \lstinline!Text! graphical in
\autoref{text}.

\begin{longtable}[]{|l|l|}
\hline
\multicolumn{2}{|l|}{Attributes that can use variable replacements}\\ \hline
Attribute & Annotation \\ \hline
\lstinline!title! & \lstinline!Figure! and \lstinline!Plot! \\ \hline
\lstinline!caption! & \lstinline!Figure! \\ \hline
\lstinline!legend! & \lstinline!Curve! \\ \hline
\lstinline!label! & \lstinline!Axis! \\ \hline
\end{longtable}


Note that expansion to the final value means that expansion is not restricted to
parameters and constants, so that values to be shown in a caption can be
Expand Down

0 comments on commit 6334db1

Please sign in to comment.