From da608b3bc374d79a689b8a7b2f8bc30d43d22d2b Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 5 Jun 2017 23:21:01 +0000 Subject: currency (28may17) git-svn-id: svn://tug.org/texlive/trunk@44489 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/currency/currency.sty | 143 ++++++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/currency/currency.sty (limited to 'Master/texmf-dist/tex/latex/currency') diff --git a/Master/texmf-dist/tex/latex/currency/currency.sty b/Master/texmf-dist/tex/latex/currency/currency.sty new file mode 100644 index 00000000000..c098f2b7f47 --- /dev/null +++ b/Master/texmf-dist/tex/latex/currency/currency.sty @@ -0,0 +1,143 @@ +%% +%% This is file `currency.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% currency.dtx (with options: `package') +%% +%% This is a generated file. +%% +%% Copyright (C) 2015 by Scott Pakin +%% +%% This file may be distributed and/or modified under the conditions of +%% the LaTeX Project Public License, either version 1.3 of this license +%% or (at your option) any later version. The latest version of this +%% license is in: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% and version 1.3 or later is part of all distributions of LaTeX version +%% 2005/12/01 or later. +%% +\NeedsTeXFormat{LaTeX2e}[2005/12/01] +\ProvidesPackage{currency} + [2017/05/25 v0.1 .dtx currency file] +\RequirePackage{siunitx} +\RequirePackage{pgfkeys} +\RequirePackage{etoolbox} +\RequirePackage{xparse} +\RequirePackage{expl3} +\RequirePackage{textcomp} +\RequirePackage{eurosym} +\newif\ifcurrencynumber +\pgfkeys{/currency/.cd,number/.is if=currencynumber,number=true} +\newif\ifprintbefore +\pgfkeys{/currency/pre/.is if=printbefore} +\pgfkeys{/currency/name/.initial=ZZZ} +\pgfkeys{/currency/symbol/.initial=\textcurrency} + +\pgfkeys{/currency/currency/.style={}} +\newcommand{\CurrencySetup}[1]{% + \pgfkeys{/currency/currency/.style={#1}}% +} +\newcommand{\CurrencySetupAppend}[1]{% + \pgfkeys{/currency/currency/.append style={#1}}% +} +\pgfkeys{/currency/name/.store in=\currencyName} +\pgfkeys{/currency/plural/.store in=\currencyNames} +\pgfkeys{/currency/plural/.initial=\currencyName s} +\pgfkeys{/currency/iso/.store in=\currencyISO} +\pgfkeys{/currency/symbol/.store in=\currencySymbol} +\pgfkeys{/currency/pre-between/.initial={~}} +\pgfkeys{/currency/post-between/.initial={~}} +\pgfkeys{/currency/before/.initial={}} +\pgfkeys{/currency/before+/.code={\pgfkeys{/currency/before/.append={#1}}}} +\pgfkeys{/currency/before