As @rais already told, for
evc loading package helvet is enough to get Helvetica (or a Helvetica clone):
Code: Select all
\documentclass[german]{ecv}
\ecvName{Frieder Nikolaisen}
\usepackage[T1]{fontenc}
\usepackage{helvet}
\begin{document}
\begin{ecv}
\ecvSec{\hypertarget{hypertarget:\ecvPerson}{\ecvPerson}}
\ecvEPR{Name} {Test, Nobody}
\end{ecv}
\end{document}
Only, if footnotes and other elements, that imply
\normalfont
you have to add
\renewcommand\familydefault{\sffamily}
:
Code: Select all
\documentclass[german]{ecv}
\ecvName{Frieder Nikolaisen}
\usepackage[T1]{fontenc}
\usepackage{helvet}
\renewcommand\familydefault{\sfdefault}
\begin{document}
\begin{ecv}
\ecvSec{\hypertarget{hypertarget:\ecvPerson}{\ecvPerson}}
\ecvEPR{Name} {Test\footnote{Footnote also in Helvetica}, Nobody}
\end{ecv}
\end{document}
For Times it is not enough to add a
\normalfamily
via
\AtBeginDocument
, because the class also uses explicit
\textsf
. So if everything should be in Times, you either have to redefine the sans serif font to use the roman one:
Code: Select all
\documentclass[german]{ecv}
\ecvName{Frieder Nikolaisen}
\usepackage[T1]{fontenc}
\usepackage{mathptmx}
\renewcommand\sfdefault{\rmdefault}
\begin{document}
\begin{ecv}
\ecvSec{\hypertarget{hypertarget:\ecvPerson}{\ecvPerson}}
\ecvEPR{Name} {Test\footnote{Footnote also in Times}, Nobody}
\end{ecv}
\end{document}
In this case you cannot switch to sans serif with
\sffamily
or
\textsf
. So the other suggestion would be to change the footer definition:
Code: Select all
\documentclass[german]{ecv}
\ecvName{Frieder Nikolaisen}
\usepackage[T1]{fontenc}
\usepackage{mathptmx}
\makeatletter
\AtBeginDocument{%
\normalfont
\fancyfoot[R]{%
\begin{minipage}{5cm}
\raggedleft
\footnotesize\ecvPage~\thepage
\end{minipage}
}%
\fancyfoot[L]{%
\begin{minipage}{6cm}
\footnotesize\ecvTitle~\ecv@name
\end{minipage}
}%
}
\makeatother
\begin{document}
\begin{ecv}
\ecvSec{\hypertarget{hypertarget:\ecvPerson}{\ecvPerson}}
\ecvEPR{Name} {Test\footnote{Footnote also in Times}, Nobody}
\end{ecv}
For other classes like most letter classes, e.g.
scrlttr2, you would need
Code: Select all
\usepackage{helvet}
\renewcommand\familydefault{\sfdefault}
to change the default font to Helvetica but only
for Times.
BTW: I've replaced
flushright
environment in the right foot definition by
\raggedright
to avoid the extra vertical space before and after it on left pages. Also I've used extra
%
to avoid orphan spaces.
BTW: There are better Times like and Helvetica like fonts, e.g., TeX Gyre Termes and TeX Gyre Heros. Those are also available as OTF and can be uses with LuaLaTeX and XeLaTeX using
fontspec.
Last but not least: Please use the code tag/button not the latex tag/button for several lines of code.