I would like to use a range of 4 to 5 different version of beamer configuration to have a certain flexbility when gerating slides w.r.t. differnt purposes --- e.g. presentation mode, handout, for me, for the web, etc.

So far I had this:

% presentation mode

% handout mode
\documentclass[hyperref={pdfpagemode=UseThumbs, pdfpagelayout=SinglePage, bookmarks=true, },handout,xcolor=dvipsnames]{beamer}

% prepare mode
%\documentclass[notes, hyperref={pdfpagemode=FullScreen},xcolor=dvipsnames]{beamer}

% dev mode
%\documentclass[notes, xcolor=dvipsnames]{beamer}

I enable/disable the one I want when generating a set of slides based on the purpose.

Now, I also want to control my author name, the presentation title and the tags etc for all of those modes --- but, at a single point in the .tex document. I found this information about how to configure the hyperref package (with pdflatex as a driver).

% configure hyperref
    pdfauthor={Bill Miller},
    pdftitle={Some Important Title},
    pdfkeywords={tag1, tag2, tag3},

However, they seem not to work well together. I put the usepackage statement at the beginning of the .tex document. I would like to put general settings in the \usepackage{hyperref} statement and add additional configuration parameters in the specific modes (or overwrite them with other settings, e.g. pdfpagemode).

Is this the way to do it? Maybe I am thinking to complicated...

Is it also possible to generate all 4 PDFs in one compilation run with PDFLaTeX?


Based on the discussion below I made an update. This is the code I have currently:

% presentation mode

\title{Hypersetup (with PDFLaTeX) and Beamer}


    pdfauthor={Bill Meyer},
    pdftitle={The Meaning of Everything},
    pdfkeywords={world, meaning, everything},

    \framesubtitle{Test Subtitle}
    This is a test


The Author name and the keywords do not appear in the PDF file, the title is taken from the title tag. Where can I find this information if not in the document properties of the pdf file? Am I doing this right?

  • Perhaps trivial, but did you try \hypersetup after the \documentclass line (beamer automatically loads hyperref).
    – Joseph Wright
    Jun 19, 2015 at 10:09
  • This method seems to work. So, it seems that I have to make one full blown \hypersetup with repeating parameters for each mode? Is there a way to stack these configurations (i.e. defaults (name, title) first, then adaptations (specifics for presentation mode, like fullscreen or not) ?
    – RalfB
    Jun 19, 2015 at 10:22
  • You miss my point: \hypersetup can come after the various \documentclass lines to contain the common set up for all cases.
    – Joseph Wright
    Jun 19, 2015 at 10:31
  • I made an edit to the main question to clarify further and to point out that it seem not to have the desired effect. Thanks Joseph for helping me with this :)
    – RalfB
    Jun 19, 2015 at 11:59

1 Answer 1

  • Move \hypersetup with pdfauthor and friends before \begin{document}.

  • The title is overwritten by \title, but you can use \texorpdfstring there:

    \title{\texorpdfstring{Hypersetup (with PDFLaTeX) and Beamer}{%
      The Meaning of Everything}}

    Or option usepdftitle can be set to false, then beamer does not use the title of \title for the PDF title:

    \documentclass[..., usepdftitle=false]{beamer}
  • Sounds quite like a hack. Is there any cleaner approach?
    – RalfB
    Jun 22, 2015 at 7:37
  • @RalfB Using the same title or option usepdftitle=false. Jun 22, 2015 at 9:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .