From 780996afdcb4eac7c3ebf73a92d7204dfda93879 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Sat, 24 Dec 2011 00:30:46 +0000
Subject: ecv (23dec11)

git-svn-id: svn://tug.org/texlive/trunk@24928 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/ecv/ecv.cls | 57 ++++++++++++++++++++++++---------
 1 file changed, 42 insertions(+), 15 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/ecv/ecv.cls')

diff --git a/Master/texmf-dist/tex/latex/ecv/ecv.cls b/Master/texmf-dist/tex/latex/ecv/ecv.cls
index cf62caec0fb..56fdae69ebe 100644
--- a/Master/texmf-dist/tex/latex/ecv/ecv.cls
+++ b/Master/texmf-dist/tex/latex/ecv/ecv.cls
@@ -1,5 +1,5 @@
 %%
-%% Copyright 2006-2007 Christoph Neumann, Bernd Haberstumpf
+%% Copyright 2006-2011 Christoph P. Neumann, Bernd Haberstumpf
 %%
 %% This LaTeX class provides a simple interface for creating
 %% a verfy fancy Curriculum Vitae. At the moment only CVs in
@@ -20,8 +20,8 @@
 %%
 
 
-\def\fileversion{0.1}
-\def\filedate{2007/01/05}
+\def\fileversion{0.3}
+\def\filedate{2011/04/18}
 
 \NeedsTeXFormat{LaTeX2e}
 
@@ -39,6 +39,7 @@
 \DeclareOption{english}{\def\ecv@lang{\ecv@english}}
 \DeclareOption{oneside}{\PassOptionsToClass{oneside}{scrartcl}}
 \DeclareOption{twoside}{\PassOptionsToClass{twoside}{scrartcl}}
+\DeclareOption{selinput}{\def\ecv@selinput{1}}
 \DeclareOption{empty}{\def\ecv@empty{1}}
 \ProcessOptions
 
@@ -74,7 +75,11 @@
 
 \RequirePackage{fancyhdr}
 
-\RequirePackage{selinput}
+\ifx\ecv@empty\undefined
+\RequirePackage[latin9]{inputenc} % = latin1, but also with euro sign
+\else
+  \RequirePackage{selinput}
+\fi
 
 \RequirePackage[T1]{fontenc}
 
@@ -212,7 +217,9 @@
 }
 
 \newcommand{\ecvBold}[2][\ecv@lang]{%
-  \textbf{#2}%
+  \ifthenelse{\equal{#1}{\ecv@lang}}{%
+    \textbf{#2}%
+  }{}%
 }
 
 \newcommand{\ecvBulleted}[1]{$\circ$ #1}
@@ -278,43 +285,63 @@
 
 
 \newcommand{\ecvEPR}[3][\ecv@lang]{%
-  \ecvTP[#1]{#2} & \ecvVR[#1]{#3} %
+  \ifthenelse{\equal{#1}{\ecv@lang}}{%
+    \ecvTP[#1]{#2} & \ecvVR[#1]{#3} %
+  }{}%
 }
 \newcommand{\ecvTagPlainValueRagged}[3][\ecv@lang]{\ecvERP[#1]{#2}{#3}}
 \newcommand{\ecvEPB}[3][\ecv@lang]{%
-  \ecvTP[#1]{#2} & \ecvVB[#1]{#3} %
+  \ifthenelse{\equal{#1}{\ecv@lang}}{%
+    \ecvTP[#1]{#2} & \ecvVB[#1]{#3} %
+  }{}%
 }
 \newcommand{\ecvTagPlainValueBlocked}[3][\ecv@lang]{\ecvERB[#1]{#2}{#3}}
 \newcommand{\ecvEFR}[3][\ecv@lang]{%
-  \ecvTF[#1]{#2} & \ecvVR[#1]{#3} %
+  \ifthenelse{\equal{#1}{\ecv@lang}}{%
+    \ecvTF[#1]{#2} & \ecvVR[#1]{#3} %
+  }{}%
 }
 \newcommand{\ecvTagFirstValueRagged}[3][\ecv@lang]{\ecvEFR[#1]{#2}{#3}}
 \newcommand{\ecvEFB}[3][\ecv@lang]{%
-  \ecvTF[#1]{#2} & \ecvVB[#1]{#3} %
+  \ifthenelse{\equal{#1}{\ecv@lang}}{%
+    \ecvTF[#1]{#2} & \ecvVB[#1]{#3} %
+  }{}%
 }
 \newcommand{\ecvTagFirstValueBlocked}[3][\ecv@lang]{\ecvEFB[#1]{#2}{#3}}
 \newcommand{\ecvEIR}[3][\ecv@lang]{%
-  \ecvTI[#1]{#2} & \ecvVR[#1]{#3} %
+  \ifthenelse{\equal{#1}{\ecv@lang}}{%
+    \ecvTI[#1]{#2} & \ecvVR[#1]{#3} %
+  }{}%
 }
 \newcommand{\ecvTagIntermediateValueRagged}[3][\ecv@lang]{\ecvEIR[#1]{#2}{#3}}
 \newcommand{\ecvEIB}[3][\ecv@lang]{%
-  \ecvTI[#1]{#2} & \ecvVB[#1]{#3} %
+  \ifthenelse{\equal{#1}{\ecv@lang}}{%
+    \ecvTI[#1]{#2} & \ecvVB[#1]{#3} %
+  }{}%
 }
 \newcommand{\ecvTagIntermediateValueBlocked}[3][\ecv@lang]{\ecvEIB[#1]{#2}{#3}}
 \newcommand{\ecvENR}[3][\ecv@lang]{%
-  \ecvTN[#1]{#2} & \ecvVR[#1]{#3} %
+  \ifthenelse{\equal{#1}{\ecv@lang}}{%
+    \ecvTN[#1]{#2} & \ecvVR[#1]{#3} %
+  }{}%
 }
 \newcommand{\ecvTagNextValueRagged}[3][\ecv@lang]{\ecvENR[#1]{#2}{#3}}
 \newcommand{\ecvENB}[3][\ecv@lang]{%
-  \ecvTN[#1]{#2} & \ecvVB[#1]{#3} %
+  \ifthenelse{\equal{#1}{\ecv@lang}}{%
+    \ecvTN[#1]{#2} & \ecvVB[#1]{#3} %
+  }{}%
 }
 \newcommand{\ecvTagNextValueBlocked}[3][\ecv@lang]{\ecvENB[#1]{#2}{#3}}
 \newcommand{\ecvOVR}[2][\ecv@lang]{%
-  & \ecvVR[#1]{#2} %
+  \ifthenelse{\equal{#1}{\ecv@lang}}{%
+    & \ecvVR[#1]{#2} %
+  }{}%
 }
 \newcommand{\ecvOnlyValueRagged}[2][\ecv@lang]{\ecvOVR[#1]{#2}}
 \newcommand{\ecvOVB}[2][\ecv@lang]{%
-  & \ecvVB[#1]{#2} %
+  \ifthenelse{\equal{#1}{\ecv@lang}}{%
+    & \ecvVB[#1]{#2} %
+  }{}%
 }
 \newcommand{\ecvOnlyValueBlocked}[2][\ecv@lang]{\ecvOVB[#1]{#2}}
 
-- 
cgit v1.2.3

