summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/chemmacros/chemgreek.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/chemmacros/chemgreek.sty')
-rw-r--r--Master/texmf-dist/tex/latex/chemmacros/chemgreek.sty54
1 files changed, 49 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/chemmacros/chemgreek.sty b/Master/texmf-dist/tex/latex/chemmacros/chemgreek.sty
index 7471dc7f8a8..4b55da5450c 100644
--- a/Master/texmf-dist/tex/latex/chemmacros/chemgreek.sty
+++ b/Master/texmf-dist/tex/latex/chemmacros/chemgreek.sty
@@ -26,8 +26,8 @@
% - The Current Maintainer of this work is Clemens Niederberger.
% ----------------------------------------------------------------------------
\RequirePackage{expl3,xparse}
-\def\chemgreek@version{0.3}
-\def\chemgreek@date{2014/01/24}
+\def\chemgreek@version{0.4}
+\def\chemgreek@date{2014/01/29}
\ProvidesExplPackage{chemgreek}{\chemgreek@date}{\chemgreek@version}
{interface for upright greek letters for use in chemistry (CN)}
@@ -373,7 +373,7 @@
{ \chemgreek_activate_mapping:n { #1 } }
% ----------------------------------------------------------------------------
-% a debugging command:
+% debugging commands:
\cs_new_protected:Npn \chemgreek_print_mapping:n #1
{
\int_gzero:N \g__chemgreek_tmpa_int
@@ -420,6 +420,19 @@
\cs_new_eq:NN \showchemgreekmapping \chemgreek_show_mapping:n
+\cs_new_protected:Npn \chemgreek_print_alphabet:
+ {
+ \tl_map_inline:Nn \c__chemgreek_alphabet_tl
+ {
+ \use:c { chem ##1 }
+ \use:c { chem \tl_expandable_uppercase:n ##1 }
+ \c_space_tl
+ }
+ \tex_unskip:D
+ }
+
+\cs_new_eq:NN \printchemgreekalphabet \chemgreek_print_alphabet:
+
% ----------------------------------------------------------------------------
% deprecate old macro names that started with an uppercase C:
\cs_new_protected:Npn \chemgreek_deprecate_symbol:n #1
@@ -778,6 +791,35 @@
\mbox{\textomega} / \mbox{\textOmega} % 24
}
+% textgreek:
+\chemgreek_new_mapping:nnn { fontspec } { fontspec }
+ {
+ \mbox{\textalpha} / \mbox{\textAlpha} , % 1
+ \mbox{\textbeta} / \mbox{\textBeta} , % 2
+ \mbox{\textgamma} / \mbox{\textGamma} , % 3
+ \mbox{\textdelta} / \mbox{\textDelta} , % 4
+ \mbox{\textepsilon} / \mbox{\textEpsilon} , % 5
+ \mbox{\textzeta} / \mbox{\textZeta} , % 6
+ \mbox{\texteta} / \mbox{\textEta} , % 7
+ \mbox{\texttheta} / \mbox{\textTheta} , % 8
+ \mbox{\textiota} / \mbox{\textIota} , % 9
+ \mbox{\textkappa} / \mbox{\textKappa} , % 10
+ \mbox{\textlambda} / \mbox{\textLambda} , % 11
+ \mbox{\textmu} / \mbox{\textMu} , % 12
+ \mbox{\textnu} / \mbox{\textNu} , % 13
+ \mbox{\textxi} / \mbox{\textXi} , % 14
+ \mbox{o} / \mbox{O} , % 15
+ \mbox{\textpi} / \mbox{\textPi} , % 16
+ \mbox{\textrho} / \mbox{\textRho} , % 17
+ \mbox{\textsigma} / \mbox{\textSigma} , % 18
+ \mbox{\texttau} / \mbox{\textTau} , % 19
+ \mbox{\textupsilon} / \mbox{\textUpsilon} , % 20
+ \mbox{\textphi} / \mbox{\textPhi} , % 21
+ \mbox{\textpsi} / \mbox{\textPsi} , % 22
+ \mbox{\textchi} / \mbox{\textChi} , % 23
+ \mbox{\textomega} / \mbox{\textOmega} % 24
+ }
+
% activate default mapping
\chemgreek_activate_mapping:n { default }
@@ -823,10 +865,12 @@ HISTORY:
now issues a warning if the needed package hasn't been
loaded
- if hyperref has been loaded with package option `unicode'
- and the active mapping is `textalpha' we can use greek
- letters in PDF bookmarks
+ and `textalpha' package has been loaded, too, we can use
+ greek letters in PDF bookmarks
- new command \printchemgreekmapping
- \showchemgreekmapping now writes information to the log
+2014/01/29 - v0.4 - add mapping `fontspec'
+ - new command \printchemgreekalphabet
TODO: