Anzeige:
Ergebnis 1 bis 15 von 15

Thema: Photo in moderncv

  1. #1
    Registrierter Benutzer
    Registriert seit
    16.07.2009
    Ort
    Graz
    Beiträge
    12

    Question Photo in moderncv

    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:

    Code:
    %% 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}

  2. #2
    Registrierter Benutzer Avatar von localghost
    Registriert seit
    01.11.2006
    Ort
    Braunschweig
    Beiträge
    3.413

    Arrow Kopfsache

    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.
    Code:
    \renewcommand*{\maketitle}{%
      {%
    %    \raggedright{\firstnamestyle{\MakeLowercase{\@firstname}}\familynamestyle{\MakeLowercase{\@familyname}}}\\[-.35em]}%
        \raggedright{\firstnamestyle{\@firstname}~\familynamestyle{\@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}\centering\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¹
    TeX und LaTeX, Fragen und Antworten – TeXwelt

    ¹ Es tut mir Leid. Meine Antworten sind begrenzt. Sie müssen die richtigen Fragen stellen.
    ² System: openSUSE 13.1 (Linux 3.11.10), TeX Live 2013, TeXworks 0.5 (r1351)

  3. #3
    Registrierter Benutzer
    Registriert seit
    16.07.2009
    Ort
    Graz
    Beiträge
    12

    Kopf geändert - noch nicht ganz ok

    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:

    Code:
    % maketitle
    \renewcommand*{\maketitle}{%
      {%
        \raggedright{\firstnamestyle{\MakeLowercase{\@firstname}}\familynamestyle{\MakeLowercase{\@familyname}}}\\[-.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

  4. #4
    Registrierter Benutzer
    Registriert seit
    16.07.2009
    Ort
    Graz
    Beiträge
    12
    So. Ich habs geschafft. Der endgültige Header sieht jetzt so aus:

    Code:
    % maketitle
    
    \renewcommand*{\maketitle}{%
      {%
        \raggedright{\firstnamestyle{\MakeLowercase{\@firstname}}\familynamestyle{\MakeLowercase{\@familyname}}}}% 
    \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

  5. #5
    Registrierter Benutzer
    Registriert seit
    13.02.2010
    Beiträge
    7

    moderncv Bild rechts, Name links im CV

    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
    Geändert von wasser (13-02-2010 um 17:10 Uhr)

  6. #6
    Registrierter Benutzer
    Registriert seit
    03.04.2007
    Ort
    Wrestedt
    Beiträge
    987

    Lebenslauf

    Zitat Zitat von wasser Beitrag anzeigen
    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
    Der aus Büchern erworbene Reichtum fremder Erfahrung heißt Gelehrsamkeit. Eigene Erfahrung ist Weisheit. Das kleinste Kapital von dieser ist mehrt wert, als Millionen von jener.

    Gotthold Ephraim Lessing

  7. #7
    Registrierter Benutzer
    Registriert seit
    13.02.2010
    Beiträge
    7

    moderncv Bild schieben

    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!
    Hast vielleicht noch einen Tip für mich???

  8. #8
    Registrierter Benutzer
    Registriert seit
    03.04.2007
    Ort
    Wrestedt
    Beiträge
    987

    Lebenslauf

    Zitat Zitat von wasser Beitrag anzeigen
    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!
    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
    Der aus Büchern erworbene Reichtum fremder Erfahrung heißt Gelehrsamkeit. Eigene Erfahrung ist Weisheit. Das kleinste Kapital von dieser ist mehrt wert, als Millionen von jener.

    Gotthold Ephraim Lessing

  9. #9
    Registrierter Benutzer
    Registriert seit
    13.02.2010
    Beiträge
    7
    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!

    Code:
    \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}}{Description}  % arguments 3 to 6 are optional
    %\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}  % 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

  10. #10
    Registrierter Benutzer
    Registriert seit
    03.04.2007
    Ort
    Wrestedt
    Beiträge
    987

    Lebenslauf

    Zitat Zitat von wasser Beitrag anzeigen
    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!

    Code:
    \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}}{Description}  % arguments 3 to 6 are optional
    %\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}  % 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
    Der aus Büchern erworbene Reichtum fremder Erfahrung heißt Gelehrsamkeit. Eigene Erfahrung ist Weisheit. Das kleinste Kapital von dieser ist mehrt wert, als Millionen von jener.

    Gotthold Ephraim Lessing

  11. #11
    Registrierter Benutzer
    Registriert seit
    13.02.2010
    Beiträge
    7

    Lebenslauf

    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


    Code:
    \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}

  12. #12
    Registrierter Benutzer
    Registriert seit
    03.04.2007
    Ort
    Wrestedt
    Beiträge
    987

    Bild rechts

    Zitat Zitat von wasser Beitrag anzeigen
    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:
    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.
    Code:
    %% 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.65}
      \definecolor{subsectioncolor}{rgb}{0.20,0.40,0.65}
      \definecolor{footersymbolcolor}{rgb}{0.25,0.50,0.75}
    \if@colororange
      \definecolor{sectionrectanglecolor}{rgb}{1.00,0.65,0.20}
      \definecolor{sectiontitlecolor}{rgb}{0.95,0.55,0.15}
      \definecolor{subsectioncolor}{rgb}{0.95,0.55,0.15}
      \definecolor{footersymbolcolor}{rgb}{0.95,0.55,0.15}\fi
    \if@colorgreen
      \definecolor{sectionrectanglecolor}{rgb}{0.55,0.85,0.35}
      \definecolor{sectiontitlecolor}{rgb}{0.30,0.65,0.15}
      \definecolor{subsectioncolor}{rgb}{0.30,0.65,0.15}
      \definecolor{footersymbolcolor}{rgb}{0.30,0.65,0.15}\fi
    \if@colorred
      \definecolor{sectionrectanglecolor}{rgb}{1.00,0.30,0.30}
      \definecolor{sectiontitlecolor}{rgb}{0.95,0.20,0.20}
      \definecolor{subsectioncolor}{rgb}{0.95,0.20,0.20}
      \definecolor{footersymbolcolor}{rgb}{0.95,0.20,0.20}\fi
    \if@colorgrey
      \definecolor{sectionrectanglecolor}{rgb}{0.75,0.75,0.75}
      \definecolor{sectiontitlecolor}{rgb}{0.35,0.35,0.35}
      \definecolor{subsectioncolor}{rgb}{0.35,0.35,0.35}
      \definecolor{footersymbolcolor}{rgb}{0.35,0.35,0.35}\fi
    
    % fonts
    \if@roman
      \AtBeginDocument{\rmfamily}
    \else
      \AtBeginDocument{\sffamily}\fi
    \renewcommand*{\ttdefault}{pcr}
    \renewcommand*{\firstnamefont}{\fontsize{38}{40}\sffamily\mdseries\upshape}
    \renewcommand*{\familynamefont}{\firstnamefont}
    \renewcommand*{\addressfont}{\normalsize\sffamily\mdseries\slshape}
    \renewcommand*{\quotefont}{\large\slshape}
    \renewcommand*{\sectionfont}{\Large\sffamily\mdseries\upshape}
    \renewcommand*{\subsectionfont}{\large\sffamily\mdseries\upshape}
    
    % styles
    
    % maketitle
    %   setmaketitlenamemaxwidth to the full name length, capped by \maketitlenamemaxwidth
    \newlength{\maketitlenamemaxwidth}
    \setlength{\maketitlenamemaxwidth}{.525\textwidth}
    \newlength{\maketitlenamefullwidth}
    \settowidth{\maketitlenamefullwidth}{\firstnamestyle{\@firstname~}\familynamestyle{\@familyname}}
    \newlength{\maketitlenamewidth}
    \ifnum\maketitlenamemaxwidth<\maketitlenamefullwidth\setlength{\maketitlenamewidth}{\maketitlenamemaxwidth}\else\setlength{\maketitlenamewidth}{\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\@firstdetailselementtrue
    \newcommand*{\maketitledetailsnewline}{
      \if@firstdetailselement%
        \@firstdetailselementfalse%
      \else%
        \\[.2em]\fi}
    \renewcommand*{\maketitle}{%
      % name and title
      \begin{minipage}[b]{\maketitlenamewidth}%
        \firstnamestyle{\@firstname~}\familynamestyle{\@familyname}%
        \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}}{}{\\\@addresscity}}%
        \ifthenelse{\isundefined{\@mobile}}{}{\maketitledetailsnewline\mobilesymbol~\@mobile}%
        \ifthenelse{\isundefined{\@phone}}{}{\maketitledetailsnewline\phonesymbol~\@phone}%
        \ifthenelse{\isundefined{\@fax}}{}{\maketitledetailsnewline\faxsymbol~\@fax}%
        \ifthenelse{\isundefined{\@email}}{}{\maketitledetailsnewline\emailsymbol~\emaillink{\@email}}%
        \ifthenelse{\isundefined{\@extrainfo}}{}{\maketitledetailsnewline\@extrainfo}%
      \end{minipage}%
      % optional photo
      \ifthenelse{\isundefined{\@photo}}%
        {}%
        {\hspace*{\separatorcolumnwidth}\color{firstnamecolor}\framebox{\includegraphics[width=\maketitlepicturewidth]{\@photo}}}\\[3em]%
      % optional quote
      \ifthenelse{\isundefined{\@quote}}%
        {}%
        {\centering{\begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}}\\[2.5em]}%
      }
    
    \endinput
    
    
    %% end of file `moderncvthemecasual.sty'.
    Viel Erfolg

    Gruß

    Martin
    Der aus Büchern erworbene Reichtum fremder Erfahrung heißt Gelehrsamkeit. Eigene Erfahrung ist Weisheit. Das kleinste Kapital von dieser ist mehrt wert, als Millionen von jener.

    Gotthold Ephraim Lessing

  13. #13
    Registrierter Benutzer
    Registriert seit
    13.12.2007
    Beiträge
    30
    Hallo zusammen!

    Habe mich auch mal an einem Umbau versucht (die vorhergehenden Beispiele entsprachen nicht den Erwartungen).
    Folgende sty habe ich jetzt:
    Code:
    %% 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.65}
      \definecolor{subsectioncolor}{rgb}{0.20,0.40,0.65}
      \definecolor{footersymbolcolor}{rgb}{0.25,0.50,0.75}
    \if@colororange
      \definecolor{sectionrectanglecolor}{rgb}{1.00,0.65,0.20}
      \definecolor{sectiontitlecolor}{rgb}{0.95,0.55,0.15}
      \definecolor{subsectioncolor}{rgb}{0.95,0.55,0.15}
      \definecolor{footersymbolcolor}{rgb}{0.95,0.55,0.15}\fi
    \if@colorgreen
      \definecolor{sectionrectanglecolor}{rgb}{0.55,0.85,0.35}
      \definecolor{sectiontitlecolor}{rgb}{0.30,0.65,0.15}
      \definecolor{subsectioncolor}{rgb}{0.30,0.65,0.15}
      \definecolor{footersymbolcolor}{rgb}{0.30,0.65,0.15}\fi
    \if@colorred
      \definecolor{sectionrectanglecolor}{rgb}{1.00,0.30,0.30}
      \definecolor{sectiontitlecolor}{rgb}{0.95,0.20,0.20}
      \definecolor{subsectioncolor}{rgb}{0.95,0.20,0.20}
      \definecolor{footersymbolcolor}{rgb}{0.95,0.20,0.20}\fi
    \if@colorgrey
      \definecolor{sectionrectanglecolor}{rgb}{0.75,0.75,0.75}
      \definecolor{sectiontitlecolor}{rgb}{0.35,0.35,0.35}
      \definecolor{subsectioncolor}{rgb}{0.35,0.35,0.35}
      \definecolor{footersymbolcolor}{rgb}{0.35,0.35,0.35}\fi
    
    % fonts
    \if@roman
      \AtBeginDocument{\rmfamily}
    \else
      \AtBeginDocument{\sffamily}\fi
    \renewcommand*{\ttdefault}{pcr}
    \renewcommand*{\firstnamefont}{\fontsize{38}{40}\sffamily\mdseries\upshape}
    \renewcommand*{\familynamefont}{\firstnamefont}
    \renewcommand*{\addressfont}{\normalsize\sffamily\mdseries\slshape}
    \renewcommand*{\quotefont}{\large\slshape}
    \renewcommand*{\sectionfont}{\Large\sffamily\mdseries\upshape}
    \renewcommand*{\subsectionfont}{\large\sffamily\mdseries\upshape}
    
    % styles
    
    % maketitle
    %   setmaketitlenamemaxwidth to the full name length, capped by \maketitlenamemaxwidth
    \newlength{\maketitlenamemaxwidth}
    \setlength{\maketitlenamemaxwidth}{.525\textwidth}
    \newlength{\maketitlenamefullwidth}
    \settowidth{\maketitlenamefullwidth}{\firstnamestyle{\@firstname~}\familynamestyle{\@familyname}}
    \newlength{\maketitlenamewidth}
    \ifnum\maketitlenamemaxwidth<\maketitlenamefullwidth\setlength{\maketitlenamewidth}{\maketitlenamemaxwidth}\else\setlength{\maketitlenamewidth}{\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\@firstdetailselementtrue
    \newcommand*{\maketitledetailsnewline}{
      \if@firstdetailselement%
        \@firstdetailselementfalse%
      \else%
        \\[.2em]\fi}
        
        
    
    %maketitle
    \renewcommand*{\maketitle}{%
      % name and title
      \begin{minipage}[b]{\maketitlenamewidth}%
        \firstnamestyle{\@firstname~}\familynamestyle{\@familyname}%
        \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{firstnamecolor}\framebox{\includegraphics[width=\maketitlepicturewidth]{\@photo}}}\\[-0.75em]%
      {\color{firstnamecolor}\rule{\textwidth}{.25ex}}%
      % optional quote
      \ifthenelse{\isundefined{\@quote}}%
        {}%
        {\centering{\begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}}\\[2.5em]}%
      }
    
    
    % cv footer
    \newif\if@firstfooterelement\@firstfooterelementtrue
    \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}}{}{\footersymbol\mobilesymbol~\@mobile\@firstfooterelementfalse}%
          \ifthenelse{\isundefined{\@phone}}{}{\footersymbol\phonesymbol~\@phone\@firstfooterelementfalse}%
          \ifthenelse{\isundefined{\@fax}}{}{\footersymbol\faxsymbol~\@fax\@firstfooterelementfalse}%
          \ifthenelse{\isundefined{\@email}}{}{\footersymbol\emailsymbol~\emaillink{\@email}\@firstfooterelementfalse}%
          \ifthenelse{\isundefined{\@extrainfo}}{}{\footersymbol\@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...

  14. #14
    Registrierter Benutzer
    Registriert seit
    13.12.2007
    Beiträge
    30
    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!

    Code:
    %% 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.65}
      \definecolor{subsectioncolor}{rgb}{0.20,0.40,0.65}
      \definecolor{footersymbolcolor}{rgb}{0.25,0.50,0.75}
    \if@colororange
      \definecolor{sectionrectanglecolor}{rgb}{1.00,0.65,0.20}
      \definecolor{sectiontitlecolor}{rgb}{0.95,0.55,0.15}
      \definecolor{subsectioncolor}{rgb}{0.95,0.55,0.15}
      \definecolor{footersymbolcolor}{rgb}{0.95,0.55,0.15}\fi
    \if@colorgreen
      \definecolor{sectionrectanglecolor}{rgb}{0.55,0.85,0.35}
      \definecolor{sectiontitlecolor}{rgb}{0.30,0.65,0.15}
      \definecolor{subsectioncolor}{rgb}{0.30,0.65,0.15}
      \definecolor{footersymbolcolor}{rgb}{0.30,0.65,0.15}\fi
    \if@colorred
      \definecolor{sectionrectanglecolor}{rgb}{1.00,0.30,0.30}
      \definecolor{sectiontitlecolor}{rgb}{0.95,0.20,0.20}
      \definecolor{subsectioncolor}{rgb}{0.95,0.20,0.20}
      \definecolor{footersymbolcolor}{rgb}{0.95,0.20,0.20}\fi
    \if@colorgrey
      \definecolor{sectionrectanglecolor}{rgb}{0.75,0.75,0.75}
      \definecolor{sectiontitlecolor}{rgb}{0.35,0.35,0.35}
      \definecolor{subsectioncolor}{rgb}{0.35,0.35,0.35}
      \definecolor{footersymbolcolor}{rgb}{0.35,0.35,0.35}\fi
    
    % fonts
    \if@roman
      \AtBeginDocument{\rmfamily}
    \else
      \AtBeginDocument{\sffamily}\fi
    \renewcommand*{\ttdefault}{pcr}
    \renewcommand*{\firstnamefont}{\fontsize{38}{40}\sffamily\mdseries\upshape}
    \renewcommand*{\familynamefont}{\firstnamefont}
    \renewcommand*{\addressfont}{\normalsize\sffamily\mdseries\slshape}
    \renewcommand*{\quotefont}{\large\slshape}
    \renewcommand*{\sectionfont}{\Large\sffamily\mdseries\upshape}
    \renewcommand*{\subsectionfont}{\large\sffamily\mdseries\upshape}
    
    % styles
    
    % maketitle
    %   setmaketitlenamemaxwidth to the full name length, capped by \maketitlenamemaxwidth
    \newlength{\maketitlenamemaxwidth}
    \setlength{\maketitlenamemaxwidth}{.525\textwidth}
    \newlength{\maketitlenamefullwidth}
    \settowidth{\maketitlenamefullwidth}{\firstnamestyle{\@firstname~}\familynamestyle{\@familyname}}
    \newlength{\maketitlenamewidth}
    \ifnum\maketitlenamemaxwidth<\maketitlenamefullwidth\setlength{\maketitlenamewidth}{\maketitlenamemaxwidth}\else\setlength{\maketitlenamewidth}{\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\@firstdetailselementtrue
    \newcommand*{\maketitledetailsnewline}{
      \if@firstdetailselement%
        \@firstdetailselementfalse%
      \else%
        \\[.2em]\fi}
        
        
    
    %maketitle
    \renewcommand*{\maketitle}{%
      % name and title
      \begin{minipage}[b]{\maketitlenamewidth}%
        \firstnamestyle{\@firstname~}\familynamestyle{\@familyname}%
        \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{firstnamecolor}\framebox{\includegraphics[width=\maketitlepicturewidth]{\@photo}}}}\\[-0.6em]%
      {\color{firstnamecolor}\rule{\textwidth}{.25ex}\\[2em]}%
      % optional quote
      \ifthenelse{\isundefined{\@quote}}%
        {}%
        {\centering{\begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}}\\[2.5em]}%
      }
    
    
    % cv footer
    \newif\if@firstfooterelement\@firstfooterelementtrue
    \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}}{}{\footersymbol\mobilesymbol~\@mobile\@firstfooterelementfalse}%
          \ifthenelse{\isundefined{\@phone}}{}{\footersymbol\phonesymbol~\@phone\@firstfooterelementfalse}%
          \ifthenelse{\isundefined{\@fax}}{}{\footersymbol\faxsymbol~\@fax\@firstfooterelementfalse}%
          \ifthenelse{\isundefined{\@email}}{}{\footersymbol\emailsymbol~\emaillink{\@email}\@firstfooterelementfalse}%
          \ifthenelse{\isundefined{\@extrainfo}}{}{\footersymbol\@extrainfo\@firstfooterelementfalse}}}%
      }%
      \pagestyle{plain}}
    \AtBeginDocument{\makefooter}
    
    
    \endinput
    
    
    %% end of file `moderncvthemecasual.sty'.

  15. #15
    Registrierter Benutzer
    Registriert seit
    07.08.2012
    Beiträge
    1
    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?

    Code:
    %% 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\@firstfooterelementtrue%
    %   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{\footertempbox}}%
      \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}\mdseries\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{\makecvtitlepicturebox}}%
      \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}\centering\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}}{}{\addtofooter[]{\addresssymbol\@addressstreet}%
              \ifthenelse{\equal{\@addresscity}{}}{}{\addtofooter[~--~]{\@addresscity}}\flushfooter\@firstfooterelementtrue\\}% 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{\faxsymbol\@fax}}%
            \ifthenelse{\isundefined{\@email}}{}{\addtofooter{\emailsymbol\emaillink{\@email}}}%
            \ifthenelse{\isundefined{\@homepage}}{}{\addtofooter{\homepagesymbol\httplink{\@homepage}}}%
            \ifthenelse{\isundefined{\@extrainfo}}{}{\addtofooter{\@extrainfo}}%
            \ifthenelse{\lengthtest{\footerboxwidth=0pt}}{}{\flushfooter}% 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}}{}{\addtofooter[]{\addresssymbol\@addressstreet}%
              \ifthenelse{\equal{\@addresscity}{}}{}{\addtofooter[~--~]{\@addresscity}}\flushfooter\@firstfooterelementtrue\\}% 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{\faxsymbol\@fax}}%
            \ifthenelse{\isundefined{\@email}}{}{\addtofooter{\emailsymbol\emaillink{\@email}}}%
            \ifthenelse{\isundefined{\@homepage}}{}{\addtofooter{\homepagesymbol\httplink{\@homepage}}}%
            \ifthenelse{\isundefined{\@extrainfo}}{}{\addtofooter{\@extrainfo}}%
            \ifthenelse{\lengthtest{\footerboxwidth=0pt}}{}{\flushfooter}% 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'.

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •