
문서 에서 in a moderncv
를 사용하면 항목별 목록 뒤에 추가 공백이 생깁니다.itemize
cvitem
최소한의 작업 예는 다음과 같습니다.
\documentclass{moderncv}
\moderncvstyle{casual}
\moderncvcolor{green}
\name{John}{Smith}
\begin{document}
\makecvtitle
\section{List section}
\cvitem{Some category}{
\begin{itemize}
\item the first
\item the second
\item the third
\end{itemize}
}
\cvitem{Another category}{
\begin{itemize}
\item number one
\item number two
\item number three
\end{itemize}
}
\cvitem{text}{with a description}
More text.
\end{document}
\vspace{-1em}
공백을 제거하기 위해 각 뒤에 를 추가할 수 있지만 itemize
이는 LaTeX를 수용하기보다는 싸우는 것처럼 보입니다. 여기서 추가 간격을 제거하기 위해 변경할 수 있는 설정이 있습니까?
답변1
a의 간격을 설정하는 옵션은 cvitem
이미 moderncv
클래스에서 제공됩니다.
\documentclass{moderncv}
\moderncvstyle{casual}
\moderncvcolor{green}
\name{John}{Smith}
\begin{document}
\makecvtitle
\section{List section}
\cvitem[-1.2em]{Some category}{ %new code
\begin{itemize}
\item the first
\item the second
\item the third
\end{itemize}
}
\cvitem[-1.2em]{Another category}{ %new code
\begin{itemize}
\item number one
\item number two
\item number three
\end{itemize}
}
\cvitem{text}{with a description}
More text.
\end{document}
파일 을 참조하세요 moderncv.cls
:
%는 헤더와 해당 텍스트로 이력서 줄을 만듭니다.
% 사용량: \cvitem[간격]{header}{text}
답변2
다음을 사용하세요 minipage
:
\documentclass{moderncv}
\moderncvstyle{casual}
\moderncvcolor{green}
\name{John}{Smith}
\begin{document}
\makecvtitle
\section{List section}
\cvitem{Some category}{%
\begin{minipage}{\linewidth}
\begin{itemize}
\item the first
\item the second
\item the third
\end{itemize}
\end{minipage}
}
\cvitem{Another category}{%
\begin{minipage}{\linewidth}
\begin{itemize}
\item number one
\item number two
\item number three
\end{itemize}
\end{minipage}
}
\cvitem{text}{with a description}
More text.
\end{document}
[t]
다음에 대해 위치 지정자를 사용하는 것을 선호할 수도 있습니다 minipage
.
\documentclass{moderncv}
\moderncvstyle{casual}
\moderncvcolor{green}
\name{John}{Smith}
\begin{document}
\makecvtitle
\section{List section}
\cvitem{Some category}{%
\begin{minipage}[t]{\linewidth}
\begin{itemize}
\item the first
\item the second
\item the third
\end{itemize}
\end{minipage}
}
\cvitem{Another category}{%
\begin{minipage}[t]{\linewidth}
\begin{itemize}
\item number one
\item number two
\item number three
\end{itemize}
\end{minipage}
}
\cvitem{text}{with a description}
More text.
\end{document}