-
Notifications
You must be signed in to change notification settings - Fork 0
/
scrarticle-settings.tex
72 lines (59 loc) · 1.8 KB
/
scrarticle-settings.tex
1
2
3
4
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
60
61
62
63
64
65
66
67
68
69
70
71
72
%% TimmLiTeX
%% Version: v0.9.1
%% Last modified: 2024-02-16 09:32:26
%%%%%%%%%%%%%%%%%%%%%%%%%%
% SCRARTICLE SETTINGS %
%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{datetime}
% \usepackage{ifdraft} % Better avoid the draft option
\newcommand{\newlineTitle}{\\}
\usepackage{scrlayer-scrpage}
\ohead{\headmark}
\chead{}
\ihead{}
%\ifdraft{\ifoot[]{Draft of \today, \currenttime\ -- comments are welcome!}}{}
\ifbool{draftmode}{\ifoot[]{Draft of \today, \currenttime\ -- comments are welcome!}}{}
\cfoot{}
\ofoot[\pagemark]{\pagemark}
\pagestyle{scrheadings}
\makeatletter
\def\affiliation#1{\gdef\@affiliation{#1}}
\lehead{\@author}
\rohead{\renewcommand{\newlineTitle}{}\@title}
% quotes are indented at one side only.
\renewenvironment{quote}
{\list{}{\rightmargin0pt\leftmargin8mm}%{\rightmargin\leftmargin}%
\item\relax}
{\endlist}
% quotations are indented at one side only
% there is no indentation at the beginning of the quote
\renewenvironment{quotation}
{\list{}{\listparindent 1.5em%
% \itemindent \listparindent
% \rightmargin \leftmargin
\parsep \z@ \@plus\p@}%
\item\relax}
{\endlist}
\renewcommand{\maketitle}{
\thispagestyle{plain}
{\raggedright
% \ifdraft{{\large\color{gray} (Draft of \today, \currenttime)\par}}{}%
\ifbool{draftmode}{{\large\color{gray} (Draft of \today, \currenttime)\par}}{}%
{\LARGE\sffamily%
\ifx\@subject\empty\else{\textsc{(\@subject)\\[1ex]}}\fi%
\textbf{\@title}\\[1ex]\par}
{\Large\@author \\}%
\@ifundefined{@affiliation}{}
{ \vspace*{1ex}%
\large\@affiliation \\}}%
% \vspace*{\baselineskip}%
% \ifx\@epigram\empty%
% \else {\epigraph{\@epigram\\[-5ex]}{\@epigramsource}%
% \epigram{}\epigramsource{}}%
% \fi%
\vspace*{-3ex}
\begin{quote}
\abstract
\end{quote}
}
\makeatother