summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/europecv/europecv.cls
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-12-25 03:01:41 +0000
committerNorbert Preining <norbert@preining.info>2021-12-25 03:01:41 +0000
commit41baa3fc38fdb0dfd5f1825d8548a999ab07bf5d (patch)
tree2aa0e84c98e4eff8dcef10ccf1687e0bb396e2fa /macros/latex/contrib/europecv/europecv.cls
parent71bfbdc975332e32bf47112ec2d32f8491b1df40 (diff)
CTAN sync 202112250301
Diffstat (limited to 'macros/latex/contrib/europecv/europecv.cls')
-rw-r--r--macros/latex/contrib/europecv/europecv.cls129
1 files changed, 127 insertions, 2 deletions
diff --git a/macros/latex/contrib/europecv/europecv.cls b/macros/latex/contrib/europecv/europecv.cls
index 6e16c42c6f..2febdbe04d 100644
--- a/macros/latex/contrib/europecv/europecv.cls
+++ b/macros/latex/contrib/europecv/europecv.cls
@@ -1,12 +1,13 @@
%!TEX encoding = UTF-8 Unicode
%
% European curriculum vitae class
-% Author: Nicola Vitacolonna (nicola.vitacolonna@uniud.it) and Giuseppe Silano (giuseppe.silano@unisannio.it)
+% Author: Nicola Vitacolonna (nicola.vitacolonna@uniud.it) and Giuseppe Silano
+%(giuseppe.silano@fel.cvut.cz)
% This material is subject to the LaTeX Project Public License, either version 1.3
% See https://ctan.mirror.garr.it/mirrors/CTAN/help/Catalogue/licenses.lppl.html
% for the details of that license
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{europecv}[05/10/2021 (Unicode TeX detection) European curriculum vitae class]
+\ProvidesClass{europecv}[24/12/2021 (Unicode TeX detection) European curriculum vitae class]
% CV models and instructions:
% http://europass.cedefop.eu.int/htm/index.htm
@@ -300,6 +301,113 @@
\PassOptionsToClass{\CurrentOption}{article}%
}
+
+%%%%%%% Counters
+%%%%%% FootNote counter for blfootnote
+\newcounter{FootNoteCounter}
+\setcounter{FootNoteCounter}{0}
+
+\newcommand{\ecvdisplayFootNoteCounter}[1][]{%
+ \stepcounter{FootNoteCounter}%
+ \hypertarget{#1}{\textsuperscript{\theFootNoteCounter}}%
+}
+
+\newcommand{\ecvrefFootNoteCounter}[1][]{%
+ \myhyperlink{#1}%
+}
+
+%%%%%% Conference publications - the '%' symbol it is used to avoid undesired spaces
+\newcounter{ConferencePublications}
+\setcounter{ConferencePublications}{0}
+
+\newcommand{\ecvdisplayConferencePublications}[1][]{%
+ \stepcounter{ConferencePublications}%
+ \hypertarget{#1}{[C\theConferencePublications]}%
+}
+
+\newcommand{\ecvrefConferencePublications}[1][]{%
+ \myhyperlink{#1}%
+}
+
+%%%%%% Book Chapters publications - the '%' symbol it is used to avoid undesired spaces
+\newcounter{BookChapterPublications}
+\setcounter{BookChapterPublications}{0}
+
+\newcommand{\ecvdisplayBookChapterPublications}[1][]{%
+ \stepcounter{BookChapterPublications}%
+ \hypertarget{#1}{[BC\theBookChapterPublications]}%
+}
+
+\newcommand{\ecvrefBookChapterPublications}[1][]{%
+ \myhyperlink{#1}%
+}
+
+
+%%%%%% ReferredJournals - the '%' symbol it is used to avoid undesired spaces
+\newcounter{ReferredJournalsPublications}
+\setcounter{ReferredJournalsPublications}{0}
+
+\newcommand{\ecvdisplayReferredJournalsPublications}[1][]{%
+ \stepcounter{ReferredJournalsPublications}%
+ \hypertarget{#1}{[J\theReferredJournalsPublications]}%
+}
+
+\newcommand{\ecvrefReferredJournalsPublications}[1][]{%
+ \myhyperlink{#1}%
+}
+
+%%%%%% Workshop - the '%' symbol it is used to avoid undesired spaces
+\newcounter{Workshops}
+\setcounter{Workshops}{0}
+
+\newcommand{\ecvdisplayWorkshops}[1][]{%
+ \stepcounter{Workshops}%
+ \hypertarget{#1}{[W\theWorkshops]}%
+}
+
+\newcommand{\ecvrefWorkshopsPublications}[1][]{%
+ \myhyperlink{#1}%
+}
+
+%%%%%% Posters - the '%' symbol it is used to avoid undesired spaces
+\newcounter{Posters}
+\setcounter{Posters}{0}
+
+\newcommand{\ecvdisplayPosters}[1][]{%
+ \stepcounter{Posters}%
+ \hypertarget{#1}{[P\thePosters]}%
+}
+
+\newcommand{\ecvrefPosters}[1][]{%
+ \myhyperlink{#1}%
+}
+
+%%%%%% Research Projects - the '%' symbol it is used to avoid undesired spaces
+\newcounter{ResearchProjects}
+\setcounter{ResearchProjects}{0}
+
+\newcommand{\ecvdisplayResearchProjects}[1][]{%
+ \stepcounter{ResearchProjects}%
+ \hypertarget{#1}{[RP\theResearchProjects]}%
+}
+
+\newcommand{\ecvrefResearchProjects}[1][]{%
+ \myhyperlink{#1}%
+}
+
+%%%%%% Awards - the '%' symbol it is used to avoid undesired spaces
+\newcounter{Awards}
+\setcounter{Awards}{0}
+
+\newcommand{\ecvdisplayAwards}[1][]{%
+ \stepcounter{Awards}%
+ \hypertarget{#1}{[A\theAwards]}%%
+}
+
+\newcommand{\ecvrefAwards}[1][]{%
+ \myhyperlink{#1}%
+}
+
\ExecuteOptions{english,noflag,logo,hrule} % Default options
\ProcessOptions\relax
@@ -338,6 +446,23 @@
\ecvfootnote{}
\AtBeginDocument{%
+
+\RequirePackage{etoolbox} %important for \AfterPreamble
+
+% To user hypertargets
+\RequirePackage{hyperref}%
+\let\oldhypertarget\hypertarget%
+\renewcommand{\hypertarget}[2]{%
+ \oldhypertarget{#1}{#2}%
+ \protected@write\@mainaux{}{%
+ \string\expandafter\string\gdef%
+ \string\csname\string\detokenize{#1}\string\endcsname{#2}%
+ }%
+}%
+\newcommand{\myhyperlink}[1]{%
+ \hyperlink{#1}{\csname #1\endcsname}%
+}%
+
% Ensure that \ecv@leftcolwidth and \ecv@rightcolwidth
% are correctly defined
\ecvLeftColumnWidth{\ecv@leftcolwidth}