Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example to clarify answer possed in #5. #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion currency_doc.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down