Newer
Older
%% Journal of Open Research Software Latex template -- Created By Stephen Bonner and John Brennan, Durham Universtiy, UK.
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{jors}[2016/03/08 Journal Of Open Software Research]
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
%% Article options
\DeclareOption{12pt}{
\PassOptionsToClass{\CurrentOption}{article}
}
\DeclareOption{sansserif}{
\PassOptionsToPackage{\CurrentOption}{paxcommands}
}
\DeclareOption{neverindent}{
\PassOptionsToPackage{\CurrentOption}{paxcommands}
}
%% Fallback
\DeclareOption*{
\ClassWarning{josr}{Unknown option '\CurrentOption'}
}
\ExecuteOptions{12pt}
\ProcessOptions\relax
\LoadClass[a4paper]{article}
%% Load additional packages and commands.
\RequirePackage{xcolor}
\RequirePackage{sectsty}
\RequirePackage{enumitem}
% http://tex.stackexchange.com/questions/301669
\RequirePackage[pageanchor=false]{hyperref}
\hypersetup{
colorlinks,
linkcolor={red!50!black},
citecolor={blue!50!black},
urlcolor={blue!99!black}
}
\RequirePackage{fancyhdr}
\RequirePackage{titlesec}
%% Additional TeX/LaTeX code...
%% Remove the indentation
\newlength\tindent
\setlength{\tindent}{\parindent}
\setlength{\parindent}{0pt}
\renewcommand{\indent}{\hspace*{\tindent}}
%% Remove the page numbers
\pagenumbering{gobble}
% \sectionfont{\fontsize{13}{15}\selectfont}
% pa: this is not possible...
% http://tex.stackexchange.com/questions/58087/
%% Set indentation for the lists
\setlist[description]{leftmargin=1cm,labelindent=1cm}
%% Set spacing for the section headings
\titlespacing\section{0pt}{12pt plus 4pt minus 2pt}{0pt plus 2pt minus 2pt}
%% Set margins
\usepackage[margin=1.2in,footskip=0.25in]{geometry}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{listings}
\usepackage{fancyref}
\usepackage{booktabs}
\usepackage{outlines}
%% Set source code listings style
\lstset{basicstyle=\ttfamily, language=Python}
%% Set the header information
\pagestyle{fancy}
\definecolor{mygray}{gray}{0.6}
\renewcommand\headrule{}
\rhead{\footnotesize 3}
\rhead{\textcolor{gray}{UP JORS software Latex paper template version 0.1}}
\newcommand{\fluidpack}[1]{\href{http://fluid#1.readthedocs.io}{%
\codeinline{fluid#1}}}
% \newcommand{\codeinline}[1]{\mintinline{python}{#1}}
\newcommand{\codeinline}[1]{\texttt{#1}}
\newcommand{\fluiddyn}{\fluidpack{dyn}\xspace}
\newcommand{\Numpy}{\codeinline{Numpy}\xspace}
\newcommand{\Scipy}{\codeinline{Scipy}\xspace}
\newcommand{\mako}{\href{http://www.makotemplates.org/}{\pack{mako}}}
\newcommand{\libpack}[2][]{%
\ifstrequal{#2}{FFTW}{%
\href{http://fftw.org}{#2}}{%
\ifstrequal{#2}{MKL}{%
\href{https://software.intel.com/en-us/mkl}{#2}}{%
\href{https://www-user.tu-chemnitz.de/~potts/workgroup/pippig/software.php.en}{#2}}{%
\href{http://p3dfft.net}{#2}}{%
\ifstrequal{#2}{2decomp\&FFT}{%
\href{http://www.2decomp.org}{#2}}{%
\ifstrequal{#2}{cuFFT}{%
\href{https://docs.nvidia.com/cuda/cufft/index.html}{#2}}{%
\ifstrequal{#2}{clFFT}{%
\href{https://clmathlibraries.github.io/clFFT/}{#2}}{%
\ifstrequal{#2}{FFTPACK}{%
\href{http://www.netlib.org/fftpack}{#2}}{%
\ifstrempty{#1}{%
#2
}{%
\href{#1}{#2}}
}}}}}}}}\xspace % Close the if-else-if tree above!
}
\newcommand{\p}{\partial}
% \newcommand{\annotate}[1]{\marginpar{\textcolor{red}{#1}}}
% Wikipedia-style "citation needed" macro
\newcommand{\citationneeded}[1][]{\textsuperscript{\color{blue} [citation needed: #1]}}