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

Expected end date in Education Entry #152

Open
andrefpoliveira opened this issue Aug 10, 2024 · 1 comment
Open

Expected end date in Education Entry #152

andrefpoliveira opened this issue Aug 10, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@andrefpoliveira
Copy link

In some cases, it can be helpful to have the expected end date instead of "present". It could show as, for example, Sept. 2024 (Expected)

@andrefpoliveira andrefpoliveira added the enhancement New feature or request label Aug 10, 2024
@jw-shan
Copy link

jw-shan commented Oct 2, 2024

You can implement this using arbitrary keys and custom themes. Taking engineeringresumes as an example, first create a custom theme:

rendercv create-theme "mycustomtheme" --based-on "engineeringresumes"

Next, modify the file ./mycustomtheme/EducationEntry.j2.tex as follows:

((* if not is_first_entry *))
\vspace{<<design.margins.entry_area.vertical_between>>}
((* endif *))

((* if entry.expected *))
\begin{twocolentry}{
    <<entry.date_string>> (expected)
}
((* else *))
((* if entry.date_string *))
\begin{twocolentry}{
    <<entry.date_string>>
}
((* else *))
\begin{onecolentry}
((* endif *))
((* endif *))
    \textbf{<<entry.institution>>}, ((* if entry.degree *))<<entry.degree>> in ((* endif *))<<entry.area>>((* if entry.location *)) -- <<entry.location>>((* endif *))
((* if entry.date_string *))
\end{twocolentry}
((* else *))
\end{onecolentry}
((* endif *))

((* for item in entry.highlights *))
    ((* if loop.first *))
\vspace{<<design.margins.highlights_area.top>>}
\begin{onecolentry}
    \begin{highlights}
    ((* endif *))
        \item <<item>>
    ((* if loop.last *))
    \end{highlights}
\end{onecolentry}
    ((* endif *))
((* endfor *))

In this example, lines 5–9 check whether there is an key called expected . If so, the date will appear with (expected) at the end. To create an education section, you would write:

    Education:
      - institution: xxx
        area: xxx
        degree: xxx
        date: 2024-06 
        expected: true
        highlights:
          - 'xxx'

This will display the date as Jun 2024 (expected) as you want. It would be appreciated if the author could incorporate this feature into the original code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants