I want to use the exact same file for my beamer presentation and handout. I do not like the need to comment out lines in order to create the handout or presentation (my current solution), nor do I want to have multiple files with an
\input command. I realized that I can have a link (I work in linux or bsd) pointing to my main file, say
talk_handout.tex -> talk.tex
then the macro
\jobname will let me know if I'm compiling the main file or the link. Using
\endswith from the
xifthen package I could then figure out if I should do handout or presentation mode.
This is all nice in theory, but in practice I have no idea how to do this. I usually have either
[beamer] in my
\documentclass line and I don't know how to combine that with my desired use of
Of course, I could have to files with an
\input command right after the
\document class line.....but I was wondering if there's another way.