0

This must be easy for you, but I am quite unable to get it right. Here is my code:

\cvsection{Education}
\begin{cventries}
 \cventry
  {B.S. in Computer Science and Engineering} % Degree
  {POSTECH(Pohang University of Science and Technology)} % Institution
  {Pohang, S.Korea} % Location
  {Mar. 2010 - PRESENT} % Date(s)
  {}
 \cventry
  {B.S. in Computer Science and Engineering} % Degree
  {POSTECH(Pohang University of Science and Technology)} % Institution
  {Pohang, S.Korea} % Location
  {Mar. 2010 - PRESENT} % Date(s)
  {}
\end{cventries}

I want to decrease vertical space between two \cventry items. Here is my current output.

enter image description here

migrated from stackoverflow.com Jun 21 '16 at 5:46

This question came from our site for professional and enthusiast programmers.

  • What \documentclass are you using... moderncv? If so, why style, as \cventry's layout depends on this. – Werner Jun 21 '16 at 5:49
  • Welcome to TeX.SX! Please make your code compilable (if possible), or at least complete it with \documentclass{...}, the required \usepackage's, \begin{document}, and \end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem. – Martin Schröder Jun 21 '16 at 19:11
  • Welcome to TeX.SX! Your post was migrated here from another Stack Exchange site. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question. A suggestion: Do us a favour and change your username to something more telling than "user1234". – Martin Schröder Jun 21 '16 at 19:11
1

You can either patch the \cventry macro to reduce the space inserted after it using etoolbox:

\usepackage{etoolbox}
\patchcmd{\cventry}% <cmd>
  {\\ \end{tabular*}}% <search>
  {\\[-.5\normalbaselineskip]\end{tabular*}}% <replace>
  {}{}% <success><failure>

The above can be inserted just before \begin{document} and will provide a global change to the \cventry macro.

Alternatively, on a case-by-case basis, you can insert something like

\vspace{-.5\baselineskip}

between \cventrys.

enter image description here


References:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.