diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/chemmacros/chemgreek_en.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/chemmacros/chemgreek_en.tex | 73 |
1 files changed, 27 insertions, 46 deletions
diff --git a/Master/texmf-dist/doc/latex/chemmacros/chemgreek_en.tex b/Master/texmf-dist/doc/latex/chemmacros/chemgreek_en.tex index fd4470c097a..6132029a8f1 100644 --- a/Master/texmf-dist/doc/latex/chemmacros/chemgreek_en.tex +++ b/Master/texmf-dist/doc/latex/chemmacros/chemgreek_en.tex @@ -4,7 +4,7 @@ % !arara: xelatex \documentclass[DIV11,toc=index,toc=bib]{cnpkgdoc} \docsetup{ - pkg = {[greek=math]chemmacros}, + pkg = {[greek=newtx]chemmacros}, language = en, title = the \Chemmacros\ bundle, subtitle = { @@ -17,6 +17,8 @@ code-box = {skipabove=1ex,skipbelow=1ex}, label = {}, name = chemgreek, + version = \csname chemgreek@version\endcsname , + date = \csname chemgreek@date\endcsname , url = https://bitbucket.org/cgnieder/chemmacros/ } @@ -290,49 +292,6 @@ \renewcommand*\AmS{\hologo{AmS}} -\newcommand*\Default[1]{% - \hfill\llap{% - \ifblank{#1} - {(initially~empty)} - {Default:~\code{#1}}% - }\newline -} - -\usepackage{marginnote,ragged2e} -\makeatletter -\providecommand*\sinceversion[1]{% - \@bsphack - \marginnote{% - \footnotesize\sffamily\RaggedRight - \textcolor{black!75}{Introduced in version~#1}}% - \@esphack} -\providecommand*\changedversion[1]{% - \@bsphack - \marginnote{% - \footnotesize\sffamily\RaggedRight - \textcolor{black!75}{Changed in version~#1}}% - \@esphack} - -\RenewDocumentCommand\CTANurl{O{macros/latex/contrib}m} - {% - on CTAN: % - \hyper@linkurl{#2}{http://mirrors.ctan.org/#1/#2/}% - } -\ExplSyntaxOn -\RenewDocumentCommand \paket { sO{macros/latex/contrib}m } - { - \paketfont { #3 } - \index { #3 @ \paketfont { #3 } } - \prop_if_in:NnF \g_cnpkgdoc_pakete_prop { #3 } - { - \prop_gput:Nnn \g_cnpkgdoc_pakete_prop { #3 } {} - \IfBooleanF { #1 } - { \footnote { \CTANurl[]{#3} } } - } - } -\ExplSyntaxOff -\makeatother - \newcommand*\tablehead[1]{\textrm{\bfseries#1}} \begin{document} @@ -348,7 +307,11 @@ some a whole alphabet some only the upright variants of the standard italic symbols for which macros are defined in base \LaTeX. \chemgreek\ offers a possibility to map those different interfaces to a -unified set of macros for usage in a chemistry package. +unified set of macros for usage in a chemistry package. This is useful as +then for example names like \iupac{\b\-\D\-gluco\|pyranose} can be typeset +with a semantic interface and still have matching greek letters while the user +is not limited to a certain package or font. Consequently this package is +used by \chemmacros\ and its \acs{iupac} naming commands. \section{Licence and Requirements} Permission is granted to copy, distribute and/or modify this software under @@ -361,6 +324,7 @@ the terms of the \LaTeX\ project public license (lppl) version 1.3 or later \paket*{xparse}\footnote{\CTANurl{l3packages}}. \section{Define Mappings} +\selectchemgreekmapping{default} \chemgreek's main commands are: \begin{beschreibung} @@ -368,7 +332,7 @@ the terms of the \LaTeX\ project public license (lppl) version 1.3 or later Add a new mapping to \chemgreek. Issue an error if it already exists. \Befehl{renewchemgreekmapping}{<name>}\ma{<mapping list>}\newline Renew a \chemgreek\ mapping. Issue an error if it doesn't exist yet. - \Befehl{newchemgreekmapping}{<name>}\ma{<mapping list>}\newline + \Befehl{declarechemgreekmapping}{<name>}\ma{<mapping list>}\newline Declare a new mapping to \chemgreek. If the mapping already exists it will be overwritten. \end{beschreibung} @@ -443,6 +407,8 @@ in table~\ref{tab:mappings}. upgreek & \paket*{upgreek} \\ newtx & \paket*{newtxmath} \\ kpfonts & \paket*{kpfonts} \\ + mathdesign & \paket*{mathdesign} \\ + fourier & \paket*{fourier} \\ \bottomrule \end{tabular} \caption{Predefined mappings.} @@ -490,6 +456,21 @@ mapping afterwards: \Chemalpha \end{beispiel} +\section{Inspecting a Mapping} +If you want to check if a mapping has been correctly set you can use +\begin{beschreibung} + \Befehl{showchemgreekmapping}{<mapping>} +\end{beschreibung} +which will typeset a table (using a simple \code{tabular} environment) with +all 48 characters like the one shown in table~\ref{tab:showmapping}. + +\begin{table}[htbp] + \centering + \showchemgreekmapping{newtx} + \caption{A demonstration of the \cmd*{showchemgreekmapping} command.} + \label{tab:showmapping} +\end{table} + \appendix \printindex |