Seite 1 von 1

Besseres Symbol für E-Mail in moderncv

Verfasst: Di 2. Jul 2024, 22:47
von nixversteh
Moin liebe User,
ich habe heute einen Lebenslauf mit moderncv erstellen wollen. Leider gab es bestimmt vorher Updates, sodass das Dokument NICHT kompliert wurde. Nach einer geraumen Zeit fand ich im Netz eine Version die funktionierte.
Ich finde das Symbol eines Briefumschlages nicht einmal suboptimal für die Darstellunge einer E-Mail-Adresse. Wie kann ich das ändern?
Document Class: moderncv 2022-02-21 v2.3.1 

Re: Besseres Symbol für E-Mail in moderncv

Verfasst: Mi 3. Jul 2024, 09:19
von Stefan Kottwitz
Moin,

selbst Microsoft Outlook zeigt noch einen Briefumschlag für den Posteingang. Was schwebt Dir denn vor? Eine Tastatur als Symbol weil man damit schreibt? Ein Stift wäre ja auch zu oldschool. Du kannst ja die symbols-Liste mal durchsuchen nach was geeignetem. Oder fontawesome5.

Oder verwende ein @-Symbol, das sehe ich als typisch für email-Adressen. Taucht dann natürlich nochmal in der Adresse auf... wobei die Adresse vllt. typewriter/monospaced ist, und die Symbole vllt. serifenlos und fett. fontawesome5 hat so ein Symbol auch mit \faAt oder \faIcon{at}.

Stefan

Re: Besseres Symbol für E-Mail in moderncv

Verfasst: Mi 3. Jul 2024, 10:15
von nixversteh
Vielen Dank Stefan,
ich füge mal ein Bildchen als Anhang.

Re: Besseres Symbol für E-Mail in moderncv

Verfasst: Mi 3. Jul 2024, 10:28
von nixversteh
Moin liebe User,
habe es hinbekommen, allerdings dirty ... aus zwei unterschiedlichen Dateien zusammengefügt.
\documentclass[11pt,letterpaper,roman]{moderncv} % Font sizes: 10, 11, or 12; paper sizes: a4paper, letterpaper, a5paper, legalpaper, executivepaper or landscape; font families: sans or roman

\moderncvstyle{classic} % CV theme - options include: 'casual' (default), 'classic', 'oldstyle' and 'banking'
\moderncvcolor{burgundy} % CV color - options include: 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'

\usepackage{lastpage}
\rfoot{\addressfont\itshape\textcolor{gray}{Page \thepage}}
\usepackage{marvosym}
%---------------------------------------------------------------------------
% FONTS Linux Libertinus
%---------------------------------------------------------------------------
\usepackage{addliga}
\usepackage{fontspec}
\usepackage{metalogo} % Für die Logos von \LaTeX \XeTeX usw.
\usepackage{amsmath} %% Displayed equations
\usepackage{amssymb} %% and additional symbols
\usepackage{amsfonts}
\usepackage{trace}
\usepackage{amsthm}
\usepackage{unicode-math}
\setmainfont[Numbers={OldStyle,Proportional},Ligatures={TeX, Common}]{Libertinus Serif}
\setmonofont[Scale=0.85]{Libertinus Mono}
\setsansfont{Libertinus Sans}
\setmathfont{Libertinus Math}
\renewcommand*{\emailsymbol}{\marvosymbol{107}~}
\usepackage[ngerman]{babel}
\newcommand{\amper}{{\fontspec[Scale=.95]{Adobe Caslon Pro}\selectfont\itshape\&}}
%---------------------------------------------------------------------------
\setlength{\hintscolumnwidth}{35mm} %Laenge link
\setlength{\separatorcolumnwidth}{6mm} %Laenge Abstand horizontal
\setlength{\maincolumnwidth}{1cm} %Laenge rechts
\setlength{\voffset}{-0.2in}
\setlength{\textheight}{10.5in} % increase text height to fit resume on 1 page

\usepackage[scale=0.94, footskip=0.4cm]{geometry} % Reduce document margins
\setlength{\footskip}{12.48pt}
%%%\setlength{\hintscolumnwidth}{0.5cm} % Uncomment to change the width of the dates column
%\setlength{\makecvtitlenamewidth}{10cm} % For the 'classic' style, uncomment to adjust the width of the space allocated to your name
%----------------------------------------------------------------------------------------
\makeatletter
%\setlength\columnsep{20pt}

\setcounter{tocdepth}{2}
\setlength\columnsep{20pt}
\newcommand\@pnumwidth{1.5em}

