我使用 marginpar 在页边空白处写一些东西,然后在旁边写一些其他的东西。但是,行与行的匹配不正确,并且有轻微的差异(见打印屏幕)。有人能帮我调整文本以使行与行之间完美匹配吗?我认为这与将所有内容放下的“y”有关
提前致谢
% PACKAGES
% ---------------------------------------------------------------------
\documentclass[a4paper, 10 pt, oneside, final]{scrartcl}
\usepackage[left=4.1cm, right=0.75cm, top=0.5cm, bottom=0.5cm]{geometry}
\usepackage{soul}
\usepackage{scrpage2}
\usepackage{titlesec}
\usepackage{marvosym}
\usepackage{tabularx}
\usepackage[francais]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\pagestyle{empty}
\usepackage{enumitem}
\usepackage{color}
\usepackage{wrapfig}
\usepackage{graphicx}
\usepackage{amsmath,amssymb,mathrsfs}
\usepackage{scrextend}
\usepackage{marvosym}
% Title format
\titleformat{\section}{\large\scshape\raggedright}{}{0em}{} [{\color{coolblack}}\vskip-\topskip\rule{\linewidth}{0.8pt}]
\titlespacing*{\section}
{0pt}{0ex plus 0ex minus 0ex}{0ex plus 0ex}
% Title line color
\usepackage{xcolor}
\definecolor{coolblack}{RGB}{58, 53, 61}
% Left margin
\reversemarginpar
\marginparwidth 82pt
% DOCUMENT
% ---------------------------------------------------------------------
\begin{document}
% Command label item
\renewcommand{\labelitemi}{\raise .5ex\hbox{\tiny$\bullet$}}
\newcommand{\mymarginnote}[1]{\marginpar{\normalsize\textcolor{black}{#1}}}
% Personal informations and picture
\begin{wrapfigure}{r}{00mm}
\hfill
\includegraphics[scale=0.12]{cv_picture.jpg}
\end{wrapfigure}
\noindent \mymarginnote{\fontsize{10.5}{12}\textbf{Arnaud Money}}\
\noindent Born on the 21th of March 1887 \
\mymarginnote{Route 17 \\ Alabama \\ USA\\ \Telefon \thinspace +4167899724 }
\noindent Single \
\noindent US nationality\
\noindent \Letter \thinspace [email protected]
答案1
不确定 marginpar 是否真的是此处的正确加价,但到目前为止,您可以这样做:
\documentclass[a4paper, 10 pt, oneside, final]{scrartcl}
\usepackage[left=4.1cm, right=0.75cm, top=0.5cm, bottom=0.5cm]{geometry}
\usepackage{soul}
\usepackage{scrpage2}
\usepackage{titlesec}
\usepackage{marvosym}
\usepackage{tabularx}
\usepackage[francais]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\pagestyle{empty}
\usepackage{enumitem}
\usepackage{color}
\usepackage{wrapfig}
\usepackage[demo]{graphicx}
\usepackage{amsmath,amssymb,mathrsfs}
\usepackage{scrextend}
\usepackage{marvosym}
% Title format
\titleformat{\section}{\large\scshape\raggedright}{}{0em}{} [{\color{coolblack}}\vskip-\topskip\rule{\linewidth}{0.8pt}]
\titlespacing*{\section}
{0pt}{0ex plus 0ex minus 0ex}{0ex plus 0ex}
% Title line color
\usepackage{xcolor}
\definecolor{coolblack}{RGB}{58, 53, 61}
% Left margin
\reversemarginpar
\marginparwidth 84pt
% DOCUMENT
% ---------------------------------------------------------------------
\begin{document}
% Command label item
\renewcommand{\labelitemi}{\raise .5ex\hbox{\tiny$\bullet$}}
\newcommand{\mymarginnote}[1]{\leavevmode
\marginpar{\normalsize\textcolor{black}{#1}}%
\ignorespaces}
\setlength\parindent{0pt}
% Personal informations and picture
\begin{wrapfigure}{r}{00mm}
\hfill
\includegraphics[scale=0.12]{cv_picture.jpg}
\end{wrapfigure}
\mymarginnote{\smash{\fontsize{10.5}{12}\textbf{Arnaud Money}}}
\mbox{}
\mymarginnote{Route 17 \\ Alabama \\ USA\\ \Telefon \thinspace +4167899724 }
Born on the 21th of March 1887
Single
US nationality
\Letter \thinspace [email protected]
\end{document}