• No results found

— BibTEX styles for Royal Society of Chemistry and Wiley journals∗

N/A
N/A
Protected

Academic year: 2021

Share "— BibTEX styles for Royal Society of Chemistry and Wiley journals∗"

Copied!
6
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

rsc

— BibTEX styles for Royal Society of

Chemistry and Wiley journals

Joseph Wright

Released 2016/08/22

Abstract

Therscpackage provides BibTEX style files to produce bibliographies in accordance with the guidelines of the Royal Society of Chemistry and Wiley chemistry-related journals. The styles require the use ofnatbib. In addition, a short LATEX package is included; this provides a convenient user interface to

the customisation hooks made available by the BibTEX styles.

Contents

1 Introduction 1

2 Installation 1

3 Using the styles 2

4 Customising the styles: the LATEXpackage 2 5 Demonstration file 3 6 Implementation 3 7 Change History 5 8 Index 5 9 References 6

1

Introduction

Although synthetic chemists do not, in the main, use LATEX for the preparation

of journal articles, it would be nice to be able to use it for reports. The package achemsoprovides for a BibTEX style and other support for reports in the style of the American Chemical Society. The aim of the rsc package is to provide similar support for the style favoured by the Royal Society of Chemistry. The package also provides support for the style used in Wiley-published journals.

As of version 3, this bundle requires natbib; the package mciteplus is also supported but not required. These two packages make creating bibliographies much easier for chemists.

(2)

2

Installation

The entire bundle is supplied with the TDS-ready ZIP file, rsc.tds.zip. Simply unzip this into your local texmf tree and run your hash program (texhash for TEXLive or initextmf -u for MiKTEX).

To extract the bundle of files from rsc.dtx, run (pdf)TEX on rsc.dtx. This will produce all of the package files, and also README.txt. To extract the files and build the documentation, run (pdf)LATEX on rsc.dtx. The files can then be

installed as above.

3

Using the styles

The styles are used in the normal way for BibTEX styles, as the argument to the \bibliographystylemacro. As natbib is required, it must of course be loaded. Citations can then be given as normal:

Some standard citations

\cite{Abernethy2003,Cotton1999}. Some \textsf{natbib}-specific features:

\citet{Abernethy2003} have said something, as reported by \citeauthor{Cotton1999}, in \citeyear{Abernethy2003}.

Some standard citations.1,2

Somenatbib-specific features: Abernethy et al.1

have said something, as reported byCotton et al., in2003.

If the mciteplus package is available, multiple citations can be combined into a single list:

A multiple citation

\cite{Arduengo1992,*Arduengo1994}.\\ A multiple citation.3

To make life slightly easier for the user, a small LATEX package

accompa-nies the BibTEX files. It automatically loads the support packages, and handles customisation (see the next section).

\documentclass{article} \usepackage{rsc}

\begin{document} % Document body here

\bibliographystyle{rsc} % or angew \bibliography{your-bibtex-database} \end{document}

4

Customising the styles: the L

A

TEX package

Both of the styles provide a small number of control hooks to modify the output behaviour. These can be altered directly, using a mechanism similar to that used by IEEEtrans. However, for most users, this is overly complex. A short LATEX package is therefore provided, which provides high-level access to the

(3)

The maxnames option sets whether and when a long list of authors is

maxnames usetitle usedoi linkdoi

truncated, and takes an integer value. Giving the value 0 means that no truncation occurs, otherwise the list is truncated if the number of names exceeds the given value. The usetitle and usedoi options are simple Boolean switches. The usetitle option sets whether to include the titles of journal articles in the bibliography. The default is false; the only rsc journal using article titles is Photochemical & Photobiological Sciences. The usedoi option forces the use of doi information in cases where it would not normally be present (for example journal articles with page ranges available). This is intended to make it easier for readers to find journal information. The related linkdoi option will include a hyperlink for each doi, so that the doi can be clicked on to resolve the original reference.

The super Boolean option turns on superscript citations, and is true by

