From f5b4e2827c52206834b8c921b5a037c615b24f3a Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 5 Sep 2011 00:16:09 +0000 Subject: chemnum (4sep11) git-svn-id: svn://tug.org/texlive/trunk@23814 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/chemnum/README | 2 +- Master/texmf-dist/doc/latex/chemnum/bsp.tex | 2 +- .../doc/latex/chemnum/chemnum_doc_de.pdf | Bin 421771 -> 423337 bytes .../doc/latex/chemnum/chemnum_doc_de.tex | 48 ++- .../doc/latex/chemnum/chemnum_doc_en.pdf | Bin 409990 -> 411004 bytes .../doc/latex/chemnum/chemnum_doc_en.tex | 43 ++- Master/texmf-dist/tex/latex/chemnum/chemnum.sty | 404 ++++++++++++++------- 7 files changed, 337 insertions(+), 162 deletions(-) diff --git a/Master/texmf-dist/doc/latex/chemnum/README b/Master/texmf-dist/doc/latex/chemnum/README index 9c093de53c2..e49258841d0 100644 --- a/Master/texmf-dist/doc/latex/chemnum/README +++ b/Master/texmf-dist/doc/latex/chemnum/README @@ -11,7 +11,7 @@ chemnum also needs the packages etoolbox, psfrag and textgreek to be fully functioning. Clemens NIEDERBERGER -2011/08/02 +2011/09/03 http://www.mychemistry.eu/ contact@mychemistry.eu diff --git a/Master/texmf-dist/doc/latex/chemnum/bsp.tex b/Master/texmf-dist/doc/latex/chemnum/bsp.tex index 8bcd6836dfa..81c4a4fd282 100644 --- a/Master/texmf-dist/doc/latex/chemnum/bsp.tex +++ b/Master/texmf-dist/doc/latex/chemnum/bsp.tex @@ -3,7 +3,7 @@ % - a comprehensive numbering method for chemical compounds - % % ------------------------------------------------------------------------------------- % % - Clemens NIEDERBERGER - % -% - 2011/08/02 - % +% - 2011/09/03 - % % ------------------------------------------------------------------------------------- % % - http://www.mychemistry.eu/ - % % - contact@mychemistry.eu - % diff --git a/Master/texmf-dist/doc/latex/chemnum/chemnum_doc_de.pdf b/Master/texmf-dist/doc/latex/chemnum/chemnum_doc_de.pdf index f0153febfbd..827b5ae7d32 100644 Binary files a/Master/texmf-dist/doc/latex/chemnum/chemnum_doc_de.pdf and b/Master/texmf-dist/doc/latex/chemnum/chemnum_doc_de.pdf differ diff --git a/Master/texmf-dist/doc/latex/chemnum/chemnum_doc_de.tex b/Master/texmf-dist/doc/latex/chemnum/chemnum_doc_de.tex index 719f56f5ce2..a283262c9d6 100644 --- a/Master/texmf-dist/doc/latex/chemnum/chemnum_doc_de.tex +++ b/Master/texmf-dist/doc/latex/chemnum/chemnum_doc_de.tex @@ -3,7 +3,7 @@ % - a comprehensive numbering method for chemical compounds - % % ------------------------------------------------------------------------------------- % % - Clemens NIEDERBERGER - % -% - 2011/08/02 - % +% - 2011/09/03 - % % ------------------------------------------------------------------------------------- % % - http://www.mychemistry.eu/ - % % - contact@mychemistry.eu - % @@ -32,13 +32,14 @@ \documentclass[DIV11]{scrartcl} \usepackage[ngerman]{babel} \usepackage[utf8]{inputenx} +\usepackage[dvipsnames]{xcolor} + \colorlet{code}{RawSienna} + \colorlet{shadecolor}{yellow!20} +\usepackage[runs=2]{auto-pst-pdf} \usepackage{chemnum,textcomp,url,xspace,booktabs,array,chemscheme} \usepackage[version=3]{mhchem} \renewcommand*\schemename{Schema} \usepackage[normalem]{ulem} -\usepackage[dvipsnames]{xcolor} - \colorlet{code}{RawSienna} - \colorlet{shadecolor}{yellow!20} \usepackage[runs=2]{auto-pst-pdf} \usepackage{chemfig,chemmacros} \input{bsp} @@ -103,9 +104,22 @@ \newcommand*\changefont[3]{\fontfamily{#1}\fontseries{#2}\fontshape{#3}\selectfont} +\ExplSyntaxOn +\DeclareDocumentEnvironment { myquote } { m } + { + \quote + \small \changefont { cmss } { m } { sl } + } + { + \par\noindent + \parbox { \linewidth } { \raggedleft \normalfont \itshape #1 } + \endquote + } +\ExplSyntaxOff + \newcommand*\chemnum{\textsf{chemnum}\xspace} -\newcommand*\CNversion{v0.3\xspace} -\newcommand*\CNdate{2011/08/02\xspace} +\newcommand*\CNversion{v0.3a\xspace} +\newcommand*\CNdate{2011/09/03\xspace} \newcommand*\paket[1]{\textsf{#1}\footnote{\url{http://www.ctan.org/pkg/#1}}} \newcommand*\zB{\mbox{z.\,B.}\xspace} @@ -185,17 +199,15 @@ Wenn Sie das \textsf{textgreek}-Paket nicht installiert haben und keine griechis Soweit mir bekannt ist, gab es bislang drei Pakete, die das Nummerieren von Verbindungen erleichtern sollen. Sie alle haben ihre Schwächen. Das erste, \paket{chemcono}, hat für diesen Zweck Bibliographie-Befehle umdefiniert. Dort müs\-sen Verbindungen in einer Art Literaturliste definiert werden. Dadurch kann dann im Text auf sie referenziert werden. Da es die "`Verbindungs-Bibliothek"' immer mit ausgibt, schlägt der Paket-Autor folgendes vor: -\begin{quote}\small\changefont{cmss}{m}{sl} - After compilation and printout, discard the last page.\\ - \parbox{\linewidth}{\raggedleft\normalfont\itshape Stefan Schulz} -\end{quote} +\begin{myquote}{Stefan Schulz} + After compilation and printout, discard the last page. +\end{myquote} Ganz offensichtlich ist das keine perfekte Lösung. Das zweite, \paket{chemcompounds}, ist enstanden, weil der Paket-Autor ebenfalls mit den Schwä\-chen von \textsf{chemcono} nicht mehr arbeiten wollte. Bei der Erstellung des Pakets hielt er sich stark an den gleichen prinzipiellen Mechanismus wie \textsf{chemcono}. -\begin{quote}\small\changefont{cmss}{m}{sl} - When taking a closer look at the chemcono package, I realised that the only thing one has to do is to get rid of everything which produces text. Thus, as a basis I used the mechanism of \lstinline=\bibitem= and \lstinline=\cite= in pretty much the same way as \textsf{chemcono} does by extracting the corresponding code from \lstinline=article.cls= and \lstinline=latex.ltx= but deleting any unnecessary commands producing output. I also introduced several lines of code to make the printing of the compound names more customisable.\\ - \parbox{\linewidth}{\raggedleft\normalfont\itshape Stephan Schenk} -\end{quote} +\begin{myquote}{Stephan Schenk} + When taking a closer look at the chemcono package, I realised that the only thing one has to do is to get rid of everything which produces text. Thus, as a basis I used the mechanism of \lstinline=\bibitem= and \lstinline=\cite= in pretty much the same way as \textsf{chemcono} does by extracting the corresponding code from \lstinline=article.cls= and \lstinline=latex.ltx= but deleting any unnecessary commands producing output. I also introduced several lines of code to make the printing of the compound names more customisable. +\end{myquote} Manche Schwächen hat auch dieses Paket: \begin{enumerate} \item Verbindungen müssen in der Regel mit \lstinline=\declarecompound= deklariert werden. Sie müs\-sen es auf jeden Fall, wenn man Label der Art \cmpd{a.one} haben möchte. Dann muss man die La\-bel sogar von Hand vergeben, was den Sinn einer automatischen Nummerierung untergräbt. @@ -377,7 +389,6 @@ Wie zu Beginn dieses Abschnitts erwähnt, ist die Initialisierung von Labeln nic \item Der Einsatz von \lstinline=\cmpdinit= bewirkt erst einmal dasselbe wie \lstinline=\cmpdinit*=, deklariert aber \emph{zusätzlich} die Label in der vorgegebenen Reihenfolge. Damit wird die Verwendung von \lstinline=\cmpd*= (Abschnitt \ref{cmd:unsichtbares_label}) und \lstinline=\cmpd+= (Abschnitt \ref{cmd:cmpd_plus}) überflüssig. Man hat damit direkte Kontrolle, welche Verbindung welche Nummer erhält. \end{enumerate} -\newpage \section{Zurücksetzen des Zählers}\label{sec:cmpdreset} Es ist möglich, mit folgendem Befehl \begin{framed} @@ -414,7 +425,7 @@ Der Befehl\label{cmd:cmpd_plus} \begin{framed} \centering\lstinline=\cmpd+{