diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex')
-rw-r--r-- | Master/texmf-dist/doc/latex/chemmacros/README | 16 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/chemmacros/chemformula_en.pdf | bin | 288581 -> 294026 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/chemmacros/chemformula_en.tex | 95 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/chemmacros/chemgreek_en.pdf | bin | 87351 -> 96884 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/chemmacros/chemgreek_en.tex | 73 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/chemmacros/chemmacros_en.pdf | bin | 338120 -> 344609 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/chemmacros/chemmacros_en.tex | 111 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/chemmacros/ghsystem_en.pdf | bin | 365205 -> 365289 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/chemmacros/ghsystem_en.tex | 43 |
9 files changed, 139 insertions, 199 deletions
diff --git a/Master/texmf-dist/doc/latex/chemmacros/README b/Master/texmf-dist/doc/latex/chemmacros/README index 4e707a06fc2..ccd9d3eb0c7 100644 --- a/Master/texmf-dist/doc/latex/chemmacros/README +++ b/Master/texmf-dist/doc/latex/chemmacros/README @@ -1,12 +1,12 @@ -------------------------------------------------------------------------- the CHEMMACROS bundle --> chemmacros package v4.0 -> macros and commands for chemists --> chemformula package v4.0 -> typeset chemical compounds and reactions +-> chemmacros package v4.1 -> macros and commands for chemists +-> chemformula package v4.1 -> typeset chemical compounds and reactions -> ghsystem package v4.0 -> typeset H & P statements and pictograms from the globally harmonised system (GHS) --> chemgreek package v0.1a -> handle mapping of upright greek letters to +-> chemgreek package v0.2 -> handle mapping of upright greek letters to the \chemalpha ... commands -2013/07/06 +2013/08/24 -------------------------------------------------------------------------- This bundle succeeds the chemmacros package which is now part of the bundle @@ -29,14 +29,6 @@ This work has the LPPL maintenance status `maintained'. The Current Maintainer of this work is Clemens Niederberger. -------------------------------------------------------------------------- -INSTALLATION NOTES: -Please make sure you have the directories - language/ - pictures/ -and the regarding files in it (*.def or *.eps,*.jpg,*png, or *.pdf respectively) -in the _same_ directory as the style files. -(probably something like $TEXMF/texmf/tex/latex/chemmacros/) --------------------------------------------------------------------------- The chemmacros bundle consists of the following files package files: - chemmacros.sty, diff --git a/Master/texmf-dist/doc/latex/chemmacros/chemformula_en.pdf b/Master/texmf-dist/doc/latex/chemmacros/chemformula_en.pdf Binary files differindex d998e09c4b7..2dc25020cab 100644 --- a/Master/texmf-dist/doc/latex/chemmacros/chemformula_en.pdf +++ b/Master/texmf-dist/doc/latex/chemmacros/chemformula_en.pdf diff --git a/Master/texmf-dist/doc/latex/chemmacros/chemformula_en.tex b/Master/texmf-dist/doc/latex/chemmacros/chemformula_en.tex index fe4a075664b..2d7864629a1 100644 --- a/Master/texmf-dist/doc/latex/chemmacros/chemformula_en.tex +++ b/Master/texmf-dist/doc/latex/chemmacros/chemformula_en.tex @@ -22,12 +22,18 @@ \usepackage{chemfig,booktabs,cancel} \usepackage[version=3]{mhchem} + \usepackage{fontspec} \usepackage[oldstyle,proportional]{libertine} +\expandafter\def\csname libertine@figurestyle\endcsname{LF} \usepackage[libertine]{newtxmath} +\expandafter\def\csname libertine@figurestyle\endcsname{OsF} + \usepackage{libertinehologopatch} \setmonofont[Scale=MatchLowercase]{Bitstream Vera Sans Mono} +% \usepackage{selnolig} + \cnpkgusecolorscheme{friendly} \renewcommand*\othersectionlevelsformat[3]{% \textcolor{main}{#3\autodot}\enskip} @@ -209,7 +215,7 @@ \redox(r1,r2)[blue,pencil,-cf][-1]{\small\ch[font-spec={[Color=blue]Augie},math-space=.3em]{$+$ 2 e-}}} \addcmds{ - a, abinitio, AddRxnDesc, anti, aq, aqi, + a, abinitio, addplot, AddRxnDesc, anti, aq, aqi, b, ba, bond, bottomrule, bridge, cancel, cd, cdot, ce, cee, celsius, centering, chemabove, Chemalpha, Chembeta, Chemgamma, Chemdelta, ChemDelta, chemfig, chemname, Chemomega, @@ -285,48 +291,7 @@ \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 \begin{document} @@ -491,6 +456,10 @@ There are a few possibilities to customize the output. The symbol to indicate the decimal. \Option{frac-style}{math|xfrac|nicefrac}\Default{math} Determines how fractions are displayed. + \Option{frac-math-cmd}{<command sequence>}\Default{\cmd*{frac}} + \sinceversion{4.1}Allows you to choose which command is used with + \key{frac-style}{math}. This needs to be a command sequence that takes two + arguments that are set in math mode. \Option{stoich-space}{<skip>}\Default{.1667em plus .0333em minus .0117em} The space that is placed after the stoichiometric factor. A rubber length. @@ -781,6 +750,9 @@ These options allow you to customize the ouptut of the compounds: Space between bond and atoms. \Option{bond-style}{<tikz>}\Default{} \TikZ\ options for the bonds. + \Option{bond-penalty}{<num>}\Default{10000} + \sinceversion{4.0a}The penalty that is inserted after a bond for + (dis-)allowing line breaks. \Option{radical-style}{<tikz>}\Default{} \TikZ\ options for the radical point. \Option{radical-radius}{<dim>}\Default{.2ex} @@ -900,6 +872,9 @@ The space left and right of the plus sign can be set with this option: \begin{beschreibung} \Option{plus-space}{<skip>}\Default{.3em plus .1em minus .1em} A rubber length. + \Option{plus-penalty}{<num>}\Default{700} + \sinceversion{4.0a}The penalty that is inserted after the plus sign for + (dis-)allowing line breaks. \end{beschreibung} \begin{beispiel} \ch{A + B}\\ @@ -990,7 +965,7 @@ There are various different types: standard left arrow \Befehl{ch}{ -/> } \ch{-/>}\newline does not react (right) - \Befehl{ch}{ </- } \ch{}</-\newline + \Befehl{ch}{ </- } \ch{</-}\newline does not react (left) \Befehl{ch}{ <-> } \ch{<->}\newline resonance arrow @@ -1067,7 +1042,8 @@ These are the options which enable you to customize the arrows: This is the length that an arrow protrudes a label on both sides. This means an empty arrow's length is two times \code{arrow-offset}. \Option{arrow-min-length}{<dim>}\Default{0pt} - The minimal length an error must have unless two times \key{arrow-offset} + \sinceversion{3.6b}The minimal length an error must have unless two times + \key{arrow-offset} plus the width of the label is larger. \Option{arrow-yshift}{<dim>}\Default{0pt} Shifts an arrow up (positive value) or down (negative value). @@ -1081,6 +1057,9 @@ These are the options which enable you to customize the arrows: The space between the labels and the arrows. \Option{label-style}{<font command>}\Default{\cmd*{footnotesize}} The relative font size of the labels. + \Option{arrow-penalty}{<num>}\Default{0} + \sinceversion{4.0a}The penalty that is inserted after an arrow for + (dis-)allowing line breaks. \end{beschreibung} The following code shows the effect of the different options on the \lstinline+<=>>+ @@ -1300,6 +1279,34 @@ the optional arguments of \lstinline+\\+ inside \cmd{ch}. \end{beispiel} \secidx*{Math Environments} +\section{Usage with \TikZ{} or \paket*{pgfplots} and externalization} +\sinceversion{4.1} +\noindent +Since \chemformula{} uses \TikZ{} to draw reaction arrows and bonds they would +be externalized, too, if you use that facility with \TikZ{} or +\paket{pgfplots}\footnote{\CTANurl{pgfplots}}. This may not be desirable +since they are very small pictures maybe containing of a single line. This is +why \chemformula's default behaviour is to disable externalization for it's +bonds and arrows. This can be turned on and off through the following option: +\begin{beschreibung} + \Option{tikz-external-disable}{\default{true}|false}\Default{true} + dis- or enable \TikZ' externalization mechanism for \chemformula's arrows + and bonds. +\end{beschreibung} + +If you should be using a formula that contains bonds or arrows inside of a +\code{tikzpicture} that is externalized you should locally enable it for +\chemformula, too: + +\begin{beispiel}[code only] + \begin{tikzpicture} + \setchemformula{tikz-external-disable=false} + \begin{axis}[xlabel={\ch{2 H+ + 2 e- -> H2}}] + \addplot ... ; + \end{axis} + \end{tikzpicture} +\end{beispiel} + \section{Further Examples} This section presents some examples of a possible usage. diff --git a/Master/texmf-dist/doc/latex/chemmacros/chemgreek_en.pdf b/Master/texmf-dist/doc/latex/chemmacros/chemgreek_en.pdf Binary files differindex c049a7d9937..9aa4a941e6e 100644 --- a/Master/texmf-dist/doc/latex/chemmacros/chemgreek_en.pdf +++ b/Master/texmf-dist/doc/latex/chemmacros/chemgreek_en.pdf 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 diff --git a/Master/texmf-dist/doc/latex/chemmacros/chemmacros_en.pdf b/Master/texmf-dist/doc/latex/chemmacros/chemmacros_en.pdf Binary files differindex 9d5ce9ef37d..e2d05df574d 100644 --- a/Master/texmf-dist/doc/latex/chemmacros/chemmacros_en.pdf +++ b/Master/texmf-dist/doc/latex/chemmacros/chemmacros_en.pdf diff --git a/Master/texmf-dist/doc/latex/chemmacros/chemmacros_en.tex b/Master/texmf-dist/doc/latex/chemmacros/chemmacros_en.tex index 7f924875d57..ae8c16ccbc9 100644 --- a/Master/texmf-dist/doc/latex/chemmacros/chemmacros_en.tex +++ b/Master/texmf-dist/doc/latex/chemmacros/chemmacros_en.tex @@ -1,7 +1,7 @@ % arara: xelatex % !arara: biber -% !arara: xelatex -% !arara: xelatex +% arara: xelatex +% arara: xelatex %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % ----------------------------------------------------------------------------- % - the CHEMMACROS bundle @@ -97,6 +97,12 @@ pdfstring = EU , accsupp = EU } +\DeclareAcronym{id}{ + short = id , + long = identification string , + pdfstring = ID , + accsupp = ID +} \DeclareAcronym{iupac}{ short = iupac , long = International Union of Pure and Applied Chemistry , @@ -113,7 +119,7 @@ short = dvi , long = device independent file format , pdfstring = DVI , - accsupp = DVO + accsupp = DVI } \DeclareAcronym{pdf}{ short = pdf , @@ -156,6 +162,16 @@ \usepackage[backend=biber,style=alphabetic,maxbibnames=20]{biblatex} \addbibresource{\jobname.bib} \begin{filecontents*}{\jobname.bib} +@book{iupac:bluebook, + author = {R. Panico and W. H. Powell and J-C. Richer}, + title = {“Nomenclature of Organic Chemistry, Sections A, B, C, D, E, F, and H”, \acs{iupac} + Blue Book}, + edition = {\mkbibacro{DRAFT}}, + date = {2004-10-07}, + url = + {http://old.iupac.org/reports/provisional/abstract04/BB-prs310305/CompleteDraft.pdf}, + urldate = {2013-07-07} +} @book{iupac:greenbook, author = {E. Richard Cohan and Tomislav Cvita\v{s} and Jeremy G. Frey and Bertil Holmström and Kozo Kuchitsu and Roberto Marquardt and Ian Mills and @@ -264,7 +280,7 @@ includegraphics, insitu, intertext, invacuo, iupac, IUPAC, J, joule, Ka, Kb, kilo, Kw, - L, latin, lewis, Lewis, Lfi, listofreactions, lqd, ltn, + L, latin, lc, lewis, Lewis, Lfi, listofreactions, lqd, ltn, mch, mega, meta, metre, mhName, midrule, milli, mmHg, mole, N, nano, nicefrac, newman, NMR, Nu, Nuc, num, numrange, O, ominus, orbital, ortho, oplus, ox, OX, @@ -322,52 +338,9 @@ } \providecommand*\chemgreek{{\scshape\textcolor{main}{chemgreek}}\xspace} -\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 - \DeclareChemPhase{\aqi}{aq,$\infty$}% aqueous solution at infinite dilution \DeclareChemPhase{\cd}{cd}% condensed phase -\RenewChemPhase{\lqd}{lc}% liquid crystal +\DeclareChemPhase{\lc}{lc}% liquid crystal \begin{document} @@ -383,7 +356,7 @@ The \chemmacros\ bundle needs the bundles \paket{l3kernel} and \paket{mathtools}, \paket{bm}, \paket{nicefrac} and \paket{environ} as well as \paket*{tikz}\footnote{\CTANurl[graphics]{pgf}} and the \TikZ libraries \code{calc} and \code{arrows}. Language support is done with the help of the -\paket*{translations} package from the \paket{exsheets} bundle. The +\paket{translations} package from the \paket{exsheets} bundle. The \chemmacros\ package also loads the other packages of this bundle. The package option \key{xspace} also loads the package \paket{xspace}. @@ -433,7 +406,7 @@ There are four points I hope I have achieved with this bundle: \item the commands shall not only make typesetting easier and faster but also the document source more readable with respect to semantics (\code{\cmd{ortho}-dichlorobenzene} is easier to read and understand than - \code{\cmd*{textsl}{o}-dichlorobenzene}) + \code{\cmd*{textit}{o}-dichlorobenzene}) \item as much customizability as I could think of so every user can adapt the commands to his or her own wishes \item default settings compliant with the recommendations of the \acf{iupac}. @@ -905,6 +878,15 @@ in the default setting. \Befehl{para} \para \end{beschreibung} +Although these commands are provided I like to cite~\cite{iupac:bluebook}: + +\begin{zitat}[{\acs{iupac} Blue Book {\cite[][p.\,90]{iupac:bluebook}}}] + The letters \ortho, \meta, and \para\ have been used in place of + \textit{ortho}, \textit{meta}, and \textit{para}, respectively, to designate + the 1,2- 1,3-, and 1,4- isomers of disubstituted benzene. This usage is + strongly discouraged and is not used in preferred \acs{iupac} names. +\end{zitat} + \paragraph{Absolute Configuration}\index{absolute configuration} (uses \TikZ) \begin{beschreibung} \Befehl{Rconf}[<letter>] \cmd{Rconf}: \Rconf \quad\cmd{Rconf}[]: \Rconf[] @@ -1039,7 +1021,8 @@ By the way: \cmd*{mmHg} \si{\mmHg} already is defined by \paket{siunitx} and \section{Acid/Base}\label{sec:saeure_base}\secidx{Acid/Base} Easy representation of \pH, \pKa \ldots\ (the command \cmd{pKa} depends on the -package option \key[option]{language}). +package option \key[option]{language}). The translations may be adapted, +though, see section~\ref{sec:languages}. \begin{beschreibung} \Befehl{pH} \pH \Befehl{pOH} \pOH @@ -2103,11 +2086,31 @@ declaration commands of \chemmacros\ \cmd{DeclareChemPhase} and % preamble: % \DeclareChemPhase{\aqi}{aq,$\infty$}% aqueous solution at infinite dilution % \DeclareChemPhase{\cd}{cd}% condensed phase - % \RenewChemPhase{\lqd}{lc}% liquid crystal - NaOH\aqi\ \ch{H2O\cd} U\phase{cr} A\lqd \\ + % \DeclareChemPhase{\lc}{lc}% liquid crystal + NaOH\aqi\ \ch{H2O\cd} U\phase{cr} A\lc \\ \chemsetup[phases]{pos=sub} - NaOH\aqi\ \ch{H2O\cd} U\phase{cr} A\lqd + NaOH\aqi\ \ch{H2O\cd} U\phase{cr} A\lc +\end{beispiel} + +\subsection{Language Dependencies}\secidx[internationalization]{Phases} +For each pahse command a translation into the custom language can be defined. +If a phase is declared with \cmd{DeclareChemPhase} no translation exists and +for every \paket{babel} languuage the literal string is used that was provided +as a definition. Let's say you define the phase +\begin{beispiel}[code only] + \DeclareChemPhase\liquid{l} \end{beispiel} +and want to add the German translation ``f{}l''. Then you could do +\begin{beispiel}[code only] + \DeclareTranslation{German}{phase-liquid}{f{}l} +\end{beispiel} +This way, when you use it in a German document using the appropriate +\paket{babel} option using \cmd*{liquid} would correctly translate. For this +the package \paket{translations} is used. The \acs{id} always is +\code{phase-<csname>} where \code{<csname>} is the name of the phase command +you defined without leading backslash. + +See section~\ref{sec:languages} for predefined translations. \secidx*{Phases} \section{Newman Projections}\label{sec:newman}\secidx{Newman Projections} diff --git a/Master/texmf-dist/doc/latex/chemmacros/ghsystem_en.pdf b/Master/texmf-dist/doc/latex/chemmacros/ghsystem_en.pdf Binary files differindex eefcfbf083a..3f04b35d2f0 100644 --- a/Master/texmf-dist/doc/latex/chemmacros/ghsystem_en.pdf +++ b/Master/texmf-dist/doc/latex/chemmacros/ghsystem_en.pdf diff --git a/Master/texmf-dist/doc/latex/chemmacros/ghsystem_en.tex b/Master/texmf-dist/doc/latex/chemmacros/ghsystem_en.tex index 9ca8cd2b3d7..e96adeea541 100644 --- a/Master/texmf-dist/doc/latex/chemmacros/ghsystem_en.tex +++ b/Master/texmf-dist/doc/latex/chemmacros/ghsystem_en.tex @@ -286,49 +286,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} |