Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross page experience sections #75

Open
njia4 opened this issue Jul 24, 2023 · 0 comments
Open

Cross page experience sections #75

njia4 opened this issue Jul 24, 2023 · 0 comments

Comments

@njia4
Copy link

njia4 commented Jul 24, 2023

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.

@njia4 njia4 changed the title FCross page experience sections Cross page experience sections Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant