diff options
author | Karl Berry <karl@freefriends.org> | 2007-08-08 17:49:49 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2007-08-08 17:49:49 +0000 |
commit | 06ead28059a5be10b97415c0b30431d93fa097ce (patch) | |
tree | d389a7c708357e3a5d9f803d4c9e58aa14d4b446 /Master/texmf-dist/source | |
parent | d82348cfdcc935a4729e488d9ad7da2471375b92 (diff) |
chemscheme update (7aug07)
git-svn-id: svn://tug.org/texlive/trunk@4717 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r-- | Master/texmf-dist/source/latex/chemscheme/chemscheme.dtx | 68 |
1 files changed, 61 insertions, 7 deletions
diff --git a/Master/texmf-dist/source/latex/chemscheme/chemscheme.dtx b/Master/texmf-dist/source/latex/chemscheme/chemscheme.dtx index 569926167ca..89d7b0c8b52 100644 --- a/Master/texmf-dist/source/latex/chemscheme/chemscheme.dtx +++ b/Master/texmf-dist/source/latex/chemscheme/chemscheme.dtx @@ -8,7 +8,7 @@ % % This work consists of the main source file chemscheme.dtx % and the derived files chemscheme.sty and chemscheme.pdf; -% also included is the ChemDraw source file chemschem.cdx +% also included is the ChemDraw source file chemscheme.cdx % %<*driver> \documentclass{ltxdoc} @@ -28,7 +28,7 @@ %</driver> % \fi % -% \CheckSum{96} +% \CheckSum{122} % % \CharacterTable % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -49,14 +49,15 @@ % \GetFileInfo{\jobname.sty} % % \changes{v1.0}{2007/07/21}{Initial public release} +% \changes{v1.1}{2007/08/05}{Added float centring code} % % \DoNotIndex{\@ifclassloaded,\@undefined,\chapter,\CNlabel} -% \DoNotIndex{\CNlabelsub,\compound,\DeclareOption,\else,\floatname} -% \DoNotIndex{\fi,\global,\ifx,\let,\listof,\MessageBreak} +% \DoNotIndex{\CNlabelsub,\compound,\DeclareOption,\def,\else} +% \DoNotIndex{\floatname,\fi,\global,\ifx,\let,\listof,\MessageBreak} % \DoNotIndex{\NeedsTeXFormat,\newcommand,\newfloat,\newif} % \DoNotIndex{\newlistof,\PackageWarning,\ProcessOptions,\protect} -% \DoNotIndex{\ProvidesPackage,\psfrag,\RequirePackage,\space} -% \DoNotIndex{\textsf} +% \DoNotIndex{\ProvidesPackage,\psfrag,\raggedleft,\RequirePackage} +% \DoNotIndex{\relax,\space,\textsf} % % \title{\texttt{chemscheme} --- Support for chemical schemes% % \thanks{This file describes version \fileversion, last revised @@ -156,6 +157,31 @@ % \cmd{\listschemes} contains the title of the scheme list (by % default \listschemes). Both may be freely re-defined. % +% \section{Horizontal positioning of all floats} +% +% \DescribeMacro{\floatcontentscentre} +% \DescribeMacro{\floatcontentscenter} +% \DescribeMacro{\floatcontentsleft} +% \DescribeMacro{\floatcontentsright} +% The LaTeX default is to position all float contents flush-left. +% There is no ``hook'' provided to alter this. The |chemscheme| +% packages therefore provides commands to align all float contents +% automatically. As the macro names make clear, +% \cmd{\floatcontentscentre} will make all floats centred (for users +% speaking U.S.~English, the alternative spelling +% \cmd{\floatcontentscenter} is also available). The default +% behaviour is restored using the command \cmd{\floatcontentsleft}. +% Finally, \cmd{\floatcontentsright} is provided for use if needed. +% notice that the float positioning commands should be given +% \emph{outside} floating environments, and apply to all subsequent +% floats. +% +% It is important to note that the positioning mechanism used here +% relies on a low-level hack of the LaTeX kernel. This has been +% tested with the standard LaTeX classes, the \textsf{memoir} class +% and the \textsc{koma-script} bundled. Other document classes may +% not give the desired behaviour. +% % \section{Reference numbers in graphics} % % \subsection{Background} @@ -328,7 +354,7 @@ % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{chemscheme}% - [2007/07/21 v1.0 Support for chemical schemes] + [2007/08/05 v1.1 Support for chemical schemes] % \end{macrocode} % The |psfrag| package is required to carry out the inclusion of % chemical numbers in graphics. If the |memoir| package is not @@ -408,6 +434,34 @@ % \end{macrocode} % \end{macro} % +% \subsection{Positioning float contents} +% +% \begin{macro}{\floatcontentscentre} +% \begin{macro}{\floatcontentscenter} +% \begin{macro}{\floatcontentsleft} +% \begin{macro}{\floatcontentsright} +% In order to centre the content of all floats, a method is needed +% to break into the mechanism. None is provided by default, +% but it can be achieved by patching \cmd{\@floatboxreset}. +% User space switching commands are defined to turn centring on and +% off. +% \begin{macrocode} +\newcommand*{\floatcontentscentre}% + {\let\CHEMSCH@everyfloat\centering} +\let\floatcontentscenter\floatcontentscentre +\newcommand*{\floatcontentsleft}% + {\let\CHEMSCH@everyfloat\relax} +\newcommand*{\floatcontentsright}% + {\let\CHEMSCH@everyfloat\raggedleft} +\let\CHEMSCH@floatboxreset\@floatboxreset +\floatcontentsleft +\def\@floatboxreset{\CHEMSCH@everyfloat\CHEMSCH@floatboxreset} +% \end{macrocode} +% \end{macro} +% \end{macro} +% \end{macro} +% \end{macro} +% % \subsection{Reference numbers in graphics} % % \begin{macro}{\chemschemerefmarker} |