A customised article class for LaTeX.
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.
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:
- Copy goose-article.cls (from src/) to to main directory of your project.
- Optionally, copy unsrtnat.bst that includes
doilinks and a arXiv-id if present.
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}- Any option for the
articleclass, such as12pt,fleqn, etc.
-
font=[default], garamond, times, verdanaChoose a font.
default: the default LaTeX font (computer-modern).garamond: the Garamond font, requiredxelatex.times: the Times New Roman font, requiredxelatex.verdana: the Verdana font, requiredxelatex.
-
left=25mm, ...Left margin. Passed to the
geometrypackage. -
right=25mm, ...Right margin. Passed to the
geometrypackage. -
top=30mm, ...Top margin. Passed to the
geometrypackage. -
bottom=30mm, ...Bottom margin. Passed to the
geometrypackage. -
pagenumbers=[true], falseShow page numbers.
-
doublespacingSet the line spacing to double, useful during the review process.
-
linenumbersAdd line numbers, useful during the review process.
-
bibpackage=[natbib], biblatex, noneChoose 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.
-
paragraphshape=[runin], ...The shape of the paragraph header.
-
paragraphafter=[.], ...The character after the paragraph header.
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.
-
Basic example, see PDF.
-
Two-column example, see PDF.
-
Dummy subfigure label, see PDF.