dnl-blkv / mcdowell-cv

A Nice-looking CV template made into LaTeX
https://www.careercup.com/resume
MIT License
2.21k stars 777 forks source link

Removing the middle title in cvsubsection #24

Open praxxus11 opened 2 years ago

praxxus11 commented 2 years ago

For those that

Here is how to create more space for the left and right titles: Before:

\newenvironment{cvsubsection}[4][1]{
  \notblank{#2}{\toggletrue{lefttitledefined}}{}
  \notblank{#3}{\toggletrue{centertitledefined}}{}
  \notblank{#4}{\toggletrue{righttitledefined}}{}
  \ifboolexpr{togl {lefttitledefined} or togl {centertitledefined} or togl {righttitledefined}}{
    \begin{tabu} to 1\textwidth { X[l,p] X[c,p] X[r,p] }
      \textbf{#2} & \textbf{#3} & \textbf{#4} \\
    \end{tabu}

After:

\newenvironment{cvsubsection}[4][1]{
  \notblank{#2}{\toggletrue{lefttitledefined}}{}
  \notblank{#3}{\toggletrue{centertitledefined}}{}
  \notblank{#4}{\toggletrue{righttitledefined}}{}
  \ifboolexpr{togl {lefttitledefined} or togl {centertitledefined} or togl {righttitledefined}}{
    \begin{tabu} to 1\textwidth { X[l,p] X[r,p] }
      \textbf{#2} & \textbf{#4} \\
    \end{tabu}