1 |
%% |
2 |
%% This is file `achemso.sty', |
3 |
%% generated with the docstrip utility. |
4 |
%% |
5 |
%% The original source files were: |
6 |
%% |
7 |
%% achemso.dtx (with options: `paketkod') |
8 |
%% |
9 |
%% Copyright (c) 1995-98 by Mats Dahlgren <matsd@sssk.se>. |
10 |
%% All rights reserved. See the file `achemso.ins' for information |
11 |
%% on how you may (re-)distribute the `achemso' package files. |
12 |
%% You are not allowed to make any changes to this file without |
13 |
%% explicit permission from the author. |
14 |
%% |
15 |
\NeedsTeXFormat{LaTeX2e}[1995/12/01] |
16 |
\ProvidesPackage{achemso}[1998/06/01 version 1.0.] |
17 |
\def\achemsover{\texttt{achemso} version 1.0 (1998/06/01)} |
18 |
\newif \ifsctnnmbr \sctnnmbrfalse |
19 |
\newif \iflst \lstfalse |
20 |
\DeclareOption{note}{\renewcommand{\refname}{References and Notes}} |
21 |
\DeclareOption{number}{\global\sctnnmbrtrue} |
22 |
\DeclareOption{list}{\global\lsttrue} |
23 |
\DeclareOption*{\OptionNotUsed} |
24 |
\ProcessOptions |
25 |
\RequirePackage[nospace]{overcite} |
26 |
\iflst |
27 |
\bibliographystyle{achemsol} |
28 |
\if@twocolumn |
29 |
\else |
30 |
\reversemarginpar |
31 |
\fi |
32 |
\def\@bibitem#1{\item\if@filesw \immediate\write\@auxout |
33 |
{\string\bibcite{#1}{\the\value{\@listctr}}}\fi\ignorespaces |
34 |
\@showtag{#1}} |
35 |
\def\@lbibitem[#1]#2{\item[\@biblabel{#1}\hfill]\if@filesw |
36 |
{\let\protect\noexpand |
37 |
\immediate |
38 |
\write\@auxout{\string\bibcite{#2}{#1}}}\fi\ignorespaces |
39 |
\@showtag{#2}} |
40 |
\newcommand{\thecitetag}[1]{\fbox{\texttt{#1}}} |
41 |
\def\@showtag#1{\@tempdima=\baselineskip |
42 |
\addtolength{\@tempdima}{0.5ex} |
43 |
\marginpar{\hfill\raisebox{-\@tempdima}[0pt][0pt]{\thecitetag{#1}}}} |
44 |
\else |
45 |
\bibliographystyle{achemso} |
46 |
\fi |
47 |
\renewenvironment{thebibliography}[1] |
48 |
{\iflst \else \par\clearpage \fi |
49 |
\ifsctnnmbr |
50 |
\section{\refname |
51 |
\@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}}% |
52 |
\else |
53 |
\section*{\refname |
54 |
\@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}}% |
55 |
\fi |
56 |
\list{\@biblabel{\@arabic\c@enumiv}}% |
57 |
{\settowidth\labelwidth{\@biblabel{#1}}% |
58 |
\leftmargin\labelwidth |
59 |
\advance\leftmargin\labelsep |
60 |
\@openbib@code |
61 |
\usecounter{enumiv}% |
62 |
\let\p@enumiv\@empty |
63 |
\renewcommand\theenumiv{\@arabic\c@enumiv}}% |
64 |
\sloppy\clubpenalty4000\widowpenalty4000% |
65 |
\sfcode`\.\@m} |
66 |
{\def\@noitemerr |
67 |
{\@latex@warning{Empty `thebibliography' environment}}% |
68 |
\endlist} |
69 |
\def\@biblabel#1{#1.} |
70 |
%% |
71 |
%% |
72 |
%% End of file `achemso.sty'. |