summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/beilstein/beilstein.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-11-10 21:46:05 +0000
committerKarl Berry <karl@freefriends.org>2017-11-10 21:46:05 +0000
commit209d559f177c1017107f059d3ffa33c3dc720586 (patch)
treef3a514d2de50509d703e4c98f7d8bbf6cb28de92 /Master/texmf-dist/source/latex/beilstein/beilstein.dtx
parentb76c05df77b59adc603978440f8061b272c77516 (diff)
beilstein (10nov17)
git-svn-id: svn://tug.org/texlive/trunk@45741 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/beilstein/beilstein.dtx')
-rw-r--r--Master/texmf-dist/source/latex/beilstein/beilstein.dtx87
1 files changed, 51 insertions, 36 deletions
diff --git a/Master/texmf-dist/source/latex/beilstein/beilstein.dtx b/Master/texmf-dist/source/latex/beilstein/beilstein.dtx
index 5f90e8f008f..ba2e37632c5 100644
--- a/Master/texmf-dist/source/latex/beilstein/beilstein.dtx
+++ b/Master/texmf-dist/source/latex/beilstein/beilstein.dtx
@@ -19,7 +19,7 @@
beilstein -- Support for submissions to the ``Beilstein Journal
of Nanotechnology'' published by the Beilstein-Institut
for the Advancement of Chemical Sciences
-Version: 1.2
+Version: 1.3
E-mail: journals-support@beilstein-institut.de
License: Released under the LaTeX Project Public License v1.3c or later
See http://www.latex-project.org/lppl.txt
@@ -90,7 +90,7 @@ This work consists of the files beilstein.dtx,
%</internal>
%<*driver>
\ProvidesFile{beilstein.dtx}%
-[2017/08/21 v1.2 Bundle for submissions to the\MessageBreak ``Beilstein Journal
+[2017/11/09 v1.3 Bundle for submissions to the\MessageBreak ``Beilstein Journal
of Nanotechnology'' (BJNANO)]
\documentclass[a4paper]{ltxdoc}
\usepackage[american]{babel}
@@ -102,7 +102,7 @@ This work consists of the files beilstein.dtx,
\usepackage{array,booktabs,tabularx,longtable}
\usepackage{fancyhdr}
\pagestyle{fancy}
-\lfoot{\footnotesize BJNANO Technical Handbook (Version 1.2)}
+\lfoot{\footnotesize BJNANO Technical Handbook (Version 1.3)}
\cfoot{}
\rfoot{\thepage}
\usepackage[final]{listings}
@@ -118,6 +118,10 @@ This work consists of the files beilstein.dtx,
\DeclareSymbolFont{ugrf@m}{U}{eur}{m}{n}
\SetSymbolFont{ugrf@m}{bold}{U}{eur}{b}{n}
\DeclareMathSymbol{\upalpha}{\mathord}{ugrf@m}{"0B}
+\providecommand*\env[1]{\texttt{#1}}
+\providecommand*\file[1]{\texttt{#1}}
+\providecommand*\opt[1]{\texttt{#1}}
+\providecommand*\pkg[1]{\textsf{#1}}
\usepackage[%
pdftitle={A LaTeX class for submissions to the ``Beilstein Journal of
Nanotechnology'' (BJNANO)},
@@ -164,6 +168,8 @@ This work consists of the files beilstein.dtx,
% \changes{v1.2}{2017/08/21}{Fix for the declaration of \cs{-} as a robust
% command. There is a conflict between package bpchem and the latest
% \LaTeX{} release.}
+% \changes{v1.3}{2017/11/09}{Fix: Loading of \pkg{cleveref} is postponed to the
+% very end of the preamble in order to avoid problems with \pkg{hyperref}.}
% \GetFileInfo{\jobname.dtx}
% \DoNotIndex{\newcommand,\newenvironment}
% \DoNotIndex{\def,\edef,\gdef,\xdef,\global,\long,\let}
@@ -328,10 +334,10 @@ This work consists of the files beilstein.dtx,
% \renewcommand*{\fps@table}{htb}
% \setlength\belowcaptionskip{10pt}
%
-% \providecommand*\env{\texttt}
-% \providecommand*\file{\texttt}
-% \providecommand*\opt{\texttt}
-% \providecommand*\pkg{\textsf}
+% \providecommand*\env[1]{\texttt{#1}}
+% \providecommand*\file[1]{\texttt{#1}}
+% \providecommand*\opt[1]{\texttt{#1}}
+% \providecommand*\pkg[1]{\textsf{#1}}
% \newcommand*{\BJNANO}{\emph{Beilstein Journal of Nano\-tech\-nology}\xspace}
% \def\testbx{bx}
% \DeclareRobustCommand*{\chem}[1]{\ensuremath{%
@@ -369,8 +375,8 @@ This work consists of the files beilstein.dtx,
% \begin{abstract}
% \noindent The \pkg{Beilstein} bundle provides a \LaTeX\ class file and a
% \BibTeX\ style file in accordance with the requirements of
-% submissions to the \BJNANO. Although the files can be used for any kind of document,
-% they have only been designed and tested to be suitable for
+% submissions to the \BJNANO. Although the files can be used for any kind of
+% document, they have only been designed and tested to be suitable for
% submissions to the \BJNANO.
% \end{abstract}
% \end{titlepage}
@@ -381,22 +387,23 @@ This work consists of the files beilstein.dtx,
% based on the standard \pkg{article} class, but was modified
% to meet the requirements for submissions to the \BJNANO as
% published in the ``Instructions for Authors'' \cite{Beilstein-MSG}.
-% Moreover the \LaTeX class \file{beilstein.cls} facilitates ease of use by providing the authors with a
-% set of useful macros and environments.
+% Moreover the \LaTeX class \file{beilstein.cls} facilitates ease of use by
+% providing the authors with a set of useful macros and environments.
%
% The \BibTeX\ style \file{bjnano.bst} is used by the class to format
% citations and references correctly. It is based on Joseph Wright's
% \file{achemso.bst}, but was largely adjusted to work exactly on
% \BJNANO submissions.
%
-% Finally an example document is included in the \pkg{Beilstein} bundle. It is intended to act as a
-% potential template for submissions, and illustrates the usage of the
-% class and the \BibTeX\ file.
+% Finally an example document is included in the \pkg{Beilstein} bundle. It is
+% intended to act as a potential template for submissions, and illustrates the
+% usage of the class and the \BibTeX\ file.
%
% \section{Installation}
% \subsection{Global installation via your \TeX{} distribution}
-% From version 1.2 onwards, the \pkg{Beilstein} bundle is distributed via CTAN and the major
-% \TeX{} distribution. Therefore after having updated your \TeX{} Live or MiKTeX installation
+% From version 1.2 onwards, the \pkg{Beilstein} bundle is distributed via CTAN
+% and the major \TeX{} distribution. Therefore after having updated your \TeX{}
+% Live or MiKTeX installation
% you can use the \pkg{Beilstein} files rightaway.
%
% \subsection{Local TDS installation}
@@ -1273,7 +1280,7 @@ This work consists of the files beilstein.dtx,
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{beilstein}
-[2017/08/21 v1.2 Template for submissions to the ``Beilstein Journal %
+[2017/11/09 v1.3 Template for submissions to the ``Beilstein Journal %
of Nanotechnology'' (BJNANO)]
% \end{macrocode}
% For class options key-value pairs are used. They are provided by the
@@ -1583,7 +1590,8 @@ This work consists of the files beilstein.dtx,
\Prep}%
\expandafter\DeclareRobustCommand\expandafter\|\expandafter{\|}
% \end{macrocode}
-% \changes{v1.2}{201/08/21}{Removed definition for robust \cs{-} due to conflict with recent
+% \changes{v1.2}{2017/08/21}{Removed definition for robust \cs{-} due to
+%conflict with recent
% \LaTeX{} versions.}
% \begin{macrocode}
}%
@@ -1788,35 +1796,42 @@ This work consists of the files beilstein.dtx,
% \end{macrocode}
% Referencing floats is one of LaTeXs advantages. The \pkg{cleveref} %
% package extends those abilities even further.
+%
+% To avoid problems when \pkg{hyperref} is used as well, we postpone the
+% packages's loading to the very end of the preamble.
+% \changes{1.3}{2017/11/09}{Postpone loading of \pkg{cleveref}}
% \begin{macrocode}
-\IfFileExists{cleveref.sty}{%
- \RequirePackage{cleveref}[2009/12/11]
-}{\ClassInfo{beilstein}{Package ``cleveref'' was not found and %
- \MessageBreak therefore has not been loaded.}}
+\RequirePackage{etoolbox}%
+\AtEndPreamble{%
+ \IfFileExists{cleveref.sty}{%
+ \RequirePackage{cleveref}[2009/12/11]
+ }{\ClassInfo{beilstein}{Package ``cleveref'' was not found and %
+ \MessageBreak therefore has not been loaded.}}
% \end{macrocode}
% The standard types just need a little adaption for the names.
% \begin{macrocode}
-\@ifpackageloaded{cleveref}{%
- \crefname{figure}{Figure}{Figures}
- \crefname{table}{Table}{Tables}
+ \@ifpackageloaded{cleveref}{%
+ \crefname{figure}{Figure}{Figures}
+ \crefname{table}{Table}{Tables}
% \end{macrocode}
% The new type ``scheme'' should be recognized as well.
% \begin{macrocode}
- \crefname{scheme}{Scheme}{Schemes}
- \crefformat{scheme}{Scheme~#2#1#3}
- \Crefformat{scheme}{Scheme~#2#1#3}
+ \crefname{scheme}{Scheme}{Schemes}
+ \crefformat{scheme}{Scheme~#2#1#3}
+ \Crefformat{scheme}{Scheme~#2#1#3}
% \end{macrocode}
% The authors use extended information stored in extra files as well
% and cross-reference to them. So those ones are also adapted.
% \begin{macrocode}
- \crefname{suppinfo}{Supporting Information File}{Supporting
-Information Files}
- \crefformat{suppinfo}{Supporting Information File~#2#1#3}
- \Crefformat{suppinfo}{Supporting Information File~#2#1#3}
-}{\newcommand{\cref}[1]%
- {\ClassError{beilstein}{Macro \string\cref\space has not been
- defined\MessageBreak since the cleveref package could not be
- loaded}{Please install the package cleveref first}
+ \crefname{suppinfo}{Supporting Information File}{Supporting
+ Information Files}
+ \crefformat{suppinfo}{Supporting Information File~#2#1#3}
+ \Crefformat{suppinfo}{Supporting Information File~#2#1#3}
+ }{\newcommand{\cref}[1]%
+ {\ClassError{beilstein}{Macro \string\cref\space has not been
+ defined\MessageBreak since the cleveref package could not be
+ loaded}{Please install the package cleveref first}
+ }%
}%
}%
% \end{macrocode}