Skip to content

Cross page experience sections #75

@njia4

Description

@njia4

I am not sure if this is still relevant, but I rewrite the environment and command to allow the experience section to span across pages. The restriction to use short experience subsection was a bit inconvenient. The update, in principle, shouldn't require any changes in the source file as I tried my best to match the style as the old one which is quite nice.

The change requires three additional packages

\RequirePackage[strict]{changepage}
\RequirePackage{marginnote}
\RequirePackage{mdframed}

The new \experiences environment use a locally changed large margin together with the \marginnote instead of a table which is incompatible with crossing the page.

\newenvironment{experiences}{
    \begin{adjustwidth}{1.2\leftcolumn}{}
    \setlength{\marginparwidth}{\leftcolumn}
    \setlength{\marginparsep}{-1\leftcolumn}
    \vspace{0.5cm}
}{
    \end{adjustwidth}
}

The corresponding \experience commands is

\newmdenv[topline=false,rightline=false,bottomline=false,innertopmargin=0]{experiencebox}
\newcommand\experience[7]{
  \begin{experiencebox}
    \reversemarginpar\marginnote{\textbf{#1} \\ \textbf{#5}}
    \textbf{#2, \textsc{#3}, #4} \\
    #6
    \footnotesize{\foreach \n in {#7}{\cvtag{\n}}}
  \end{experiencebox}
}

The newly introduced experiencebox is just to have the vertical frame line to separate the date and the main text.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions