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

Provide orderly \cventry #5

Closed
rhagenson opened this issue Oct 9, 2019 · 1 comment
Closed

Provide orderly \cventry #5

rhagenson opened this issue Oct 9, 2019 · 1 comment

Comments

@rhagenson
Copy link
Owner

Currently the order of fields in a \cventry prints out in a different order than expected (the first fields is printed below the second field).

Suggested options:

  1. Provide an \orderedEntry that prints in order (first two entries in order on the left, second two entries in order on the right, fifth entry below)
\newcommand*{\orderedEntry}[5]{%
    \cventry{#2}{#1}{#3}{#4}{#5}%
}
  1. Change the defined order of \cventry switching all #1 <-> #2

Original:

\newcommand*{\cventry}[5]{%
  \vspace{-2.0mm}
  \setlength\tabcolsep{0pt}
  \setlength{\extrarowheight}{0pt}
  \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} L{\textwidth - 4.5cm} R{4.5cm}}
    \ifempty{#2#3}
      {\entrypositionstyle{#1} & \entrydatestyle{#4} \\}
      {\entrytitlestyle{#2} & \entrylocationstyle{#3} \\
      \entrypositionstyle{#1} & \entrydatestyle{#4} \\}
    \multicolumn{2}{L{\textwidth}}{\descriptionstyle{#5}}
  \end{tabular*}%
}

Change:

\newcommand*{\cventry}[5]{%
  \vspace{-2.0mm}
  \setlength\tabcolsep{0pt}
  \setlength{\extrarowheight}{0pt}
  \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} L{\textwidth - 4.5cm} R{4.5cm}}
    \ifempty{#1#3}
      {\entrypositionstyle{#2} & \entrydatestyle{#4} \\}
      {\entrytitlestyle{#1} & \entrylocationstyle{#3} \\
      \entrypositionstyle{#2} & \entrydatestyle{#4} \\}
    \multicolumn{2}{L{\textwidth}}{\descriptionstyle{#5}}
  \end{tabular*}%
}
@rhagenson
Copy link
Owner Author

Extension to use of this, I believe the current order of

\cventry
  {M.S. in Biomedical Informatics} % Degree
  {University of Nebraska at Omaha} % Institution
  {Omaha, NE} % Location
  {Aug. 2017} % Date(s)
  {
    \begin{cvitems} % Description(s) bullet points
      \item {Investigated protein disorder in cancer subtypes to identify driver genes -- flipping the usual approach.}
    \end{cvitems}
  }

which orders Institution above Degree on the left and Location above Date(s) on the right should really be used/ordered as:

\cventry
  {M.S. in Biomedical Informatics} % Degree
  {University of Nebraska at Omaha} % Institution
  {Aug. 2017} % Date(s)
  {Omaha, NE} % Location
  {
    \begin{cvitems} % Description(s) bullet points
      \item {Investigated protein disorder in cancer subtypes to identify driver genes -- flipping the usual approach.}
    \end{cvitems}
  }

which orders Degree above Institution on the left and Date(s) above Location on the right. This works to emphasize the Degree and Date(s) content rather than Institution and Location.

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