-
Notifications
You must be signed in to change notification settings - Fork 14
Typeset Header Abstract

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.
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}
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}
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}
- If you spot a typo, feel free to edit the wiki directly
- If you don't understand something, please email ctpfaff
- If you have have a longer contribution, please contact me first
Installation
Structure and Files
Typesetting
- The title header
- The footer
- Sectioning
- Lists
- Citations
- Figures
- Tables
- Math
- Code chunks
- Code listings
Workflow