From 2da4c16640ea753f58287b4d823129fd29085249 Mon Sep 17 00:00:00 2001 From: Raffi Khatchadourian Date: Mon, 30 Aug 2021 14:01:37 -0400 Subject: [PATCH] Add example to clarify answer possed in #5. --- currency_doc.tex | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/currency_doc.tex b/currency_doc.tex index d36ded5..1f82f98 100644 --- a/currency_doc.tex +++ b/currency_doc.tex @@ -142,12 +142,17 @@ \section{Currency definition} See Section~\ref{sec:using}. -For example, to define the US dollars, we set +For example, to define the US dollars an ISO suffix, we set \begin{sourcecode}[add-sourcecode-options={deletedelim=*[s][\color{math}]{$}{$}}] \DefineCurrency{USD}{name={dollar}, plural={dollars}, iso={USD}, kind=iso, symbol={\$}} \end{sourcecode} +To define the US dollars using a symbol prefix, we set + +\begin{sourcecode}[add-sourcecode-options={deletedelim=*[s][\color{math}]{$}{$}}] + \DefineCurrency{USD}{name={dollar}, plural={dollars}, iso={USD}, kind=symbol, symbol={\$}, pre, pre-between={}} +\end{sourcecode} Other styles may be defined through \cs*{pgfkeys} by following this example: \begin{example}