将scrlttr2的字体调整为moderncv的serif字体

将scrlttr2的字体调整为moderncv的serif字体

我是 LaTeX 的新手,正在尝试使用它来制作我的简历。

我快完成了,最后一件事是......

我用 制作了我的简历moderncv,用 制作了信件scrlttr 2,用 制作了封面scrartcl。这三个字体不同。

scrlttr2我怎样才能调整&的字体scrartclmoderncv

代码

\documentclass[a4paper,11pt]{scrartcl}
%
% -------------------------------------------------
% character encoding
% -------------------------------------------------
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\RequirePackage{lmodern}
\usepackage{marvosym}
\usepackage{graphicx}
\usepackage{color}
\usepackage{framed}
\usepackage{blindtext} 
%
\pagestyle{empty}
%
% -------------------------------------------------
% adjust the page margins
% -------------------------------------------------
\usepackage[scale=1]{geometry}
\setlength{\parindent}{0pt}
\addtolength{\parskip}{0pt}
\setlength{\footskip}{0pt}
\setlength{\headheight}{15pt}
\setlength{\topskip}{0pt}
%
% -------------------------------------------------
% Positionierung der Textelemente
% -------------------------------------------------
\usepackage[absolute]{textpos}
\setlength{\TPHorizModule}{1cm}
\setlength{\TPVertModule}{\TPHorizModule}
%
% -------------------------------------------------
% personal data
% -------------------------------------------------
\def\firstname{Max}
\def\familyname{Mustermann}
\def\FileAuthor{\firstname \familyname}
\def\FileSubject{Deckblatt}
%
% -------------------------------------------------
% Font
% -------------------------------------------------
\renewcommand{\ttdefault}{pcr}
%
% -------------------------------------------------
% Aus der moderncvstylecasual.sty:
% -------------------------------------------------
\definecolor{blau}{rgb}{0.20,0.40,0.65}
\definecolor{hellblau}{rgb}{0.25,0.50,0.75}
\definecolor{orange}{rgb}{0.95,0.55,0.15}
\definecolor{gruen}{rgb}{0.30,0.65,0.15}
\definecolor{rot}{rgb}{0.95,0.20,0.20}
\definecolor{dunkelgrau}{rgb}{0.35,0.35,0.35}
\definecolor{hellgrau}{rgb}{0.45,0.45,0.45}
\definecolor{schwarz}{rgb}{0,0,0}
\newcommand*{\firstnamefont}{\fontsize{25}{27}\sffamily\mdseries\upshape}
\newcommand*{\familynamefont}{\firstnamefont}
\newcommand*{\titel}{\fontsize{25}{27}\mdseries\upshape}
\newcommand*{\inhalt}{\fontsize{15}{17}\mdseries\upshape}
%
\begin{document}
\sffamily
%
% -------------------------------------------------
% Titel
% -------------------------------------------------
\begin{textblock}{10}(1,2)
\color{dunkelgrau}{
 \bfseries \begin{Large}\titel{BEWERBUNGSUNTERLAGEN}\end{Large}}
\end{textblock}
%
% -------------------------------------------------
% Inhaltsverzeichnis
% -------------------------------------------------
%\renewcommand{\labelitemi}{}

\begin{textblock}{10}(12.9,16.999)
\color{blau}{\inhalt{
    \begin{itemize}\setlength{\itemsep}{-1pt}
        \item Anschreiben
        \vspace{0.1cm}
        \item Lebenslauf
        \vspace{0.1cm}      
        \item Notenbogen bzw. Vordiplom
        \vspace{0.1cm}      
        \item Empfehlungsschreiben
        \vspace{0.1cm}      
        \item Abiturzeugnis
    \end{itemize}
}}
\end{textblock}
%
% -------------------------------------------------
% Vertikaler Strich oben
% -------------------------------------------------
\begin{textblock}{1}(13.5,0)
    \color{hellblau}{\vrule width 2pt height 17cm}
\end{textblock}


% -------------------------------------------------
% Vertikaler Striche Mitte
% -------------------------------------------------

%\begin{textblock}{1}(13.5,17.3)
%\color{hellblau}{\vrule width 2pt height 0.5cm}
%\end{textblock}
%
%\begin{textblock}{1}(13.5,18.16)
%\color{hellblau}{\vrule width 2pt height 0.5cm}
%\end{textblock}


% -------------------------------------------------
% Vertikaler Strich Unten
% -------------------------------------------------

\begin{textblock}{1}(13.5,12)
\color{hellblau}{\vrule width 2pt height 0.5cm}
\end{textblock}


%
% -------------------------------------------------
% Passfoto
% -------------------------------------------------
\begin{textblock}{3}(10.9,21.9)
    %\fbox{\includegraphics[width=2cm]{foto}}
\end{textblock}
%
% -------------------------------------------------
% Anschrift
% -------------------------------------------------
\begin{textblock}{9.7}(1,8)
    \begin{flushleft}
        \vspace{-3.5cm}
        {\bfseries \begin{large}\firstnamefont{\color{hellgrau}{\firstname}}~\familynamefont{\color{dunkelgrau}{\familyname}}\end{large}}\\[.35ex]
        \huge\itshape%
        straße\\
        plz ort\\[.35ex]
        \Telefon~+tel\\
        \Letter~{mail}
    \end{flushleft}
\end{textblock}
%
% -------------------------------------------------
% Hintergrundbild
% -------------------------------------------------
% \begin{textblock}{13.5}(0,0)
%   \includegraphics[width=13.5cm, height=\textheight]{firma}
% \end{textblock}
%

\end{document}

\documentclass{scrlttr2} 
\usepackage[ngerman]{babel}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{cmbright}
\usepackage{lmodern}
\renewcommand*\familydefault{\sfdefault}

\usepackage{color}


% Aus der moderncvstylecasual.sty:
%BLAU:
\definecolor{blau}{rgb}{0.20,0.40,0.65}
%ORANGE:
\definecolor{orange}{rgb}{0.95,0.55,0.15}
%GRÜN:
\definecolor{gruen}{rgb}{0.30,0.65,0.15}
%ROT:
\definecolor{rot}{rgb}{0.95,0.20,0.20}
%GRAU:
\definecolor{grau}{rgb}{0.35,0.35,0.35}



\KOMAoptions{
fromalign=right, 
fromrule=aftername, 
addrfield=true, 
backaddress=on, 
pagenumber=botright, 
foldmarks=false, 
fromphone=true, 
fromemail=true 
}


\LoadLetterOption{KOMAold}


\setkomavar{fromname}{Vorname Nachname} \setkomavar{fromaddress}{Hauptstr. 12\\ 12345 Ort} \setkomavar{fromemail}{[email protected]} 
\setkomavar{fromphone}{555 9873} 
\setkomavar{signature}{Vorname Nachname} 


\begin{document} 

\begin{letter}{Mega-Firma\\
               Schlossallee 12\\
               23456 Hauptstadt} 


%Der Betreff soll blau + fett gedruckt werden:
\opening{\bfseries{\textcolor{blau}{Ihre Stellenanzeige in der FAZ}}} 


Lieber Personalmensch, \\

blabla

\closing{Mit freundlichen Grüßen} 

\vspace*{2cm}
\encl{ 
Lebenslauf\\
Zeugnisse}

\end{letter} 
\end{document}

}

简历

\documentclass[12pt,a4paper]{moderncv}

\moderncvtheme[blue]{casual} %[blue, green, orange, red, grey]{casual, classic}



%Wenn cventry genutzt wird entfernt es die Punkte
%
%\renewcommand*{\cvline}[7][.25em]{%
%  \cvitem[#1]{#2}{%
%    {\bfseries#3}%
%%   \ifthenelse{\equal{#4}{}}{}{, {\slshape#4}}% I changed this line (with comma) ...
%    \ifthenelse{\equal{#4}{}}{}{ {\slshape#4}}% ... into this one (without comma).
%    \ifthenelse{\equal{#5}{}}{}{, #5}%
%    \ifthenelse{\equal{#6}{}}{}{, #6}%
%    .\strut%
%    \ifx&#7&%
%      \else{\newline{}\begin{minipage}[t]{\linewidth}\small#7\end{minipage}}\fi}}


\usepackage{lmodern}
\usepackage[ngerman]{babel}
\usepackage{amsmath}
\usepackage[utf8]{inputenc}
%%änderung der Spaltenbreite des Datum
\usepackage[scale=0.85]{geometry}
\setlength{\hintscolumnwidth}{3.1cm}    
\firstname{Bob}
\familyname{Marley}
\title{Lebenslauf}
\address{bla}{bla}
\mobile{0176/ 10044015}
%\phone{09876/ 5 43 21}

%\photo[4cm]{}
\begin{document}
\maketitle



%\cvline{}{}{}{}{}{}
\section{Studium}
\cvline{4/2013--aktuell}{\textbf{Allgemeiner Maschinenbau M.Sc.} \newline RWTH-Aachen University, \emph{Note: 1,9}.}






Berlin, \today
\end{document}

答案1

\sffamily从 中删除scrartcl(如果您愿意,也可以从 的定义中删除\firstnamefont),并\usepackage{cmbright}\renewcommand*\familydefault{\sfdefault}中删除scrlttr2。然后,所有三个文档都将使用 Latin Modern Serif 字体,就像您的字体一样moderncv(通过 包加载lmodern)。

当你下次遇到问题时,花时间构建一个最小工作示例(MWE)(请花点时间研究一下我链接的那个问题)——如果你只是注释掉文档中的行并查看有什么变化,你就会自己找到解决方案。基本上,这就是我找到解决方案的方法。你发布了一份完整的、可编译的文档(或者说三份),这很好,但它们都远远不是最简化的。

从 MWE 的角度来看您的问题,答案是:要么什么都不做(moderncv使用拉丁现代衬线,KOMA-Script 类使用计算机现代衬线,在外行人看来它们看起来一样),要么加载lmodern,并fontenc使用和:T1scrartclscrlttr2

moderncv最小

\documentclass{moderncv}
\moderncvstyle{casual}
\firstname{John}
\familyname{Doe}
\begin{document}
\makecvtitle
\section{Education}
\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}
\end{document}

scrartcl最小

\documentclass{scrartcl}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\begin{document}
Foo
\end{document}

scrlttr2最小

\documentclass{scrlttr2}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\begin{document}
Wanderlust
\end{document}

相关内容