\newcommand\contentsname{Contents}
\newcommand\tableofcontents{%
	% One Column Version (complete)
	%\addtocontents{toc}{\protect\setcounter{tocdepth}{0}}
	%\section*{\contentsname}
	%\vspace{-20pt}
	%\addtocontents{toc}{\protect\setcounter{tocdepth}{1}}
	%\cvitem{}{\@starttoc{toc}}%

	% Two Column Version (complete)
	\addtocontents{toc}{\protect\setcounter{tocdepth}{0}}
	\section*{\contentsname}
	\vspace{-25pt}
	\cvitem{}{
		\begin{multicols}{2}[]
		\addtocontents{toc}{\protect\setcounter{tocdepth}{1}}
		\@starttoc{toc}%
		\end{multicols}
	}
	\vspace{-15pt}
}

\RenewDocumentCommand{\section}{sm}{%
  \par\addvspace{2.5ex}%
  \phantomsection{}% reset the anchor for hyperrefs
  \addtocontents{toc}{\protect\vskip0pt}
  \addcontentsline{toc}{section}{#2}%
  \parbox[t]{\hintscolumnwidth}{\strut\raggedleft\raisebox{\baseletterheight}{\color{color1}\rule{\hintscolumnwidth}{0.95ex}}}%
  \hspace{\separatorcolumnwidth}%
  \parbox[t]{\maincolumnwidth}{\strut\sectionstyle{#2}}%
  \par\nobreak\addvspace{1ex}\@afterheading}% to avoid a pagebreak after the heading

\newcommand*\l@section[2]{%
  \ifnum \c@tocdepth >\z@
    \addpenalty\@secpenalty
    %\addvspace{1.0em \@plus\p@}%
    \setlength\@tempdima{1.5em}%
    \begingroup
      \parindent \z@ \rightskip \@pnumwidth
      \parfillskip -\@pnumwidth
      \leavevmode
      \advance\leftskip\@tempdima
      \hskip -\leftskip
	#1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss\itshape #2}\par
      %#1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss\itshape #2}\par
    \endgroup
  \fi}

%\newcommand*\l@section[2]{\\}
\newcommand*\l@subsection[2]{}
\makeatother
%---------------------------------------------------------------------------
\AtBeginDocument{\recomputelengths}  % required when changes are made to page layout lengths
\makeatletter
%---------------------------------------------------------------------------
%	NAME AND CONTACT INFORMATION SECTION
%---------------------------------------------------------------------------
\AtBeginDocument{\recomputelengths}  % required when changes are made to page layout lengths
\makeatletter
% User specified LaTeX commands.
\moderncvtheme[burgundy]{classic}
% required
\firstname{\fontspec{English111 Vivace BT}{\itshape Susanne}}
% required
\familyname{Musterfrau}
% optional, remove the line if not wanted
\title{Diplom Sozialpädagogin}
% optional
%1\address{street and number}{postcode city}
% '\\' adds a line break
\address{Klein Pretzier 322a}{29559 Musterstadt}
% optional
%%\phone{05825~98\,54\,50}
% optional
\mobile{0178~123456}
% optional
\email{musterfrau-susa@gmx.de}
% optional
% EDIT THIS \extrainfo{Perhaps a URL}

% optional
%\photo[height]{name}
% 'height' is the height the picture is resized to
% 'name' is the name of the picture file
% EDIT THIS
%%\photo[60pt]{Susa1}

% EDIT THIS \quote{"You only live twice." (an optional quote)}
%\AtBeginDocument{\maketitle}
\makeatother
% Fix overful hboxes automatically:
\tolerance=2000
\emergencystretch=10pt

\renewcommand*{\namefont}{\fontsize{28}{32}\rmfamily\mdseries\upshape}
\renewcommand*{\emailsymbol}{\marvosymbol{107}~}
\begin{document}
\setlength{\footskip}{13.59999pt}
\maketitle
\renewcommand*{\cventry}[6]{%
  \cvline{#1}{%
    {\bfseries#2}%
    \ifx#3\else{, {\slshape#3}}\fi%
    \ifx#4\else{, #4}\fi%
    \ifx#5\else{, #5}\fi%
%    .%<--- DIESE ZEILE AUSKOMMENTIERT
    \ifx#6\else{\newline{}\begin{minipage}[t]{\linewidth}\small#6\end{minipage}}\fi
    }}%
dann folgen die persönlichen Daten, Ausbildungen etc.

In den Ordner habe ich folgende Dateien kopiert:

Re: Besseres Symbol für E-Mail in moderncv

Verfasst: Mi 3. Jul 2024, 10:29
von Stefan Kottwitz
Schön, dass es funktioniert!

Stefan

Re: Besseres Symbol für E-Mail in moderncv

Verfasst: Mi 3. Jul 2024, 10:31
von nixversteh
Ja, bin ziemlich zwanghaft und habe meine eigenen Vorstellungen, wie etwas laufen und aussehen sollte. Habe mehrere Stunden gebraucht ...
Danke für Euer Interesse