I am using the package moderncv. I implemented already a conditional statement in the preamble:
\usepackage{ifthen}
\newif\ifresume
\resumetrue %true for RESUME, false for CV
This allows me to set up different designs for either generation of a resume or a cv based on the same data. What I would like to do now, is to also to implement this condition in the
\cventry{year--year}{Degree}{Institution}{City}{Grade}{Description}
data fields in the following sense:
\cventry{year--year}{Degree}{Institution}{City}{Grade}{(short) Description for resume}{(long) Description for CV}
I already tried various ideas to implement this, but none succeeded. The obvious solution would be
\cventry{year--year}{Degree}{Institution}{City}{Grade}{\ifresume
%Text for RESUME
\else
%Text for CV
\fi}
but that does not appear very pracicable.#
Any ideas how to solve this smoothly?
Cheers, Mil
xparse
andexpl3
? That would allow you a very simple document-level interface with very readable code-behind. (If you go this route, I'd also recommend usingl3keys
, but that's my preference… something likecvtext=
andresumetext=
.)\newcommand
that incorporates\cventry
into it with 7 args.; when\resumetrue
is in effect, it spits out all 7, when\resumefalse
is in effect, it spits out 6. Note that theifthen
package is not needed for\newif
, and also is superseded in many ways byetoolbox
.