我正在尝试对齐 cventry,以便左右两侧可以留出一些空间,就像调整宽度做。
\documentclass[11pt,a4paper]{moderncv}
\moderncvstyle{banking}
\usepackage[margin=1cm, bottom=1.5cm]{geometry}
\usepackage{changepage}
\newcommand{\mycventry}[6]{\cventry{#1}{#2}{#3}{#4}{#5}{#6}}
\name{John}{Doe}
\begin{document}
\maketitle
\section{Objective Summary}
\begin{adjustwidth}{0.3cm}{0.3cm}
\small Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus rutrum scelerisque turpis, nec ullamcorper lacus ullamcorper vel. Integer pellentesque ante vitae quam condimentum pretium. Morbi sed turpis convallis, convallis turpis sit amet, porttitor odio.
\end{adjustwidth}
\section{EDUCATION}
\begin{adjustwidth}{0.3cm}{0.3cm}
\mycventry{Jan. 2020 – May 2023}{XXX University}{Bachelor of Science in XXX}{US}{}{Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus rutrum scelerisque turpis, nec ullamcorper lacus ullamcorper vel. }
\end{adjustwidth}
\end{document}
调整宽度对于纯文本效果很好,但对于右侧的 cventry 则存在错位。有没有一种简单的方法来实现 cventry 的这种效果?