1

I've written my resume in LaTeX, however I think it would be useful to have the ability to compile a longer, multi-page version for certain jobs (such as ones requiring the federal format).

Right now, to compile I just run make, and I have a makefile set up to compile the pdf. However ideally I could run make onepage or make full to compile different versions.

Is there a way in LaTex to do something like this?

\input{resumesection_education.tex}
\input{resumesection_experience.tex}
\ifmultipage{ % is this possible?
    \input{resumesection_projects.tex}
    \input{resumesection_extracurriculars.tex}
}

this way my education and experience (written in their own .tex files) would be included in all versions, but the projects and extracurriculars would only be included in the full / multipage versions?

1

1 Answer 1

3

The package multiaudience (https://ctan.org/pkg/multiaudience) may be exactly what you are after. It uses environments (or, at least they look like environments) to determine which parts are conditional.

From the multiaudience document (describing the different audiences of 'developers' and 'executives'):

You may set this parameter outside the document itself like this:

pdflatex "\def\CurrentAudience{execs}\input{file}" This trick allows one to generate all versions of output from the command line:

pdflatex -jobname file-execs "\def\CurrentAudience{execs}\input{file}"

pdflatex -jobname file-devs "\def\CurrentAudience{devs}\input{file}"

Which means that your makefile will need more targets, but I assume you have that in hand.

For your use-case, you would need to define the audiences, and then use something like this in the document:

\begin{shownto}{onepage,multipage}
  \input{resumesection_education.tex}
  \input{resumesection_experience.tex}
  \begin{shownto}{multipage}
    \input{resumesection_projects.tex}
    \input{resumesection_extracurriculars.tex}
  \end{shownto}
\end{showto}

Anything outside of the showto command or environment should be unconditionally included, so it may also be possible to be closer to your example:

\input{resumesection_education.tex}
\input{resumesection_experience.tex}
\showto{multipage}{
    \input{resumesection_projects.tex}
    \input{resumesection_extracurriculars.tex}
}
1
  • this is exactly what I needed, thank you so much! Commented Feb 11 at 21:19

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.