Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I've been thinking of implementing an option for my CV where it extracts a set of predefined sections (in a minimal form) and typesets that instead of the entire list of everything I've done in my life.

How can I go about implementing this? I just need an example of how my code should look like, e.g.,

for my Talks sections, the minimal option would remove the authors, but would keep only the title of the talk and the venue.

At the same time, it would be nice to modify the margins, to squeeze more info onto pages.

I'm thinking that it will involve some ifthenelse options? If [minimal], \ignore{\authors} or something of the sort.

Can someone give me example code to steer me? I'm OK with messing in LaTeX, but just need guidance with starting this approach.

share|improve this question
Do you want to create your own class or package with this option or just have a normal document with it? –  Martin Scharrer Apr 27 '11 at 0:20
Hi Martin. I can do either a separate class file or just make the use of \makeatletter \makeatother whenever necessary within the \documentclass{article}. I think it would be easier to start my own class file and transfer what I currently have to it. Do you have suggestions? To nabla2 and Matthew: Thanks for the suggestions, but it's not exactly what I'm looking for. I definitely don't want to start learning another platform (xml or yaml, etc). I'm sure it is doable in Latex, but I just need an example piece of code. –  mech14 Apr 28 '11 at 21:25
add comment

3 Answers

The easiest way might be with a simple conditional. So your document would look like this:

% \maximaltrue % Uncomment to compile big CV.
\documentclass{article} % Or whatever
\section{This section won't be in the minimal}
\section{In the minimal}
Again, not in the maximal...

So anything you only want in the bigger cv goes between \ifmaximal and \fi. Note this is sort of the opposite of what you want but it should work just as well...

share|improve this answer
You can also use the \PassOptionsToPackage command to give different margins to geometry or typearea packages... (I'll update this when I get a chance to test it) –  Seamus Jun 26 '11 at 16:26
add comment

If it were me I would write my full CV in XML or YAML and use a structured datatype (there are XML schemas in this area written by human resources IT professionals, but it might be overkill). This way you can list each talk and indicate the title, author, date, location etc.

Then write scripts to extract the data you want and generate the desired TeX file.

share|improve this answer
Or you could write in Markdown and export to TeX with pandoc or in emacs org mode and use its built in export functions. I'm not sure that answers the question about having two versions though... –  Seamus Jun 26 '11 at 16:25
There is yst which can take a suitably structured yaml file and output tex. It used the above-mentioned pandoc to do the conversion. –  Seamus Nov 30 '11 at 10:47
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.