From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- macros/latex/contrib/bpchem/README.md | 23 ++ macros/latex/contrib/bpchem/bpchem.dtx | 477 +++++++++++++++++++++++++++++++++ macros/latex/contrib/bpchem/bpchem.ins | 6 + macros/latex/contrib/bpchem/bpchem.pdf | Bin 0 -> 373585 bytes 4 files changed, 506 insertions(+) create mode 100644 macros/latex/contrib/bpchem/README.md create mode 100644 macros/latex/contrib/bpchem/bpchem.dtx create mode 100644 macros/latex/contrib/bpchem/bpchem.ins create mode 100644 macros/latex/contrib/bpchem/bpchem.pdf (limited to 'macros/latex/contrib/bpchem') diff --git a/macros/latex/contrib/bpchem/README.md b/macros/latex/contrib/bpchem/README.md new file mode 100644 index 0000000000..f0c834dd8b --- /dev/null +++ b/macros/latex/contrib/bpchem/README.md @@ -0,0 +1,23 @@ +# bpchem + + bpchem -- Sup­port for type­set­ting chem­i­cal for­mu­lae, IUPAC compound names and more + Author: Bjørn Pedersen + Email: Bjoern.Pedersen@frm2.tum.de + Version: 1.1 + License: Released under the LaTeX Project Public License + See: http://www.latex-project.org/lppl.txt + +This package has been written to alleviate the task of writing publications containing +lots of chemistry. It provides methods for typesetting chemical names, +sum formulae and isotopes. It provides the possibility to break very long names +even over several lines. + +This package also provides a way to automatically enumerate your chemical +compounds, allowing for one-level subgrouping. + +What this package does not provide: Methods to draw chemical compounds. +Although there exist some packages,which where designed for this purpose (e.g. +xymtex, PPChTex) they are quite limited once you get to complex organic, or +metal organic compounds. I recommend using an external drawing program, possibly +in conjunction with psfrag, in these cases. + diff --git a/macros/latex/contrib/bpchem/bpchem.dtx b/macros/latex/contrib/bpchem/bpchem.dtx new file mode 100644 index 0000000000..8aa7533d8d --- /dev/null +++ b/macros/latex/contrib/bpchem/bpchem.dtx @@ -0,0 +1,477 @@ +% \iffalse +%% File: bpchem.dtx Copyright (C) 2001-2017 +%% Bjoern Pedersen +%% This file may be distributed and used freely under +%% the LaTeX Project Public License +%% +%% +% +%<*dtx> + \ProvidesFile{bpchem.dtx}[2017/08/23 v1.1 Chemical input helper] +% +%\NeedsTeXFormat{LaTeX2e} +%\ProvidesPackage{bpchem}[2004/08/21 v1.1 Chemical input helper] +%\RequirePackage{xspace} +%\ProvidesFile{bpchem.drv} +% \fi +%\iffalse +%<*driver> +\documentclass{ltxdoc} +\usepackage[latin1]{inputenc} +\usepackage[T1]{fontenc} +\usepackage{bpchem} +\RecordChanges +\begin{document} +\DocInput{bpchem.dtx} +\end{document} +% +%\fi +% \changes{v1.1}{2017/08/23}{ +% Resolved conflict with recent \LaTeX{} releases (thanks to Ulrike Fischer +% and Martin Sievers) +% } +% +% \changes{v1.05}{2004/11/06}{ +% changed email +% } +% \changes{v1.03}{2002/11/01}{ +% re-added lost email-address +% } +% \GetFileInfo{bpchem.dtx} +% \title{The \textsf{bpchem} package\thanks{This file +% has version number \fileversion, last +% revised \filedate.}} +% \author{Bj{\o}rn Pedersen\\ \texttt{Bjoern.Pedersen@frm2.tum.de}} +% \date{\filedate} +% \maketitle +% \section{Introduction} +% This package has been written to alleviate the task of writing +% publications containing lots of chemistry. It provides methods for +% typesetting chemical names, sum formulae and isotopes. It provides the +% possibility to break very long names even over several lines. +% +% This package also provides a way to automatically enumerate your +% chemical compounds, allowing for one-level subgrouping. +% +% What this package does not provide: Methods to draw chemical +% compounds. Although there exist some packages,which where designed for +% this purpose (e.g. xymtex, PPChTex) they are quite limited once you +% get to complex organic, or metal organic compounds. I recommend using +% an external drawing program, possibly in conjunction with psfrag, in +% these cases. +% +%\section{Package options} +% Currently this package supports only one option: +% +% \verb|cbgreek| +% +% this option causes the definitions of some macros to be changed to +% use the cbgreek fonts. As they are not available on all systems, +% and only in mf format, the default is to use the math fonts for +% greek symbols. +% +%\section{User commands in this package} +%\subsection{Setting chemical sum formulae: BPChem{}} +%\DescribeMacro{\BPChem} +%Within this macro you can use \verb|\_| and \verb|\^| for correct +%chemical sub- and superscripts. +%Example: +%\begin{verbatim} +%\BPChem{C\_2H\_5OH} or \BPChem{SO\_4\^{2-}} +%\end{verbatim} +%\begin{minipage}{10cm} +%\BPChem{C\_2H\_5OH} or \BPChem{SO\_4\^{2-}} +%\end{minipage} +%\subsection{Setting long chemical names: IUPAC{}} +%\DescribeMacro{\IUPAC} +%in addition to sub/superscripts as above, \verb|\-| is a hyphen which +%allows further breakpoints,\verb!\|! is an (invisible) Multibreakpoint. +% +%This environment is especially useful for your long IUPAC-compound names. +% +%Example: +%\begin{verbatim} + %\IUPAC{Tetra\|cyclo[2.2.2.1\^{1,4}]\- +%un\|decane-2\-dodecyl\-5\-(hepta\|decyl\|iso\|dodecyl\|thio\|ester)} +%\end{verbatim} +%\begin{minipage}{15em} +%\IUPAC{Tetra\|cyclo[2.2.2.1\^{1,4}]\-^^A +%un\|decane-2\-dodecyl\-5\-(hepta\|decyl\|iso\|dodecyl\|thio\|ester)} +%\end{minipage} +% +%\subsection{Enumerating and referencing chemical compounds: CNlabel\{ +% \PrintChanges +% \CheckSum{372} +% \Finale diff --git a/macros/latex/contrib/bpchem/bpchem.ins b/macros/latex/contrib/bpchem/bpchem.ins new file mode 100644 index 0000000000..b1819fc862 --- /dev/null +++ b/macros/latex/contrib/bpchem/bpchem.ins @@ -0,0 +1,6 @@ +%% DocStrip driver for bpbrief +\input docstrip +\askonceonly +\generate{\file{bpchem.sty}{\from{bpchem.dtx}{bpchem}} +} +\endbatchfile diff --git a/macros/latex/contrib/bpchem/bpchem.pdf b/macros/latex/contrib/bpchem/bpchem.pdf new file mode 100644 index 0000000000..4086285ee7 Binary files /dev/null and b/macros/latex/contrib/bpchem/bpchem.pdf differ -- cgit v1.2.3