Skip to content

Typeset Header Abstract

cpfaff edited this page Jun 23, 2013 · 6 revisions

Title, Authors and Stuff

The header is included from the file usr/subdocuments/chapters/osp_header.Rnw. There is a single call to the command \ospMakeTitle which creates the title header. You can change the contents of the title header to fit your needs by changing the variables inside of the style file under usr/subdocuments/options/open_science_paper.sty. The box below illustrates the changes on an example. It shows how to set the title, the authors, the affiliations, the keywords and so on for the paper inside the style file.

%%%-------------------------------------------------%%%
%%% Set header contents %%%
%%%-------------------------------------------------%%%

%% Note: You can set them empty to remove the line

\ospSetTitle{The new title of the paper}
\ospSetAuthors{Author one\textsuperscript{1,2,a}, Author two\textsuperscript{2,b}}
\ospSetContacts{foo@bar.com\textsuperscript{a}, bar@foo.com\textsuperscript{b}}
\ospSetAffiliations{University of XY departement of Z\textsuperscript{1}, University of \ldots}
\ospSetKeywords{Open Science, Git, R, Knitr, ggplot2, tikz}

\ospSetTitleKeywordContactName{Cont:}
\ospSetTitleKeywordAffiliationName{Affi:}
\ospSetTitleKeywordName{Keys:}

If you do not set the variables at all, the class provides default values for all the content and so an example title header will be displayed. If you leave them empty the content line will be removed.

Fonts

At the moment you can only alter the font of the title itself using the command below in the style file.

%% Fonts

% \ospSetFontTitle{\normalfont\sffamily\Huge\bfseries}

Lengths

You can change the lengths in the title header via the \ospSetLength command as shown below in the style file.

%% Lengths [default]

% \ospSetLength{\ospLengtTitleLogoColwidth}{0.2\textwidth} %[0.23\textwidth]
% \ospSetLength{\ospLengtTitleTitleColwidth}{0.5\textwidth} %[0.55\textwidth]
% \ospSetLength{\ospLengtTitleSpaceAbove}{2\baselineskip} %[0.01\baselineskip]
% \ospSetLength{\ospLengtTitleSpaceBelow}{-1\baselineskip} %[0.01\baselineskip]
% \ospSetLength{\ospLengthOfTitleBeforeReduceFontSize}{0.6\textwidth}

Abstract

The abstract is located under usr/subdocuments/chapters/osp_abstract_section.Rnw. You need to place your text inside the abstract as shown in the bow below.

\begin{abstract}

% Yor abstract text goes here

\end{abstract}

Clone this wiki locally