Skip to content

Latest commit

 

History

61 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ci pre-commit

goose-article

A customised article class for LaTeX.

Contents

Disclaimer

This library is free to use. Any additions are very much appreciated, in terms of suggested functionality, code, documentation, testimonials, word-of-mouth advertisement, etc. Bug reports or feature requests can be filed on GitHub. As always, the code comes with no guarantee. None of the developers can be held responsible for possible mistakes.

Usage

goose-article is a customised class designed for scientific articles. The class is based on the default article class, but with some additional formatting and options. Usage:

By default, most of the standard LaTeX packages are loaded. Any of these packages can be reloaded without problems (possibly using other options). In addition, the title, the authors and their affiliations, and optionally a header can be specified.

This results in the following structure:

\documentclass[...]{goose-article}

% The title (also used as PDF-title).
\title{...}

% The different authors. The optional number(s) correspond(s) to the affiliations.
% N.B. the authblk-package is used, see that package for more information.
\author[1,2]{...}
\author[2]{...}

% The different affiliations. Use "\nl" to enforce a line break.
\affil[1]{...}
\affil[2]{...}

% Suggestion: set the proper author in the PDF information.
\hypersetup{pdfauthor={...}}

% Optional: add a page-header.
\header{...}

% =============================

\begin{document}

\maketitle

\begin{abstract}
...
\end{abstract}

...

% If you have references in "library.bib"
\bibliographystyle{unsrtnat}
\bibliography{library}

\end{document}

Options

article class options

  • Any option for the article class, such as 12pt, fleqn, etc.

font

  • font=[default], garamond, times, verdana

    Choose a font.

    • default: the default LaTeX font (computer-modern).
    • garamond: the Garamond font, required xelatex.
    • times: the Times New Roman font, required xelatex.
    • verdana: the Verdana font, required xelatex.

layout

  • left=25mm, ...

    Left margin. Passed to the geometry package.

  • right=25mm, ...

    Right margin. Passed to the geometry package.

  • top=30mm, ...

    Top margin. Passed to the geometry package.

  • bottom=30mm, ...

    Bottom margin. Passed to the geometry package.

  • pagenumbers=[true], false

    Show page numbers.

  • doublespacing

    Set the line spacing to double, useful during the review process.

  • linenumbers

    Add line numbers, useful during the review process.

bibliography

  • bibpackage=[natbib], biblatex, none

    Choose the bibliography package. In both cases citations are with compressed numbers.

  • bibsize=[scriptsize], ...

    The font-size of the bibliography.

  • bibcols=[1], ...

    Number of (additional) columns in the bibliography. Warning: this option is only implemented for natbib.

headers

  • paragraphshape=[runin], ...

    The shape of the paragraph header.

  • paragraphafter=[.], ...

    The character after the paragraph header.

Natbib: doi and arXiv

If you use natbib to handle your bibliography, you can select your \bibliographystyle{...} of preference before calling \bibliography{...}. An extended unsrtnat.bst is available that includes hyperlinks to the doi and arXiv-id.

Examples

Tips

About

A custom article class for LaTeX

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages