如何删除两个部分左侧的行,突出显示我的名字大胆的(默认 LaTeX)字体,并在最后添加附加文档列表斜体在单词“Anlagen:”(不是斜体)的右侧,而不是单词“Inhalt”?“Anlagen”应该与“Lebenslauf”和“Arbeitszeugnis”的字体大小相同。理想情况下,所有内容都应沿垂直线居中。
\documentclass[12pt,a4paper]{moderncv}
\usepackage[german]{babel}
\usepackage{moderncv-additions}
% moderncv themes
\moderncvtheme{classic} % optional arguments 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}
\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
\usepackage{adjustbox}
%\usepackage{lmodern}
\renewcommand{\sfdefault}{default}
\renewcommand{\labelitemi}{$\bullet$}
\usepackage{mathptmx}
\usepackage[12pt]{moresize}
\AtBeginDocument{\recomputelengths} % required when changes are made to page layout lengths
% personal data
\firstname{Joe}
\familyname{Mustermann}
%\title{Resumé title (optional)} % optional, remove the line if not wanted
\address{__}{__} % optional, remove the line if not wanted
\mobile{__} % 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{__} % optional, remove the line if not wanted
%\extrainfo{additional information (optional)} % optional, remove the line if not wanted
\photo[256pt]{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
%\nopagenumbers{} % uncomment to suppress automatic page numbering for CVs longer than one page
%----------------------------------------------------------------------------------
% content
%----------------------------------------------------------------------------------
\begin{document}
% color redefinitions must be after \begin{document}!
%\definecolor{firstnamecolor}{RGB}{125,85,85}
\definecolor{firstnamecolor}{RGB}{0,0,0}
\definecolor{familynamecolor}{RGB}{0,0,0}
\definecolor{quotecolor}{RGB}{125,85,85}
\definecolor{addresscolor}{RGB}{0,0,0}
\definecolor{sectionrectanglecolor}{RGB}{0,0,0}
\definecolor{sectiontitlecolor}{RGB}{0,0,0}
\definecolor{subsectioncolor}{RGB}{125,85,85}
\definecolor{footersymbolcolor}{RGB}{125,85,85}
\makeatletter
\pagestyle{empty}
%\chapter*{Bewerbungs}{unterlagen}
%\chapter*{Bewerbung als\\}{ XXXXXXX }%\underline{\hspace{3cm}}}
\section{\huge Bewerbung als\\ XXXXXXX \underline{\hspace{3cm}}}
%\vspace*{50mm}
\vspace*{10mm}
\hfill%
\begin{adjustbox}{minipage=10cm, right}
% \vspace*{3mm}
\hspace*{5mm}{{\color{firstnamecolor}\includegraphics[width=256pt]{picture}}}\\[3mm] \centering\familynamestyle{\@firstname}~~\firstnamestyle{\@familyname} \\
% \hspace*{5mm}{{\color{firstnamecolor}\includegraphics[width=256pt]{picture}}}\\[3mm]
\@addressstreet, \@addresscity ~~~ \\
\mobilesymbol~\@mobile ~~~ \\
\emailsymbol~\@email
\end{adjustbox}
%\begin{minipage}{\textwidth}
% \vspace*{3mm}
%\hspace*{5mm}{{\color{firstnamecolor}\includegraphics[width=256pt]{picture}}}\\[3mm] \familynamestyle{\@firstname}~~\firstnamestyle{\@familyname} \\
%% \hspace*{5mm}{{\color{firstnamecolor}\includegraphics[width=256pt]{picture}}}\\[3mm]
% \@addressstreet, \@addresscity ~~~ \mobilesymbol~\@mobile ~~~ \emailsymbol~\@email
%\end{minipage}
\begin{minipage}{70pt}
\end{minipage}
\vfill
\begin{minipage}{1.0\textwidth}
\section{\huge Inhalt}
Lebenslauf\\
Arbeitszeugnis\\
%\hrule
%\tableofcontents
%\textbf{\huge Inhalt:}
%\begin{itemize} \itemsep -2pt
%\item \textit{Lebenslauf}
%\item \textit{Arbeitszeugnis}
%\end{itemize}
%- Lebenslauf
\end{minipage}
%
%\newpage
%\pagestyle{fancy}
%\chapter{Curriculum}{~Vit\ae}
%\makequote
%
%\section{Persönliche Daten}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\cvline{Name}{\@firstname~\@familyname}
%\cvline{Anschrift}{\@addressstreet, \@addresscity}
%\cvline{Telefon}{\@mobile}
%\cvline{E-Mail}{\@email}
%\cvline{Geburtsdaten}{1. Januar 1970 in Musterstadt}
%\cvline{Staatsbürgerschaft}{Österreichisch}
%\cvline{Familienstand}{ledig}
%\cvline{Präsenzdienst}{abgeleistet}
%\cvline{Führerschein}{A,B,C,D,E,F,G}
%makeatother
%
%\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description} % arguments 3 to 6 are optional
%
%\section{Ausbildung}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%\cventry{xx/xxxx -- xx/xxxx}{Akadem. Grad}{Institution}{Stadt}{\textit{Abschluss}}{Bemerkung} % arguments 3 to 6 are optional
%
%\cventry{xx/xxxx -- xx/xxxx}{Akadem. Grad}{Institution}{Stadt}{\textit{Abschluss}}{Bemerkung}
%
%\section{Berufserfahrung}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%\cventry{xx/xxxx -- xx/xxxx}{Musterkaufmann}{Musterfirma}{Musterort}{}{Bemerkung}
%
%\section{Sprachen}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%\cvline{Deutsch}{Muttersprache}{}
%\cvline{Englisch}{Verstehen A1, Sprechen B2, Schreiben C3 \hfill {\scriptsize \itshape Europäische Kompetenzstufe}}
%
%\section{IT Kompetenzen}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%\cvline{Musterkategorie}{Mustermethode 1 (z.B. mit Musterprogramm 2), Mustermethode 2 (z.B. mit Musterprogramm 4)}
%
%\newpage
%
%\section{Auszeichnungen}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%\cvline{xx/xxxx}{Musterpreis}
%
%
%\section{Außeruniversitäre Tätigkeiten}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%\cvline{....}{....}
%
%\section{Interessen}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%\cvline{....}{....}
%
%\section{Publikationen}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%\subsection{Konferenzen und Workshops}
%
%\cvline{mm/jjjj}{Autor 1 und Autor 2. \textbf{Mustertitel: Unser tolles Paper.} In \textit{Proceedings of the First Muster Workshop 1970}, Musterstadt, Musterland, YYYY.}
%
%% \newpage
%
%\subsection{Technical Reports}
%
%\cvline{....}{....}
%
%\cvline{....}{alternativ kann man auch BibTex verwenden:}
%
%\renewcommand*{\refname}{Abschlussarbeiten}
%\nocite{*}
%\bibliographystyle{cv}
%\bibliography{publications} % 'publications' is the name of a BibTeX file
%
%\newpage
%\chapter{Bachelor}{zeugnis}
%\vspace*{1cm}
%\begin{center}
% % \fbox{\includegraphics[height=0.85\textheight]{Bakk-Zeugnis}}
%\end{center}
%
%\newpage
%\chapter{Master}{zeugnis}
%\vspace*{1cm}
%\begin{center}
% % \fbox{\includegraphics[height=0.85\textheight]{Masterzeugnis}}
%\end{center}
%
%\vspace*{1cm}
%\begin{center}
% % \fbox{\includegraphics[height=0.85\textheight]{Masterzeugnis-2}}
%\end{center}
%
%% \newpage
%% \chapter{Abschluss}{zeugnis}
%% \vspace*{1cm}
%% \begin{center}
%% % \fbox{\includegraphics[height=0.85\textheight]{Abschlusszeugnis}}
%% \end{center}
\end{document}
% end of file `cv_german.tex'
答案1
好吧,为了删除第一页上的行,你需要定义一个新命令,\mysection
例如
\newcommand*{\mysection}[1]{% <=========================================
\vspace*{2.5ex}%
\parbox[m]{\hintscolumnwidth}{\raggedleft\hintfont{\color{sectionrectanglecolor}\rule{\hintscolumnwidth}{0ex}}}% <=========
\phantomsection{}% reset the anchor for hyperrefs
% \addcontentsline{toc}{part}{#1}%
\hspace{\separatorcolumnwidth}%
\parbox[m]{\maincolumnwidth}{\sectionstyle{#1}}\\[1ex]}
随着使用,\rule{\hintscolumnwidth}{0ex}
规则已经消失......
您的名字已经以粗体 ( ) 打印,\mdseries
因为使用的字体定义为:
\renewcommand*{\firstnamefont}{\fontsize{34}{36}\sffamily\mdseries\upshape}
已编辑
为了能够获得斜体文本调用包lmodern
,添加选项roman
作为类选项并注释掉错误的行:
%\renewcommand{\sfdefault}{default} % <=================================
要添加附加文档列表,只需使用tabular
以下命令:
\mysection{\huge Anlagen} % <=======================================
\begin{tabular}{p{\hintscolumnwidth}p{\separatorcolumnwidth}l}
& & \textit{Lebenslauf}\\
& & \textit{Arbeitszeugnis}
\end{tabular} % <=======================================================
因此,有了完整的 MWE
\documentclass[12pt,a4paper,roman]{moderncv} % <========================
\usepackage[german]{babel}
\usepackage{moderncv-additions}
% moderncv themes
\moderncvtheme{classic} % optional arguments 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}
\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
\usepackage{adjustbox}
\usepackage{lmodern} % <================================================
%\renewcommand{\sfdefault}{default} % <=================================
\renewcommand{\labelitemi}{$\bullet$}
\usepackage{mathptmx}
\usepackage[12pt]{moresize}
\newcommand*{\mysection}[1]{% <=========================================
\vspace*{2.5ex}%
\parbox[m]{\hintscolumnwidth}{\raggedleft\hintfont{\color{sectionrectanglecolor}\rule{\hintscolumnwidth}{0ex}}}%
\phantomsection{}% reset the anchor for hyperrefs
% \addcontentsline{toc}{part}{#1}%
\hspace{\separatorcolumnwidth}%
\parbox[m]{\maincolumnwidth}{\sectionstyle{#1}}\\[1ex]}
%\renewcommand*{\firstnamefont}{\fontsize{34}{36}\sffamily\mdseries\upshape}
\AtBeginDocument{\recomputelengths} % required when changes are made to page layout lengths
% personal data
\firstname{Joe}
\familyname{Mustermann}
%\title{Resumé title (optional)} % optional, remove the line if not wanted
\address{adress1}{address2} % optional, remove the line if not wanted
\mobile{0123456789} % 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{[email protected]} % optional, remove the line if not wanted
%\extrainfo{additional information (optional)} % optional, remove the line if not wanted
\photo[256pt]{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
%\nopagenumbers{} % uncomment to suppress automatic page numbering for CVs longer than one page
%----------------------------------------------------------------------------------
% content
%----------------------------------------------------------------------------------
\begin{document}
% color redefinitions must be after \begin{document}!
%\definecolor{firstnamecolor}{RGB}{125,85,85}
\definecolor{firstnamecolor}{RGB}{0,0,0}
\definecolor{familynamecolor}{RGB}{0,0,0}
\definecolor{quotecolor}{RGB}{125,85,85}
\definecolor{addresscolor}{RGB}{0,0,0}
\definecolor{sectionrectanglecolor}{RGB}{0,0,0}
\definecolor{sectiontitlecolor}{RGB}{0,0,0}
\definecolor{subsectioncolor}{RGB}{125,85,85}
\definecolor{footersymbolcolor}{RGB}{125,85,85}
\makeatletter
\pagestyle{empty}
%\chapter*{Bewerbungs}{unterlagen}
%\chapter*{Bewerbung als\\}{ XXXXXXX }%\underline{\hspace{3cm}}}
\mysection{\huge Bewerbung als\\ XXXXXXX \underline{\hspace{3cm}}} % <==========================
%\vspace*{50mm}
\vspace*{10mm}
\hfill%
\begin{adjustbox}{minipage=10cm, right}
% \vspace*{3mm}
\hspace*{5mm}{{\color{firstnamecolor}\includegraphics[width=256pt]{picture}}}\\[3mm] \centering\familynamestyle{\@firstname}~~\firstnamestyle{\@familyname} \\
% \hspace*{5mm}{{\color{firstnamecolor}\includegraphics[width=256pt]{picture}}}\\[3mm]
\@addressstreet, \@addresscity ~~~ \\
\mobilesymbol~\@mobile ~~~ \\
\emailsymbol~\@email
\end{adjustbox}
%\begin{minipage}{\textwidth}
% \vspace*{3mm}
%\hspace*{5mm}{{\color{firstnamecolor}\includegraphics[width=256pt]{picture}}}\\[3mm] \familynamestyle{\@firstname}~~\firstnamestyle{\@familyname} \\
%% \hspace*{5mm}{{\color{firstnamecolor}\includegraphics[width=256pt]{picture}}}\\[3mm]
% \@addressstreet, \@addresscity ~~~ \mobilesymbol~\@mobile ~~~ \emailsymbol~\@email
%\end{minipage}
\begin{minipage}{70pt}
\end{minipage}
\vfill
\begin{minipage}{1.0\textwidth}
\mysection{\huge Anlagen} % <=======================================
\begin{tabular}{p{\hintscolumnwidth}p{\separatorcolumnwidth}l}
& & \textit{Lebenslauf}\\
& & \textit{Arbeitszeugnis}
\end{tabular} % <=======================================================
\end{minipage}
%
\newpage
\pagestyle{fancy}
\chapter{Curriculum}{~Vit\ae}
\makequote
\section{Persönliche Daten}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\cvline{Name}{\@firstname~\@familyname}
\cvline{Anschrift}{\@addressstreet, \@addresscity}
\cvline{Telefon}{\@mobile}
\cvline{E-Mail}{\@email}
\cvline{Geburtsdaten}{1. Januar 1970 in Musterstadt}
\cvline{Staatsbürgerschaft}{Österreichisch}
\cvline{Familienstand}{ledig}
\cvline{Präsenzdienst}{abgeleistet}
\cvline{Führerschein}{A,B,C,D,E,F,G}
makeatother
\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description} % arguments 3 to 6 are optional
\section{Ausbildung}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\cventry{xx/xxxx -- xx/xxxx}{Akadem. Grad}{Institution}{Stadt}{\textit{Abschluss}}{Bemerkung} % arguments 3 to 6 are optional
\cventry{xx/xxxx -- xx/xxxx}{Akadem. Grad}{Institution}{Stadt}{\textit{Abschluss}}{Bemerkung}
\section{Berufserfahrung}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\cventry{xx/xxxx -- xx/xxxx}{Musterkaufmann}{Musterfirma}{Musterort}{}{Bemerkung}
\section{Sprachen}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\cvline{Deutsch}{Muttersprache}{}
\cvline{Englisch}{Verstehen A1, Sprechen B2, Schreiben C3 \hfill {\scriptsize \itshape Europäische Kompetenzstufe}}
\section{IT Kompetenzen}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\cvline{Musterkategorie}{Mustermethode 1 (z.B. mit Musterprogramm 2), Mustermethode 2 (z.B. mit Musterprogramm 4)}
\newpage
\section{Auszeichnungen}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\cvline{xx/xxxx}{Musterpreis}
\section{Außeruniversitäre Tätigkeiten}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\cvline{....}{....}
\section{Interessen}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\cvline{....}{....}
\section{Publikationen}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Konferenzen und Workshops}
\cvline{mm/jjjj}{Autor 1 und Autor 2. \textbf{Mustertitel: Unser tolles Paper.} In \textit{Proceedings of the First Muster Workshop 1970}, Musterstadt, Musterland, YYYY.}
% \newpage
\subsection{Technical Reports}
\cvline{....}{....}
\cvline{....}{alternativ kann man auch BibTex verwenden:}
\renewcommand*{\refname}{Abschlussarbeiten}
\nocite{*}
\bibliographystyle{cv}
\bibliography{publications} % 'publications' is the name of a BibTeX file
\newpage
\chapter{Bachelor}{zeugnis}
\vspace*{1cm}
\begin{center}
% \fbox{\includegraphics[height=0.85\textheight]{Bakk-Zeugnis}}
\end{center}
\newpage
\chapter{Master}{zeugnis}
\vspace*{1cm}
\begin{center}
% \fbox{\includegraphics[height=0.85\textheight]{Masterzeugnis}}
\end{center}
\vspace*{1cm}
\begin{center}
% \fbox{\includegraphics[height=0.85\textheight]{Masterzeugnis-2}}
\end{center}
% \newpage
% \chapter{Abschluss}{zeugnis}
% \vspace*{1cm}
% \begin{center}
% % \fbox{\includegraphics[height=0.85\textheight]{Abschlusszeugnis}}
% \end{center}
\end{document}
您将获得以下第一页:
只是一句:在我看来,你严重滥用旧课程。最好不要这样做!自己创建封面页会更容易……