Archiv verlassen und diese Seite im Standarddesign anzeigen : Photo in moderncv
bluebananna
07-01-2010, 09:58
Nach leider erfolgloser Recherche, hier meine Frage:
Ich bin dabei meinen Lebenslauf mit moderncv im casual Stil zu schreiben. Dieser setzt das Photo in die linke obere Ecke und die Adressdaten als Fußzeile. Ich hätte gerne das Photo rechts oben. Wenn ich in den classic Stil wechsle, erreiche ich das, aber leider sind dann auch die Adressdaten rechts oben, was mir nicht gefällt und auch Umbrüche bei der Emailadresse verursacht.
Also: Wie bekomme ich mein Photo nach rechts oben, wobei die Adressdaten aber in der Fußzeile verbleiben?
Wäre für jede Hilfe sehr dankbar!
Minimalbeispiel:
%% start of file `template_en.tex'.
%% Copyright 2007 Xavier Danaux (xdanaux@gmail.com).
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License version 1.3c,
% available at http://www.latex-project.org/lppl/.
\documentclass[11pt,a4paper]{moderncv}
% moderncv themes
\moderncvtheme[blue]{classic} % optional argument are 'blue' (default), 'orange', 'red', 'green', 'grey' and 'roman' (for roman fonts, instead of sans serif fonts)
%\moderncvtheme[green]{classic} % idem
% character encoding
\usepackage[utf8]{inputenc} % replace by the encoding you are using
% adjust the page margins
\usepackage[scale=0.8]{geometry}
\recomputelengths % required when changes are made to page layout lengths
% personal data
\firstname{Jane}
\familyname{Doe}
\title{Resumé title (optional)} % optional, remove the line if not wanted
\address{Street}{0000 City} % optional, remove the line if not wanted
\mobile{+00 123 4567890} % optional, remove the line if not wanted
%\phone{phone (optional)} % optional, remove the line if not wanted
%\fax{fax (optional)} % optional, remove the line if not wanted
\email{jdoe@email.com} % optional, remove the line if not wanted
%\extrainfo{additional information (optional)} % optional, remove the line if not wanted
\photo[96pt]{picture} % '64pt' is the height the picture must be resized to and 'picture' is the name of the picture file; optional, remove the line if not wanted
\quote{The most exciting phrase to hear in science, the one that heralds new discoveries, is not 'Eureka!', but 'That's funny...' - Isaac Asimov.} % optional, remove the line if not wanted
%\nopagenumbers{} % uncomment to suppress automatic page numbering for CVs longer than one page
%----------------------------------------------------------------------------------
% content
%----------------------------------------------------------------------------------
\begin{document}
\maketitle
\section{Education}
\cventry{2008-present}{Master }{University}{COUNTRY}{}{....} % arguments 3 to 6 are optional
\section{Master thesis}
\cvline{title}{\emph{Topic}}
\cvline{supervisors}{Supervisor}
\cvline{description}{\small Short thesis abstract}
\section{Experience}
\subsection{Vocational}
\cventry{1900}{...}{Company}{City}{}{...}% arguments 3 to 6 are optional
\section{Languages}
\cvlanguage{German}{Native}{...}
\cvlanguage{English}{Fluent}{...}
\section{Computer skills}
\cvcomputer{Operating System}{...}{}{}
\cvcomputer{Office Automation}{\LaTeX}{}{}
\cvcomputer{Scientific}{...}{}{}
\section{Interests}
\cvline{Traveling}{...}
\cvline{Dancing}{...}
\closesection{} % needed to renewcommands
\renewcommand{\listitemsymbol}{-} % change the symbol for lists
\end{document}
localghost
07-01-2010, 19:17
Je nach Wahl des Stils (casual oder classic) lädt die Klasse eine Datei nach, in der der Kopf definiert wird. In diesem Fall musst Du also in die Datei moderncvthemecasual.sty schauen und den Kopf ändern.
\renewcommand*{\maketitle}{%
{%
% \raggedright{\firstnamestyle{\MakeLowercase{\@firs tname}}\familynamestyle{\MakeLowercase{\@familynam e}}}\\[-.35em]}%
\raggedright{\firstnamestyle{\@firstname}~\familyn amestyle{\@familyname}}\\[-.35em]}%
{\color{firstnamecolor}\rule{\textwidth}{.25ex}\\[2.5em]}%
\hfill%
\ifthenelse{\isundefined{\@photo}}%
{}%
{{\color{firstnamecolor}\framebox{\includegraphics[width=\@photowidth]{\@photo}}}}%
% optional quote
\ifthenelse{\isundefined{\@quote}}%
{}%
{\centering{\begin{minipage}{\quotewidth}\centerin g\quotestyle{\@quote}\end{minipage}}\\[2.5em]}%
}%
Damit sind Foto und Name vertauscht. An Stelle der roten Markierungen steht im Original \raggedleft. Da der Name aber jetzt links steht, muss auch die Einrückung geändert werden. Diese Zeilen in der Prämbel nach \moderncvtheme[blue]{classic} einfügen.
MfG
Thorsten¹
bluebananna
08-01-2010, 08:25
Hi,
Danke für die Antwort. Leider bekomm ichs irgendwie nicht ganz hin... Den Kopf hab ich geändert, so dass er jetzt so ausschaut:
% maketitle
\renewcommand*{\maketitle}{%
{%
\raggedright{\firstnamestyle{\MakeLowercase{\@firs tname}}\familynamestyle{\MakeLowercase{\@familynam e}}}\\[-.35em]}%
{\color{firstnamecolor}\rule{\textwidth}{.25ex}\\[2.5em]}%
\hfill%
\ifthenelse{\isundefined{\@photo}}%
{}%
{{\color{firstnamecolor}\framebox{\includegraphics[height=\@photoheight]{\@photo}}}}%
% optional quote
Jetzt ist das Photo auch rechts und mein Name links, aber dafür rutscht das Photo unter die Linie, die den Namen unterstreicht. Wie kann ich das ändern?
Danke!
MfG Anna
bluebananna
11-01-2010, 09:53
So. Ich habs geschafft. Der endgültige Header sieht jetzt so aus:
% maketitle
\renewcommand*{\maketitle}{%
{%
\raggedright{\firstnamestyle{\MakeLowercase{\@firs tname}}\familynamestyle{\MakeLowercase{\@familynam e}}}}%
\hfill%
\ifthenelse{\isundefined{\@photo}}%
{}%
{{\color{firstnamecolor}\framebox{\includegraphics[height=\@photoheight]{\@photo}}}}%
{\color{firstnamecolor}\rule{\textwidth}{.25ex}\\[2.5em]}%
Keine Ahnung ob das schön ist, aber es funktioniert. Photo ist rechts und über der Linie - also für mich passts :)
Moin!
Ich bin jetzt auch in der glücklichen Situation und darf mich bewerben! Das Studium ist fast geschaft! Leider komme ich mit dem Umbau der moderncvthemecasual.sty nicht klar! Kann mir jemand seine frisierte Datei posten? Das wäre echt nett!
Name soll links stehen und das Passbild rechts! Danke
nixversteh
13-02-2010, 18:34
Moin!
Ich bin jetzt auch in der glücklichen Situation und darf mich bewerben! Das Studium ist fast geschaft! Leider komme ich mit dem Umbau der moderncvthemecasual.sty nicht klar! Kann mir jemand seine frisierte Datei posten? Das wäre echt nett!
Name soll links stehen und das Passbild rechts! Danke
Hallo wasser,
schau mal hier ...http://mrunix.de/forums/showthread.php?t=67350
Gruß
Martin
Moin und Danke für deine schnelle Antwort!
Allerdings blicke ich da noch nicht durch! Ich arbeite mit Windows und TeXnicCenter! Wenn ich die Änderungen vornehme entsteht bei mir keine PDF mehr, sonder nur Fehler! :confused:
Hast vielleicht noch einen Tip für mich???
nixversteh
13-02-2010, 19:13
Moin und Danke für deine schnelle Antwort!
Allerdings blicke ich da noch nicht durch! Ich arbeite mit Windows und TeXnicCenter! Wenn ich die Änderungen vornehme entsteht bei mir keine PDF mehr, sonder nur Fehler! :confused:
Hast vielleicht noch einen Tip für mich???
Hallo wasser,
ändere mal \usepackage[utf8]{inputenc} in latin1
am Besten wäre es, wenn du deinen Code (und die Fehlermeldunge(n)) hier mal reinstellst ...
Viel Erfolg
Gruß
Martin
Hallo,
hier ist mein Quellcode!
Ach, und was ich ja richtig klasse fände wenn mein Berufstitel auf der linken Seite unter der Linie der Kopfzeile stehen würde!
\documentclass[10pt,a4paper]{moderncv}
\usepackage[latin1]{inputenc}
\usepackage{ngerman}
% moderncv themes
\moderncvtheme[blue]{casual} % optional argument are 'blue' (default), 'orange', 'red', 'green', 'grey' and 'roman' (for roman fonts, instead of sans serif fonts)
%\moderncvtheme[green]{classic} % idem
% character encoding
\usepackage[latin1]{inputenc} % replace by the encoding you are using
\usepackage{ngerman}
% adjust the page margins
\usepackage[scale=0.8]{geometry}
%\setlength{\hintscolumnwidth}{3cm} % if you want to change the width of the column with the dates
%\AtBeginDocument{\setlength{\maketitlenamewidth}{ 6cm}} % only for the classic theme, if you want to change the width of your name placeholder (to leave more space for your address details
\AtBeginDocument{\recomputelengths} % required when changes are made to page layout lengths
% personal data
\firstname{Klaus}
\familyname{Meier}
\photo[80pt]{C:/Passbild.jpg}
\quote{\huge Lebenslauf } % optional, remove the line if not wanted
%\nopagenumbers{} % uncomment to suppress automatic page numbering for CVs longer than one page
%----------------------------------------------------------------------------------
% content
%----------------------------------------------------------------------------------
\begin{document}
\maketitle
\section{Persönliche Daten}
%\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{D escription} % arguments 3 to 6 are optional
%\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{D escription} % arguments 3 to 6 are optional
\cvitem{Geburtsdatum}{11.11.1111}
\cvitem{Geburtsort}{Stadt}
\cvitem{Familienstand}{ledig}
\cvitem{Nationalität}{deutsch}
\section{Studium}
\cvline{Titel}{\emph{pfovkdfokfdov}}
\cvline{08/2008 -- 07/2010}{sertgertgergtertgtgtrg}
\\
Ort, \today
\end{document}
Grüße Peter
nixversteh
14-02-2010, 13:02
Hallo,
hier ist mein Quellcode!
Ach, und was ich ja richtig klasse fände wenn mein Berufstitel auf der linken Seite unter der Linie der Kopfzeile stehen würde!
\documentclass[10pt,a4paper]{moderncv}
\usepackage[latin1]{inputenc}
\usepackage{ngerman} (streichen, weil doppelt)
% moderncv themes
\moderncvtheme[blue]{casual} % optional argument are 'blue' (default), 'orange', 'red', 'green', 'grey' and 'roman' (for roman fonts, instead of sans serif fonts)
%\moderncvtheme[green]{classic} % idem
% character encoding
\usepackage[latin1]{inputenc} % replace by the encoding you are using
\usepackage{ngerman} (ändern: \usepackage[ngerman]){babel}
% adjust the page margins
\usepackage[scale=0.8]{geometry}
%\setlength{\hintscolumnwidth}{3cm} % if you want to change the width of the column with the dates
%\AtBeginDocument{\setlength{\maketitlenamewidth}{ 6cm}} % only for the classic theme, if you want to change the width of your name placeholder (to leave more space for your address details
\AtBeginDocument{\recomputelengths} % required when changes are made to page layout lengths
% personal data
\firstname{Klaus}
\familyname{Meier}
\photo[80pt]{C:/Passbild.jpg}
\quote{\huge Lebenslauf } % optional, remove the line if not wanted
%\nopagenumbers{} % uncomment to suppress automatic page numbering for CVs longer than one page
%----------------------------------------------------------------------------------
% content
%----------------------------------------------------------------------------------
\begin{document}
\maketitle
\section{Persönliche Daten}
%\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{D escription} % arguments 3 to 6 are optional
%\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{D escription} % arguments 3 to 6 are optional
\cvitem{Geburtsdatum}{11.11.1111}
\cvitem{Geburtsort}{Stadt}
\cvitem{Familienstand}{ledig}
\cvitem{Nationalität}{deutsch}
\section{Studium}
\cvline{Titel}{\emph{pfovkdfokfdov}}
\cvline{08/2008 -- 07/2010}{sertgertgergtertgtgtrg}
\\
Ort, \today
\end{document}
Grüße Peter
Hallo Peter,
der Titel folgt doch etwas später, weshalb magst ihn denn oben nochmal haben? Egal, musst etwas fukeln ...
Ändere bitte mal rot markierte Zeilen.
Viel Erfolg
Gruß
Martin
Moin Martin,
also geändert habe ich es soweit, aber warum soll sich durch diese Änderung das Bild auf die rechte Seite schieben und der Name nach links??? Versteh ich nicht! Na ja, hier noch einmal mein geänderter Quellcode: Für weitere Tips bin ich echt dankbar!
Grüße Peter
\documentclass[10pt,a4paper]{moderncv}
\usepackage[latin1]{inputenc}
%moderncv themes
\moderncvtheme[orange]{casual} % optional argument are 'blue' (default), 'orange', 'red', 'green', 'grey' and 'roman'
\usepackage[latin1]{inputenc} % replace by the encoding you are using
\usepackage[ngerman]{babel}
\usepackage[scale=0.8]{geometry}
\AtBeginDocument{\recomputelengths} % required when changes are made to page layout lengths
\firstname{Klaus}
\familyname{Meier}
\photo[80pt]{C:/Passbild.jpg}
\quote{\huge Lebenslauf } % optional, remove the line if not wanted
%----------------------------------------------------------------------------------
% content
%----------------------------------------------------------------------------------
\begin{document}
\maketitle
\section{Persönliche Daten}
\cvitem{Geburtsdatum}{11.11.1111}
\cvitem{Geburtsort}{Stadt}
\cvitem{Familienstand}{ledig}
\cvitem{Nationalität}{deutsch}
\section{Studium}
\cvline{Titel}{\emph{pfovkdfokfdov}}
\cvline{08/2008 -- 07/2010}{sertgertgergtertgtgtrg}
\\
Ort, \today
\end{document}
nixversteh
14-02-2010, 15:37
Moin Martin,
also geändert habe ich es soweit, aber warum soll sich durch diese Änderung das Bild auf die rechte Seite schieben und der Name nach links??? Versteh ich nicht! Na ja, hier noch einmal mein geänderter Quellcode: Für weitere Tips bin ich echt dankbar!
Grüße Peter
Hallo Peter,
versuche mal diesen Code:
\documentclass[10pt,a4paper]{moderncv}
\usepackage[utf8x]{inputenc}
\moderncvtheme[orange]{casual}
\usepackage[ngerman]{babel}
\usepackage[scale=0.8]{geometry}
\AtBeginDocument{\recomputelengths}
\firstname{Klaus}
\familyname{Meier}
\photo[80pt]{bewerbungsbild.jpg}
\quote{\huge Lebenslauf}
\begin{document}
\maketitle
\section{Persönliche Daten}
\cvitem{Geburtsdatum}{11.11.1111}
\cvitem{Geburtsort}{Stadt}
\cvitem{Familienstand}{ledig}
\cvitem{Nationalität}{deutsch}
\section{Studium}
\cvline{Titel}{\emph{pfovkdfokfdov}}
\cvline{08/2008 -- 07/2010}{sertgertgergtertgtgtrg}
Ort, \today
\end{document}
... nachdem du die Datei moderncvthemecasual.sty durch diese ersetzt HAST. Am Besten, du packst die Dateien alle in einen Ordner.
%% start of file `moderncvthemecasual.sty'.
%% Copyright 2007 Xavier Danaux (xdanaux@gmail.com).
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License version 1.3c,
% available at http://www.latex-project.org/lppl/.
%-------------------------------------------------------------------------------
% identification
%-------------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{moderncvthemecasual}[2008/06/17 v0.7 modern curriculum vitae style: casual]
%-------------------------------------------------------------------------------
% required packages
%-------------------------------------------------------------------------------
% package options
%-------------------------------------------------------------------------------
% color options
% blue (default option)
\DeclareOption{blue}{}
% orange
\newif\if@colororange\@colororangefalse
\DeclareOption{orange}{\@colororangetrue}
% green
\newif\if@colorgreen\@colorgreenfalse
\DeclareOption{green}{\@colorgreentrue}
% red
\newif\if@colorred\@colorredfalse
\DeclareOption{red}{\@colorredtrue}
% grey
\newif\if@colorgrey\@colorgreyfalse
\DeclareOption{grey}{\@colorgreytrue}
% roman option
\newif\if@roman\@romanfalse
\DeclareOption{roman}{\@romantrue}
% unused options
\DeclareOption*{
\PackageWarning{moderncvthemecasual}{Unknown option ‘\CurrentOption’}}
% execute default options
\ExecuteOptions{color}
% process given options
\ProcessOptions\relax
%-------------------------------------------------------------------------------
% style definition
%-------------------------------------------------------------------------------
% symbols used
\renewcommand*{\listitemsymbol}{\textbullet}
% colors
\definecolor{firstnamecolor}{rgb}{0.65,0.65,0.65}
\definecolor{familynamecolor}{rgb}{0.45,0.45,0.45}
\definecolor{quotecolor}{rgb}{0.35,0.35,0.35}
\definecolor{addresscolor}{rgb}{0.35,0.35,0.35}
% default blue color
\definecolor{sectionrectanglecolor}{rgb}{0.25,0.50 ,0.75}
\definecolor{sectiontitlecolor}{rgb}{0.20,0.40,0.6 5}
\definecolor{subsectioncolor}{rgb}{0.20,0.40,0.65}
\definecolor{footersymbolcolor}{rgb}{0.25,0.50,0.7 5}
\if@colororange
\definecolor{sectionrectanglecolor}{rgb}{1.00,0.65 ,0.20}
\definecolor{sectiontitlecolor}{rgb}{0.95,0.55,0.1 5}
\definecolor{subsectioncolor}{rgb}{0.95,0.55,0.15}
\definecolor{footersymbolcolor}{rgb}{0.95,0.55,0.1 5}\fi
\if@colorgreen
\definecolor{sectionrectanglecolor}{rgb}{0.55,0.85 ,0.35}
\definecolor{sectiontitlecolor}{rgb}{0.30,0.65,0.1 5}
\definecolor{subsectioncolor}{rgb}{0.30,0.65,0.15}
\definecolor{footersymbolcolor}{rgb}{0.30,0.65,0.1 5}\fi
\if@colorred
\definecolor{sectionrectanglecolor}{rgb}{1.00,0.30 ,0.30}
\definecolor{sectiontitlecolor}{rgb}{0.95,0.20,0.2 0}
\definecolor{subsectioncolor}{rgb}{0.95,0.20,0.20}
\definecolor{footersymbolcolor}{rgb}{0.95,0.20,0.2 0}\fi
\if@colorgrey
\definecolor{sectionrectanglecolor}{rgb}{0.75,0.75 ,0.75}
\definecolor{sectiontitlecolor}{rgb}{0.35,0.35,0.3 5}
\definecolor{subsectioncolor}{rgb}{0.35,0.35,0.35}
\definecolor{footersymbolcolor}{rgb}{0.35,0.35,0.3 5}\fi
% fonts
\if@roman
\AtBeginDocument{\rmfamily}
\else
\AtBeginDocument{\sffamily}\fi
\renewcommand*{\ttdefault}{pcr}
\renewcommand*{\firstnamefont}{\fontsize{38}{40}\s ffamily\mdseries\upshape}
\renewcommand*{\familynamefont}{\firstnamefont}
\renewcommand*{\addressfont}{\normalsize\sffamily\ mdseries\slshape}
\renewcommand*{\quotefont}{\large\slshape}
\renewcommand*{\sectionfont}{\Large\sffamily\mdser ies\upshape}
\renewcommand*{\subsectionfont}{\large\sffamily\md series\upshape}
% styles
% maketitle
% setmaketitlenamemaxwidth to the full name length, capped by \maketitlenamemaxwidth
\newlength{\maketitlenamemaxwidth}
\setlength{\maketitlenamemaxwidth}{.525\textwidth}
\newlength{\maketitlenamefullwidth}
\settowidth{\maketitlenamefullwidth}{\firstnamesty le{\@firstname~}\familynamestyle{\@familyname}}
\newlength{\maketitlenamewidth}
\ifnum\maketitlenamemaxwidth<\maketitlenamefullwidth\setlength{\maketitlenamewi dth}{\maketitlenamemaxwidth}\else\setlength{\maket itlenamewidth}{\maketitlenamefullwidth}\fi
% other lengths
\newlength{\maketitlepicturewidth}
\setlength{\maketitlepicturewidth}{\@photowidth}
\newlength{\maketitledetailswidth}
% recompute theme-specific lengths, called by class to recompute all lengths
\renewcommand*{\recomputethemelengths}{%
\setlength{\maketitledetailswidth}{\textwidth}%
\addtolength{\maketitledetailswidth}{-\maketitlenamewidth}%
\addtolength{\maketitledetailswidth}{-\separatorcolumnwidth}%
\addtolength{\maketitledetailswidth}{-\maketitlepicturewidth}}
\recomputethemelengths
\newif\if@firstdetailselement\@firstdetailselement true
\newcommand*{\maketitledetailsnewline}{
\if@firstdetailselement%
\@firstdetailselementfalse%
\else%
\\[.2em]\fi}
\renewcommand*{\maketitle}{%
% name and title
\begin{minipage}[b]{\maketitlenamewidth}%
\firstnamestyle{\@firstname~}\familynamestyle{\@fa milyname}%
\ifthenelse{\equal{\@title}{}}{}{\\[1.25em]\titlestyle{\@title}}%
\end{minipage}%
% optional data
\begin{minipage}[b]{\maketitledetailswidth}%
\raggedleft\addressfont\color{addresscolor}%
\ifthenelse{\isundefined{\@addressstreet}}{}{%
\maketitledetailsnewline%
\addresssymbol~\@addressstreet%
\ifthenelse{\isundefined{\@addresscity}}{}{\\\@add resscity}}%
\ifthenelse{\isundefined{\@mobile}}{}{\maketitlede tailsnewline\mobilesymbol~\@mobile}%
\ifthenelse{\isundefined{\@phone}}{}{\maketitledet ailsnewline\phonesymbol~\@phone}%
\ifthenelse{\isundefined{\@fax}}{}{\maketitledetai lsnewline\faxsymbol~\@fax}%
\ifthenelse{\isundefined{\@email}}{}{\maketitledet ailsnewline\emailsymbol~\emaillink{\@email}}%
\ifthenelse{\isundefined{\@extrainfo}}{}{\maketitl edetailsnewline\@extrainfo}%
\end{minipage}%
% optional photo
\ifthenelse{\isundefined{\@photo}}%
{}%
{\hspace*{\separatorcolumnwidth}\color{firstnameco lor}\framebox{\includegraphics[width=\maketitlepicturewidth]{\@photo}}}\\[3em]%
% optional quote
\ifthenelse{\isundefined{\@quote}}%
{}%
{\centering{\begin{minipage}{\quotewidth}\centerin g\quotestyle{\@quote}\end{minipage}}\\[2.5em]}%
}
\endinput
%% end of file `moderncvthemecasual.sty'.
Viel Erfolg
Gruß
Martin
pheidrias
08-11-2011, 20:32
Hallo zusammen!
Habe mich auch mal an einem Umbau versucht (die vorhergehenden Beispiele entsprachen nicht den Erwartungen).
Folgende sty habe ich jetzt:
%% start of file `moderncvthemecasual.sty'.
%% Copyright 2007 Xavier Danaux (xdanaux@gmail.com).
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License version 1.3c,
% available at http://www.latex-project.org/lppl/.
%-------------------------------------------------------------------------------
% identification
%-------------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{moderncvthemecasual}[2008/06/17 v0.7 modern curriculum vitae style: casual]
%-------------------------------------------------------------------------------
% required packages
%-------------------------------------------------------------------------------
%-------------------------------------------------------------------------------
% package options
%-------------------------------------------------------------------------------
% color options
% blue (default option)
\DeclareOption{blue}{}
% orange
\newif\if@colororange\@colororangefalse
\DeclareOption{orange}{\@colororangetrue}
% green
\newif\if@colorgreen\@colorgreenfalse
\DeclareOption{green}{\@colorgreentrue}
% red
\newif\if@colorred\@colorredfalse
\DeclareOption{red}{\@colorredtrue}
% grey
\newif\if@colorgrey\@colorgreyfalse
\DeclareOption{grey}{\@colorgreytrue}
% roman option
\newif\if@roman\@romanfalse
\DeclareOption{roman}{\@romantrue}
% unused options
\DeclareOption*{
\PackageWarning{moderncvthemecasual}{Unknown option ‘\CurrentOption’}}
% execute default options
\ExecuteOptions{color}
% process given options
\ProcessOptions\relax
%-------------------------------------------------------------------------------
% style definition
%-------------------------------------------------------------------------------
% symbols used
\renewcommand*{\listitemsymbol}{\textbullet}
% colors
\definecolor{firstnamecolor}{rgb}{0.65,0.65,0.65}
\definecolor{familynamecolor}{rgb}{0.45,0.45,0.45}
\definecolor{quotecolor}{rgb}{0.35,0.35,0.35}
\definecolor{addresscolor}{rgb}{0.35,0.35,0.35}
% default blue color
\definecolor{sectionrectanglecolor}{rgb}{0.25,0.50 ,0.75}
\definecolor{sectiontitlecolor}{rgb}{0.20,0.40,0.6 5}
\definecolor{subsectioncolor}{rgb}{0.20,0.40,0.65}
\definecolor{footersymbolcolor}{rgb}{0.25,0.50,0.7 5}
\if@colororange
\definecolor{sectionrectanglecolor}{rgb}{1.00,0.65 ,0.20}
\definecolor{sectiontitlecolor}{rgb}{0.95,0.55,0.1 5}
\definecolor{subsectioncolor}{rgb}{0.95,0.55,0.15}
\definecolor{footersymbolcolor}{rgb}{0.95,0.55,0.1 5}\fi
\if@colorgreen
\definecolor{sectionrectanglecolor}{rgb}{0.55,0.85 ,0.35}
\definecolor{sectiontitlecolor}{rgb}{0.30,0.65,0.1 5}
\definecolor{subsectioncolor}{rgb}{0.30,0.65,0.15}
\definecolor{footersymbolcolor}{rgb}{0.30,0.65,0.1 5}\fi
\if@colorred
\definecolor{sectionrectanglecolor}{rgb}{1.00,0.30 ,0.30}
\definecolor{sectiontitlecolor}{rgb}{0.95,0.20,0.2 0}
\definecolor{subsectioncolor}{rgb}{0.95,0.20,0.20}
\definecolor{footersymbolcolor}{rgb}{0.95,0.20,0.2 0}\fi
\if@colorgrey
\definecolor{sectionrectanglecolor}{rgb}{0.75,0.75 ,0.75}
\definecolor{sectiontitlecolor}{rgb}{0.35,0.35,0.3 5}
\definecolor{subsectioncolor}{rgb}{0.35,0.35,0.35}
\definecolor{footersymbolcolor}{rgb}{0.35,0.35,0.3 5}\fi
% fonts
\if@roman
\AtBeginDocument{\rmfamily}
\else
\AtBeginDocument{\sffamily}\fi
\renewcommand*{\ttdefault}{pcr}
\renewcommand*{\firstnamefont}{\fontsize{38}{40}\s ffamily\mdseries\upshape}
\renewcommand*{\familynamefont}{\firstnamefont}
\renewcommand*{\addressfont}{\normalsize\sffamily\ mdseries\slshape}
\renewcommand*{\quotefont}{\large\slshape}
\renewcommand*{\sectionfont}{\Large\sffamily\mdser ies\upshape}
\renewcommand*{\subsectionfont}{\large\sffamily\md series\upshape}
% styles
% maketitle
% setmaketitlenamemaxwidth to the full name length, capped by \maketitlenamemaxwidth
\newlength{\maketitlenamemaxwidth}
\setlength{\maketitlenamemaxwidth}{.525\textwidth}
\newlength{\maketitlenamefullwidth}
\settowidth{\maketitlenamefullwidth}{\firstnamesty le{\@firstname~}\familynamestyle{\@familyname}}
\newlength{\maketitlenamewidth}
\ifnum\maketitlenamemaxwidth<\maketitlenamefullwidth\setlength{\maketitlenamewi dth}{\maketitlenamemaxwidth}\else\setlength{\maket itlenamewidth}{\maketitlenamefullwidth}\fi
% other lengths
\newlength{\maketitlepicturewidth}
\setlength{\maketitlepicturewidth}{\@photowidth}
\newlength{\maketitledetailswidth}
% recompute theme-specific lengths, called by class to recompute all lengths
\renewcommand*{\recomputethemelengths}{%
\setlength{\maketitledetailswidth}{\textwidth}%
\addtolength{\maketitledetailswidth}{-\maketitlenamewidth}%
\addtolength{\maketitledetailswidth}{-\separatorcolumnwidth}%
\addtolength{\maketitledetailswidth}{-\maketitlepicturewidth}}
\recomputethemelengths
\newif\if@firstdetailselement\@firstdetailselement true
\newcommand*{\maketitledetailsnewline}{
\if@firstdetailselement%
\@firstdetailselementfalse%
\else%
\\[.2em]\fi}
%maketitle
\renewcommand*{\maketitle}{%
% name and title
\begin{minipage}[b]{\maketitlenamewidth}%
\firstnamestyle{\@firstname~}\familynamestyle{\@fa milyname}%
\ifthenelse{\equal{\@title}{}}{}{\\[1.25em]\titlestyle{\@title}}%
\end{minipage}%
% space
\begin{minipage}[b]{\maketitledetailswidth}%
\hfill
\end{minipage}%
% optional photo
\ifthenelse{\isundefined{\@photo}}%
{}%
{\hspace*{\separatorcolumnwidth}\color{firstnameco lor}\framebox{\includegraphics[width=\maketitlepicturewidth]{\@photo}}}\\[-0.75em]%
{\color{firstnamecolor}\rule{\textwidth}{.25ex}}%
% optional quote
\ifthenelse{\isundefined{\@quote}}%
{}%
{\centering{\begin{minipage}{\quotewidth}\centerin g\quotestyle{\@quote}\end{minipage}}\\[2.5em]}%
}
% cv footer
\newif\if@firstfooterelement\@firstfooterelementtr ue
\providecommand*{\footersymbol}{}
\renewcommand*{\footersymbol}{%
\if@firstfooterelement%
\else%
{ ~~\color{footersymbolcolor}\textbullet~~~}\fi}
\providecommand*{\makefooter}{}
\renewcommand*{\makefooter}{%
\fancypagestyle{plain}{%
\fancyfoot[c]{%
\parbox{0.8\textwidth}{%
\centering%
\addressfont\color{addresscolor}%
\ifthenelse{\isundefined{\@addressstreet}}{}{%
\addresssymbol~\@addressstreet%
\@firstfooterelementfalse%
\ifthenelse{\isundefined{\@addresscity}}{}{~--~\@addresscity}\\\@firstfooterelementtrue}%
\ifthenelse{\isundefined{\@mobile}}{}{\footersymbo l\mobilesymbol~\@mobile\@firstfooterelementfalse}%
\ifthenelse{\isundefined{\@phone}}{}{\footersymbol \phonesymbol~\@phone\@firstfooterelementfalse}%
\ifthenelse{\isundefined{\@fax}}{}{\footersymbol\f axsymbol~\@fax\@firstfooterelementfalse}%
\ifthenelse{\isundefined{\@email}}{}{\footersymbol \emailsymbol~\emaillink{\@email}\@firstfootereleme ntfalse}%
\ifthenelse{\isundefined{\@extrainfo}}{}{\footersy mbol\@extrainfo\@firstfooterelementfalse}}}%
}%
\pagestyle{plain}}
\AtBeginDocument{\makefooter}
\endinput
%% end of file `moderncvthemecasual.sty'.
Das Problem ist, daß mein cv jetzt grau ist!
Hat jemand eine Idee, woran das liegen könnte?
Ist im Endeffekt erst entstanden, als ich den renew maketitle eingefügt habe...
pheidrias
09-11-2011, 17:01
Okay...habe es korrigieren können. Hier also eine (für mich ;-) ) funktionierende moderncvthemecasual.sty.
Diese einfach in den Ordner kopieren, wo das LaTeX-Dokument liegt und es sollte funktionieren!
%% start of file `moderncvthemecasual.sty'.
%% Copyright 2007 Xavier Danaux (xdanaux@gmail.com).
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License version 1.3c,
% available at http://www.latex-project.org/lppl/.
%-------------------------------------------------------------------------------
% identification
%-------------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{moderncvthemecasual}[2008/06/17 v0.7 modern curriculum vitae style: casual]
%-------------------------------------------------------------------------------
% required packages
%-------------------------------------------------------------------------------
%-------------------------------------------------------------------------------
% package options
%-------------------------------------------------------------------------------
% color options
% blue (default option)
\DeclareOption{blue}{}
% orange
\newif\if@colororange\@colororangefalse
\DeclareOption{orange}{\@colororangetrue}
% green
\newif\if@colorgreen\@colorgreenfalse
\DeclareOption{green}{\@colorgreentrue}
% red
\newif\if@colorred\@colorredfalse
\DeclareOption{red}{\@colorredtrue}
% grey
\newif\if@colorgrey\@colorgreyfalse
\DeclareOption{grey}{\@colorgreytrue}
% roman option
\newif\if@roman\@romanfalse
\DeclareOption{roman}{\@romantrue}
% unused options
\DeclareOption*{
\PackageWarning{moderncvthemecasual}{Unknown option ‘\CurrentOption’}}
% execute default options
\ExecuteOptions{color}
% process given options
\ProcessOptions\relax
%-------------------------------------------------------------------------------
% style definition
%-------------------------------------------------------------------------------
% symbols used
\renewcommand*{\listitemsymbol}{\textbullet}
% colors
\definecolor{firstnamecolor}{rgb}{0.65,0.65,0.65}
\definecolor{familynamecolor}{rgb}{0.45,0.45,0.45}
\definecolor{quotecolor}{rgb}{0.35,0.35,0.35}
\definecolor{addresscolor}{rgb}{0.35,0.35,0.35}
% default blue color
\definecolor{sectionrectanglecolor}{rgb}{0.25,0.50 ,0.75}
\definecolor{sectiontitlecolor}{rgb}{0.20,0.40,0.6 5}
\definecolor{subsectioncolor}{rgb}{0.20,0.40,0.65}
\definecolor{footersymbolcolor}{rgb}{0.25,0.50,0.7 5}
\if@colororange
\definecolor{sectionrectanglecolor}{rgb}{1.00,0.65 ,0.20}
\definecolor{sectiontitlecolor}{rgb}{0.95,0.55,0.1 5}
\definecolor{subsectioncolor}{rgb}{0.95,0.55,0.15}
\definecolor{footersymbolcolor}{rgb}{0.95,0.55,0.1 5}\fi
\if@colorgreen
\definecolor{sectionrectanglecolor}{rgb}{0.55,0.85 ,0.35}
\definecolor{sectiontitlecolor}{rgb}{0.30,0.65,0.1 5}
\definecolor{subsectioncolor}{rgb}{0.30,0.65,0.15}
\definecolor{footersymbolcolor}{rgb}{0.30,0.65,0.1 5}\fi
\if@colorred
\definecolor{sectionrectanglecolor}{rgb}{1.00,0.30 ,0.30}
\definecolor{sectiontitlecolor}{rgb}{0.95,0.20,0.2 0}
\definecolor{subsectioncolor}{rgb}{0.95,0.20,0.20}
\definecolor{footersymbolcolor}{rgb}{0.95,0.20,0.2 0}\fi
\if@colorgrey
\definecolor{sectionrectanglecolor}{rgb}{0.75,0.75 ,0.75}
\definecolor{sectiontitlecolor}{rgb}{0.35,0.35,0.3 5}
\definecolor{subsectioncolor}{rgb}{0.35,0.35,0.35}
\definecolor{footersymbolcolor}{rgb}{0.35,0.35,0.3 5}\fi
% fonts
\if@roman
\AtBeginDocument{\rmfamily}
\else
\AtBeginDocument{\sffamily}\fi
\renewcommand*{\ttdefault}{pcr}
\renewcommand*{\firstnamefont}{\fontsize{38}{40}\s ffamily\mdseries\upshape}
\renewcommand*{\familynamefont}{\firstnamefont}
\renewcommand*{\addressfont}{\normalsize\sffamily\ mdseries\slshape}
\renewcommand*{\quotefont}{\large\slshape}
\renewcommand*{\sectionfont}{\Large\sffamily\mdser ies\upshape}
\renewcommand*{\subsectionfont}{\large\sffamily\md series\upshape}
% styles
% maketitle
% setmaketitlenamemaxwidth to the full name length, capped by \maketitlenamemaxwidth
\newlength{\maketitlenamemaxwidth}
\setlength{\maketitlenamemaxwidth}{.525\textwidth}
\newlength{\maketitlenamefullwidth}
\settowidth{\maketitlenamefullwidth}{\firstnamesty le{\@firstname~}\familynamestyle{\@familyname}}
\newlength{\maketitlenamewidth}
\ifnum\maketitlenamemaxwidth<\maketitlenamefullwidth\setlength{\maketitlenamewi dth}{\maketitlenamemaxwidth}\else\setlength{\maket itlenamewidth}{\maketitlenamefullwidth}\fi
% other lengths
\newlength{\maketitlepicturewidth}
\setlength{\maketitlepicturewidth}{\@photowidth}
\newlength{\maketitledetailswidth}
% recompute theme-specific lengths, called by class to recompute all lengths
\renewcommand*{\recomputethemelengths}{%
\setlength{\maketitledetailswidth}{\textwidth}%
\addtolength{\maketitledetailswidth}{-\maketitlenamewidth}%
\addtolength{\maketitledetailswidth}{-\separatorcolumnwidth}%
\addtolength{\maketitledetailswidth}{-\maketitlepicturewidth}}
\recomputethemelengths
\newif\if@firstdetailselement\@firstdetailselement true
\newcommand*{\maketitledetailsnewline}{
\if@firstdetailselement%
\@firstdetailselementfalse%
\else%
\\[.2em]\fi}
%maketitle
\renewcommand*{\maketitle}{%
% name and title
\begin{minipage}[b]{\maketitlenamewidth}%
\firstnamestyle{\@firstname~}\familynamestyle{\@fa milyname}%
\ifthenelse{\equal{\@title}{}}{}{\\[1.25em]\titlestyle{\@title}}%
\end{minipage}%
% space
\begin{minipage}[b]{\maketitledetailswidth}%
\hfill
\end{minipage}%
% optional photo
\ifthenelse{\isundefined{\@photo}}%
{}%
{\hspace*{\separatorcolumnwidth}{\color{firstnamec olor}\framebox{\includegraphics[width=\maketitlepicturewidth]{\@photo}}}}\\[-0.6em]%
{\color{firstnamecolor}\rule{\textwidth}{.25ex}\\[2em]}%
% optional quote
\ifthenelse{\isundefined{\@quote}}%
{}%
{\centering{\begin{minipage}{\quotewidth}\centerin g\quotestyle{\@quote}\end{minipage}}\\[2.5em]}%
}
% cv footer
\newif\if@firstfooterelement\@firstfooterelementtr ue
\providecommand*{\footersymbol}{}
\renewcommand*{\footersymbol}{%
\if@firstfooterelement%
\else%
{ ~~\color{footersymbolcolor}\textbullet~~~}\fi}
\providecommand*{\makefooter}{}
\renewcommand*{\makefooter}{%
\fancypagestyle{plain}{%
\fancyfoot[c]{%
\parbox{0.8\textwidth}{%
\centering%
\addressfont\color{addresscolor}%
\ifthenelse{\isundefined{\@addressstreet}}{}{%
\addresssymbol~\@addressstreet%
\@firstfooterelementfalse%
\ifthenelse{\isundefined{\@addresscity}}{}{~--~\@addresscity}\\\@firstfooterelementtrue}%
\ifthenelse{\isundefined{\@mobile}}{}{\footersymbo l\mobilesymbol~\@mobile\@firstfooterelementfalse}%
\ifthenelse{\isundefined{\@phone}}{}{\footersymbol \phonesymbol~\@phone\@firstfooterelementfalse}%
\ifthenelse{\isundefined{\@fax}}{}{\footersymbol\f axsymbol~\@fax\@firstfooterelementfalse}%
\ifthenelse{\isundefined{\@email}}{}{\footersymbol \emailsymbol~\emaillink{\@email}\@firstfootereleme ntfalse}%
\ifthenelse{\isundefined{\@extrainfo}}{}{\footersy mbol\@extrainfo\@firstfooterelementfalse}}}%
}%
\pagestyle{plain}}
\AtBeginDocument{\makefooter}
\endinput
%% end of file `moderncvthemecasual.sty'.
Hallo, ich habe das gleiche Problem wie die Leute vor mir. Allerdings helfen hier die Tipps nicht weiter, da es scheinbar in der neuen moderncvstylecasual.sty das maketitle nicht mehr gibt.
Ich möchte einfach meinen Namen mit dem Bild im Titel tauschen...
Dazu muss ich irgendwas in der moderncvtylecasual ändern. Weiss aber nicht was :-(. Weiterhin sollen meine Kontaktdaten in der Fußzeile bleiben. Also keine Umwandlung in den classic-Style
Kann mir da jemand helfen?
%% start of file `moderncvstylecasual.sty'.
%% Copyright 2006-2012 Xavier Danaux (xdanaux@gmail.com).
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License version 1.3c,
% available at http://www.latex-project.org/lppl/.
%-------------------------------------------------------------------------------
% identification
%-------------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{moderncvstylecasual}[2012/07/30 v1.1.1 modern curriculum vitae and letter style scheme: casual]
%-------------------------------------------------------------------------------
% required packages
%-------------------------------------------------------------------------------
%-------------------------------------------------------------------------------
% package options
%-------------------------------------------------------------------------------
\RequirePackage{moderncvstyleclassic}
%-------------------------------------------------------------------------------
% overall style definition
%-------------------------------------------------------------------------------
% commands
% footer symbol used to separate footer elements
\newcommand*{\footersymbol}{%
{~~~{\rmfamily\textbullet}~~~}}% the \rmfamily is required to force Latin Modern fonts when using sans serif, as OMS/lmss/m/n is not defined and gets substituted by OMS/cmsy/m/n
% internal command to add an element to the footer
% it collects the elements in a temporary box, and checks when to flush the box
\newsavebox{\footerbox}%
\newsavebox{\footertempbox}%
\newlength{\footerwidth}%
\newlength{\footerboxwidth}%
\newif\if@firstfooterelement\@firstfooterelementtr ue%
% adds an element to the footer, separated by footersymbol
% usage: \addtofooter[footersymbol]{element}
\newcommand*{\addtofooter}[2][\footersymbol]{%
\if@firstfooterelement%
\savebox{\footertempbox}{\usebox{\footerbox}#2}%
\else%
\savebox{\footertempbox}{\usebox{\footerbox}#1#2}\ fi%
\settowidth{\footerboxwidth}{\usebox{\footertempbo x}}%
\ifnum\footerboxwidth<\footerwidth%
\savebox{\footerbox}{\usebox{\footertempbox}}%
\@firstfooterelementfalse%
\else%
\flushfooter\\%
\savebox{\footerbox}{#2}%
\savebox{\footertempbox}{#2}%
\@firstfooterelementfalse\fi}
% internal command to flush the footer
\newcommand*{\flushfooter}{%
\strut\usebox{\footerbox}%
\savebox{\footerbox}{}%
\savebox{\footertempbox}{}
\setlength{\footerboxwidth}{0pt}}
%-------------------------------------------------------------------------------
% resume style definition
%-------------------------------------------------------------------------------
% fonts
\renewcommand*{\namefont}{\fontsize{38}{40}\mdseri es\upshape}
\renewcommand*{\addressfont}{\normalsize\mdseries\ slshape}
% commands
\renewcommand*{\makecvtitle}{%
% recompute lengths (in case we are switching from letter to resume, or vice versa)
\recomputecvlengths%
% ensure footer with personal information
\makecvfooter%
% optional picture
\newbox{\makecvtitlepicturebox}%
\savebox{\makecvtitlepicturebox}{%
\ifthenelse{\isundefined{\@photo}}%
{}%
{%
\setlength\fboxrule{\@photoframewidth}%
\ifdim\@photoframewidth=0pt%
\setlength{\fboxsep}{0pt}\fi%
{\color{color1}\framebox{\includegraphics[width=\@photowidth]{\@photo}}}}}%
\usebox{\makecvtitlepicturebox}%
% name
\@initializelength{\makecvtitlepicturewidth}%
\settowidth{\makecvtitlepicturewidth}{\usebox{\mak ecvtitlepicturebox}}%
\parbox[b]{\textwidth-\makecvtitlepicturewidth}{%
\raggedleft\namefont{\color{color2!50}\@firstname} {\color{color2}\@familyname}}\\[-.35em]% alternate design: \MakeLowercase and no space
{\color{color2!50}\rule{\textwidth}{.25ex}}%
% optional title
\ifthenelse{\equal{\@title}{}}{}{\\[1.25em]\raggedleft\titlestyle{\@title}}\\[2.5em]%
% optional quote
\ifthenelse{\isundefined{\@quote}}%
{}%
{{\centering\begin{minipage}{\quotewidth}\centerin g\quotestyle{\@quote}\end{minipage}\\[2.5em]}}%
\par}% to avoid weird spacing bug at the first section if no blank line is left after \maketitle
\renewcommand*{\makecvfooter}{%
\setlength{\footerwidth}{0.8\textwidth}%
\fancypagestyle{plain}{%
\fancyfoot[c]{%
\parbox[b]{\footerwidth}{%
\centering%
\color{color2}\addressfont%
\ifthenelse{\isundefined{\@addressstreet}}{}{\addt ofooter[]{\addresssymbol\@addressstreet}%
\ifthenelse{\equal{\@addresscity}{}}{}{\addtofoote r[~--~]{\@addresscity}}\flushfooter\@firstfooterelementtr ue\\}% if \addresstreet is defined, \addresscity will always be defined but could be empty
\ifthenelse{\isundefined{\@mobile}}{}{\addtofooter {\mobilesymbol\@mobile}}%
\ifthenelse{\isundefined{\@phone}}{}{\addtofooter{ \phonesymbol\@phone}}%
\ifthenelse{\isundefined{\@fax}}{}{\addtofooter{\f axsymbol\@fax}}%
\ifthenelse{\isundefined{\@email}}{}{\addtofooter{ \emailsymbol\emaillink{\@email}}}%
\ifthenelse{\isundefined{\@homepage}}{}{\addtofoot er{\homepagesymbol\httplink{\@homepage}}}%
\ifthenelse{\isundefined{\@extrainfo}}{}{\addtofoo ter{\@extrainfo}}%
\ifthenelse{\lengthtest{\footerboxwidth=0pt}}{}{\f lushfooter}% the lengthtest is required to avoid flushing an empty footer, which could cause a blank line due to the \\ after the address, if no other personal info is used
}}}%
\pagestyle{plain}}
%-------------------------------------------------------------------------------
% letter style definition
%-------------------------------------------------------------------------------
\renewcommand*{\makelettertitle}{%
% recompute lengths (in case we are switching from letter to resume, or vice versa)
\recomputeletterlengths%
% ensure footer with personal information
\makeletterfooter%
% recipient block
\begin{minipage}[t]{.5\textwidth}
\raggedright%
\addressfont%
{\bfseries\upshape\@recipientname}\\%
\@recipientaddress%
\end{minipage}
% date
\hfill% US style
% \\[1em]% UK style
\hbox{\today}\\[2em]% US informal style: "April 6, 2006"; UK formal style: "05/04/2006"
% opening
\raggedright%
\@opening\\[1.5em]%
% ensure no extra spacing after \makelettertitle due to a possible blank line
% \ignorespacesafterend% not working
\hspace{0pt}\par\vspace{-\baselineskip}\vspace{-\parskip}}
\renewcommand*{\makeletterfooter}{%
\setlength{\footerwidth}{0.8\textwidth}%
\fancypagestyle{plain}{%
\fancyfoot[c]{%
\parbox[b]{\footerwidth}{%
\centering%
\addressfont\color{color2}%
\vspace{-\baselineskip}% to cancel out the extra vertical space taken by the name (below) and ensure perfect alignment of letter and cv footers
\strut{\bfseries\upshape\@firstname~\@familyname}\ \% the \strut is required to ensure the line is exactly \baselineskip tall
\ifthenelse{\isundefined{\@addressstreet}}{}{\addt ofooter[]{\addresssymbol\@addressstreet}%
\ifthenelse{\equal{\@addresscity}{}}{}{\addtofoote r[~--~]{\@addresscity}}\flushfooter\@firstfooterelementtr ue\\}% if \addresstreet is defined, \addresscity will always be defined but could be empty
\ifthenelse{\isundefined{\@mobile}}{}{\addtofooter {\mobilesymbol\@mobile}}%
\ifthenelse{\isundefined{\@phone}}{}{\addtofooter{ \phonesymbol\@phone}}%
\ifthenelse{\isundefined{\@fax}}{}{\addtofooter{\f axsymbol\@fax}}%
\ifthenelse{\isundefined{\@email}}{}{\addtofooter{ \emailsymbol\emaillink{\@email}}}%
\ifthenelse{\isundefined{\@homepage}}{}{\addtofoot er{\homepagesymbol\httplink{\@homepage}}}%
\ifthenelse{\isundefined{\@extrainfo}}{}{\addtofoo ter{\@extrainfo}}%
\ifthenelse{\lengthtest{\footerboxwidth=0pt}}{}{\f lushfooter}% the lengthtest is required to avoid flushing an empty footer, which could cause a blank line due to the \\ after the address, if no other personal info is used
}}}%
\pagestyle{plain}}
\renewcommand*{\makeletterclosing}{
\@closing\\[3em]%
{\bfseries\@firstname~\@familyname}%
\ifthenelse{\isundefined{\@enclosure}}{}{%
\\%
\vfil%
{\color{color2}\itshape\enclname: \@enclosure}}%
\vfil}
\endinput
%% end of file `moderncvstylecasual.sty'.
Powered by vBulletin® Version 4.2.5 Copyright ©2024 Adduco Digital e.K. und vBulletin Solutions, Inc. Alle Rechte vorbehalten.