super

default. It also causes the natmove package to be loaded if available (natmove is part of the achemso bundle). This ensures that citations appear after punctuation even if given before in the text. This documentation has been compiled using natmove: see the input of the example citations in the previous section.

The rsc package normally loads the support package mciteplus. This can be

mciteplus

controlled using the mciteplus option: loading rsc with mciteplus=false will skip loading mciteplus.

5

Demonstration file

This bundle includes the demonstration file rsc-demo.tex. The file shows how to create a submission to the RSC, using only standard LATEX tools. Note that the

demonstration does not aim to look like a published paper: this is not required for submission. The demonstration file should be installed in the doc/latex/rsc directory.

6

Implementation

\ifrsc@super \ifrsc@usetitle \ifrsc@usedoi \ifrsc@linkdoi \ifrsc@mciteplus \rsc@maxauthors

To make life easier for the user, the control values for the bibliography are converted into LATEX package options using kvoptions.

(4)

18 usedoi = false,

19 super = true

20}

21\ProcessKeyvalOptions{rsc}

Citation support is loaded.

22\ifrsc@super 23 \RequirePackage[sort&compress,numbers,super]{natbib} 24 \IfFileExists{natmove.sty}{% 25 \RequirePackage{natmove}}{} 26\else 27 \RequirePackage[sort&compress,numbers]{natbib} 28\fi \rsc@bib@file \rsc@bib@message \rsc@bib@name

Some information or creating the control file for BibTEX is set up.

29\newwrite\rsc@bib@file

30\newcommand*{\rsc@bib@message}{%

31 This is an auxiliary file used by the ‘rsc’ package.^^J% 32 This file may safely be deleted. It will be recreated as 33 required.^^J

34}

35\newcommand*{\rsc@bib@name}{rsc-\jobname.bib}

\rsc@bib@write \rsc@bib@write@aux

The control information for BibTEX needs to be written to a special file. The main writing macro is quite simple. Actually writing the information is left to the code for \bibliography, so that this only happens if needed.

36\newcommand*{\rsc@bib@write}{% 37 \if@filesw 38 \expandafter\rsc@bib@write@aux 39 \fi 40} 41\AtBeginDocument{\rsc@bib@write} 42\newcommand*{\rsc@bib@write@aux}{% 43 \immediate\openout\rsc@bib@file\rsc@bib@name\relax 44 \immediate\write\rsc@bib@file{\rsc@bib@message}% 45 \edef\@tempa##1##2{% 46 \space\space##1\space = \space"##2",^^J% 47 }% 48 \immediate\write\rsc@bib@file{% 49 @Control\string{% 50 rsc-control,^^J% 51 \@tempa{ctrl-use-title}{%

52 \ifrsc@usetitle yes\else no\fi

53 }%

54 \@tempa{ctrl-use-doi-all}{%

55 \ifrsc@usedoi yes\else no\fi

56 }%

57 \@tempa{ctrl-link-doi}{%

58 \ifrsc@linkdoi yes\else no\fi

59 }%

60 \@tempa{ctrl-etal-number}{\rsc@maxauthors}%

61 \string}^^J%

62 }%

(5)

64 \string\citation\string{rsc-control\string}% 65 }% 66 \AtEndDocument{% 67 \immediate\closeout\rsc@bib@file\relax 68 }% 69}

The mciteplus package allows the construction of lists of references with sub-letters. However, it might not be available, and so it is only loaded if available: the .bst files should work either way.

70\IfFileExists{mciteplus.sty}{% 71 \ifrsc@mciteplus 72 \RequirePackage{mciteplus} 73 \fi 74}{} \rsc@bibliography \bibliography

The \bibliography macro is now patched so that everything works correctly.

