diff --git a/epsrc.cfg b/epsrc.cfg new file mode 100644 index 0000000..d408bdb --- /dev/null +++ b/epsrc.cfg @@ -0,0 +1,3 @@ +\author{Poor Researcher} +\projectitle[PGMM]{Please Give Me Money} + diff --git a/epsrc.cls b/epsrc.cls new file mode 100644 index 0000000..a0b4057 --- /dev/null +++ b/epsrc.cls @@ -0,0 +1,211 @@ +%% Copyright (C) 2018-2022 Achim D. Brucker, https://www.brucker.ch +%% +%% License: +%% This program can be redistributed and/or modified under the terms +%% of the LaTeX Project Public License Distributed from CTAN +%% archives in directory macros/latex/base/lppl.txt; either +%% version 1 of the License, or any later version. +%% OR +%% The 2-clause BSD-style license. +%% +\NeedsTeXFormat{LaTeX2e}[1994/06/01] +\ProvidesClass{epsrc}% + [] + +\PassOptionsToClass{\CurrentOption}{scrartcl} +\LoadClass[abstract=false,parskip=never,11pt,a4paper]{scrartcl}[] + +\RequirePackage{ifthen} +\newboolean{ep@showinfo} +\setboolean{ep@showinfo}{true} +\DeclareOption{hideinfo}{\setboolean{ep@showinfo}{false}} + +\ProcessOptions\relax +\usepackage{setspace} +%\RequirePackage[T1]{fontenc} +% The `11pt` option sets the default font size to 10.95 TeX points (`pt`) +% which is 10.909 = 10.95*72/72.27 Postscript Points (`bp`) +% Hence scaling of 11/10.909=1.00834173618113484279 +\RequirePackage[sfdefault,scaled=1.00834174]{arimo} +\setstretch{0.991727}% +\RequirePackage{sfmath} + + +\RequirePackage{fontawesome} + +\RedeclareSectionCommands[ + beforeskip=-0.75ex, + runin=true, + ]{paragraph} +\RedeclareSectionCommands[ + beforeskip=0.10ex, + runin=true, + ]{subparagraph} +\RedeclareSectionCommands[ + beforeskip=-1.50ex, + runin=false, + afterskip=0.50ex + ]{section, subsection, subsubsection} + + +\areaset + {\dimexpr\the\paperwidth-4.1cm\relax}% calculate required \textwidth + {\dimexpr\the\paperheight-4.1cm\relax}% calculate required \textheight +\addtolength{\topmargin}{15pt} +\addtolength{\footskip}{-15pt} + +\RequirePackage{lastpage} +\RequirePackage{scrlayer-scrpage} +\RequirePackage{keycommand} +\RequirePackage[dvipsnames]{xcolor} +\setlength{\marginparwidth}{2cm} +\RequirePackage{todonotes} +\RequirePackage{booktabs} +\RequirePackage{multicol} +\RequirePackage{epsrc} + +\RequirePackage[% + doi=false% + ,isbn=false% + ,url=false% +% ,style=ieee% + % ,style=numeric% + ,style=trad-abbrv% + ,maxnames=3% + ,backend=biber% + ]{biblatex}% +\renewbibmacro*{byeditor+others}{% + \setunit{\addcomma\space}% + \ifnameundef{editor} + {} + {\usebibmacro{byeditor+othersstrg}% + \setunit{\addspace}% + \printnames[byeditor][1-1]{editor}% + \clearname{editor}% + \newunit}% + \usebibmacro{byeditorx}% + \usebibmacro{bytranslator+others}} + +%\DefineBibliographyStrings{english}{ +% byeditor = {ed\adddotspace by}, +%} + +\RequirePackage[alwaysadjust]{paralist} +\RequirePackage{etoolbox} +\RequirePackage{hyperref} + + +\RedeclareSectionCommand[% + style=section,% + level=4,% + indent=\z@,% + beforeskip=0.50ex \@plus1ex \@minus.2ex,% + afterskip=-0.2em,% + tocstyle=subsection,% + tocindent=7.0em,% + tocnumwidth=4.1em% +]{paragraph} + +\subject{\project}% +% Default header +\rohead[]{\ep@type} +\lohead{\ep@projectshort} +% Default footer +\ifoot[Confidential -- Only for Review]{Confidential -- Only for Review} +\cfoot[]{} +\ofoot[Page \thepage\ of \pageref{LastPage}]{Page \thepage\ of \pageref{LastPage}} +% +\pagestyle{scrheadings} + +\newcommand{\alertstyle}{\bfseries\color{Maroon}} +\newcommand{\alert}[1]{{\alertstyle #1}} + +\renewcommand{\maketitle}{% + \centerline{\Large\ep@project}% + \bigskip + \centerline{\huge\bfseries \ep@type}% + \medskip + \thispagestyle{plain} +} + +\setkomafont{footnote}{\normalfont\normalsize} + +% Bibliography +\newcommand{\urlprefix}{}% + +%%% twocolumn bibliography using Koma-Hooks (works only if no packages such +%%% as biblatex or natbib are used that redefine thebibliography. +% \renewcommand{\bibfont}{\footnotesize} % or any other appropriate font command +% \renewcommand*{\bib@beginhook}{\begin{multicols}{2}\footnotesize}% +% \renewcommand*{\bib@endhook}{\end{multicols}}% +%%% +%%% twocolumn bibliography using natbib +% \setlength{\bibsep}{1pt} % or use whatever dimension you want +% \patchcmd{\thebibliography} +% {\list} +% {\begin{multicols}{2}\footnotesize\list} +% {} +% {} +% \appto{\endthebibliography}{\end{multicols}} + +%% Setup for biblatex/biber +\newcommand{\applicantbibstyle}{\alertstyle} +\newcommand{\applicantbibstyledesc}{bold and maroon} + +\newcommand{\applicantbibmark}{\faHome} \newcommand{\bibpretext}{The + list of references contains works of the applicants as well as + related works. The works co-authored by at least one of the + applicants are marked with the symbol \applicantbibmark{} and + printed in {\applicantbibstyle\applicantbibstyledesc}.} + +\DeclareBibliographyCategory{applicant} +\AtEveryBibitem{% + \ifcategory{applicant}% + {\applicantbibstyle\applicantbibmark~}% + {}% +} + +%\renewcommand*{\bibfont}{\scriptsize} +\newcommand\twocolprintbibliography[1][0pt]{% + \begingroup% + \setlength{\multicolsep}{#1}% + \setlength{\columnsep}{6pt}% + \setstretch{0.65}% + \setlength\bibitemsep{0pt} + \setlength\bibnamesep{0pt} + \setlength\bibinitsep{0pt} + \setlength\biblabelsep{2pt} + \begin{multicols}{2}[{\printbibheading\vspace{0\baselineskip}\noindent\bibpretext\\\vspace{-0.5\baselineskip}}]% + \printbibliography[heading=none]% + \end{multicols}% + \endgroup} + +\newcommand\singlecolprintbibliography{% + \begingroup% + \setstretch{0.65}% + \setlength\bibitemsep{0pt} + \setlength\bibnamesep{0pt} + \setlength\bibinitsep{0pt} + \setlength\biblabelsep{3pt} + \printbibheading\noindent\bibpretext\\% + \printbibliography[heading=none]% + \endgroup% +} +% Info +\newcommand{\info}[2][]{% +\ifthenelse{\boolean{ep@showinfo}}% + {\todo[color=green!20,inline,caption={},#1]{\footnotesize #2}}% + {} +} + + +\newcommand{\citeapplicant}[1]{\cite{#1}\addtocategory{applicant}{#1}} + +% better line breaks of URLs +\g@addto@macro{\UrlBreaks}{\UrlOrds} +% use of regular font for URLs +\urlstyle{same} + +\addtokomafont{paragraph}{\itshape} +\renewenvironment{abstract}{\begin{addmargin}[6mm]{6mm}\itshape\textbf{\abstractname.}}{\end{addmargin}} +\endinput diff --git a/epsrc.sty b/epsrc.sty new file mode 100644 index 0000000..1f14351 --- /dev/null +++ b/epsrc.sty @@ -0,0 +1,64 @@ +%% Copyright (C) 2018-2022 Achim D. Brucker, https://www.brucker.ch +%% +%% License: +%% This program can be redistributed and/or modified under the terms +%% of the LaTeX Project Public License Distributed from CTAN +%% archives in directory macros/latex/base/lppl.txt; either +%% version 1 of the License, or any later version. +%% +\NeedsTeXFormat{LaTeX2e}[1994/06/01] +\ProvidesPackage{epsrc}% + [] +\usepackage{xspace} + +\def\ep@type{} +\newcommand{\type}[1]{\gdef\ep@type{#1}} +\def\ep@project{} +\def\ep@projectshort{} +\def\ep@projectlong{} + +\newcommand{\projectitle}[2][]{% + \ifthenelse{ \equal{#1}{} } + {% + \gdef\ep@projectlong{#2}% + \gdef\ep@projectshort{#2}% + \gdef\ep@fulltitle{#2}% + }{% + \gdef\ep@projectlong{#2}% + \gdef\ep@projectshort{#1}% + \gdef\ep@project{#2 (#1)} + } +} + +\newcommand{\project}{\ep@project\xspace} +\newcommand{\projectlong}{\ep@projectlong\xspace} +\newcommand{\projectshort}{\ep@projectshort\xspace} + + + + +% +\AtBeginDocument{ +\@ifpackageloaded{currvita}{ +\newcommand{\xitem}[1][]{\item[% + {% + \raisebox{0pt}[1ex][0pt]{\makebox[\cvlabelwidth][l]% + {\parbox[t]{\cvlabelwidth}{\raggedleft\cvlabelfont #1}}% + }% + }% +]} + +\newcommand{\cvsummary}[1]{% + \xitem[] #1% +} +\newcommand{\litem}[2][]{% + \xitem[#1] #2 +} +\addtolength{\cvlabelwidth}{2mm} +}{} +} +% + + +\InputIfFileExists{epsrc2.config}{}{} +\endinput