
En un moderncv
documento, el uso de itemize
in a cvitem
produce un espacio adicional después de la lista detallada.
Aquí hay un ejemplo de trabajo mínimo:
\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}
Puedo agregar un \vspace{-1em}
después de cada uno itemize
para eliminar el espacio, pero eso parece luchar contra LaTeX en lugar de aceptarlo. ¿Hay alguna configuración que pueda cambiar para eliminar el espacio adicional aquí?
Respuesta1
cvitem
La clase ya proporciona una opción para establecer el espaciado de a 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}
Ver el moderncv.cls
archivo:
% crea una línea de currículum con un encabezado y el texto correspondiente
% de uso: \cvitem[espaciado]{encabezado}{texto}
Respuesta2
Usar una 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}
También puede preferir utilizar [t]
el especificador de posición para 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}