75\AtBeginDocument{% 76 \let\rsc@bibliography\bibliography 77 \renewcommand*{\bibliography}[1]{% 78 \rsc@bibliography{rsc-\jobname,#1}% 79 }% 80} 81h/packagei

7

Change History

v1.0

General: Initial release of packaged rsc.bst . . . 1

v2.0

General: First re-write of package . 1

v3.0

General: Second re-write of package 1

v3.1

General:mcitepluspackage optional 1

Demonstration file included . . . . 1

v3.1d

General: New linkdoi option . . . . 1

v3.1e

General: Option to skip loading mciteplus . . . 1

v3.1f

General: Include series in incollectionentries forrsc bibliographies . . . 1

8

Index

Numbers written in italic refer to the page where the corresponding entry is described; numbers underlined refer to the code line of the definition; numbers in roman refer to the code lines where the entry is used.

(6)

. . . 7,8,9,10,11 \DeclareStringOption 12 E \edef . . . 45 \else . . . 26,52,55,58 \expandafter . . . 38 F \fi . 28,39,52,55,58,73 I \if@filesw . . . 37 \IfFileExists . . . 24,70 \ifrsc@linkdoi . . . 1,58 \ifrsc@mciteplus . 1,71 \ifrsc@super . . . 1,22 \ifrsc@usedoi . . . . 1,55 \ifrsc@usetitle . . 1,52 \immediate . . . . . . 43,44,48,63,67 J \jobname . . . 35,78 L \let . . . 76 linkdoi(option) . . . 2 M maxnames(option) . . . 2 mciteplus(option) . . . . 3 N \newcommand 30,35,36,42 \newwrite . . . 29 O \openout . . . 43 options: linkdoi . . . 2 maxnames . . . 2 mciteplus . . . 3 super . . . 3 usedoi . . . 2 usetitle . . . 2 P \ProcessKeyvalOptions . . . 21 R \relax . . . 43,67 \renewcommand . . . 77 \RequirePackage . . . . . . 2,23,25,27,72 \rsc@bib@file . . . . . . . 29,43,44,48,67 \rsc@bib@message 29,44 \rsc@bib@name . . . 29,43 \rsc@bib@write . . . 36 \rsc@bib@write@aux . 36 \rsc@bibliography . . 75 \rsc@maxauthors . . 1,60 S \setkeys . . . 13 \SetupKeyvalOptions . 3 \space . . . 46 \string . . . 49,61,64 super(option) . . . 3 U usedoi(option) . . . 2 usetitle(option) . . . 2 W \write . . . 44,48,63

9

References

[1] C. D. Abernethy, G. M. Codd, M. D. Spicer and M. K. Taylor, J. Am. Chem. Soc., 2003, 125, 1128–1129,DOI: 10.1021/ja0276321.

[2] F. A. Cotton, G. Wilkinson, C. A. Murillio and M. Bochmann, Advanced Inorganic Chemistry, Wiley, Chichester, 6th edn., 1999.

Referenties

GERELATEERDE DOCUMENTEN

Raman resolves the number of graphene layers in few-layers systems [117,118] , and is sensitive to defects and to the presence of edges, more particularly to the atomic

• Museums Boerhaave and Teyler house the major instrument (etc.) collections in the field of chemistry, but have not given these collections a prominent place – the illustration

The achemso bundle provides a L A TEX class file and BibTEX style file in.. accordance with the requirements of the American Chemical

inproceedings An inproceedings entry may have xid, booktitle, meeting, publisher info; it is not expected to have journal, eprint, or preprint info. FUNCTION {inproceedings}

\ caption {A second caption below the float contents in the source.} \ end {table}. Using the float package, the same effect is

The cited paper has a title, date of first publication, and chapter number; I read this paper in a volume of Freud’s pa- pers with a title, volume editor, volume date, publisher,

The bundle comprises styles based on the conventions of the Royal Society of Chemistry, American Chemical Society and Angewandte Chemie.. It therefore covers the journal styles of,

The Royal Dutch Mathematical Society and its associated journal the (Nieuw) Archief voor Wiskunde enjoys an interesting history with a lot of intrigues.. Danny Beckers, historian