epsrc/epsrc.sty

69 lines
1.4 KiB
Plaintext
Raw Normal View History

2022-05-13 09:13:19 +00:00
%% 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.
2022-05-13 09:23:46 +00:00
%% OR
%% The 2-clause BSD-style license.
%%
%% SPDX-License-Identifier: LPPL-1.3c+ OR BSD-2-Clause
2022-05-13 09:13:19 +00:00
%%
\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}
}{}
}
%
2022-05-13 11:58:04 +00:00
\InputIfFileExists{epsrc.config}{}{}
2022-05-13 09:13:19 +00:00
\endinput