1

New class file:

\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{test}[2018/01/09 A test]

\DeclareOption*{\PassOptionsToClass{\CurrentOption}{beamer}}
\ProcessOptions\relax
\LoadClass{beamer} 

LaTeX file using it:

\documentclass[show notes]{test}

\begin{document}
    \frame
    {
        Test
        \note{test}
    }
\end{document}

Does not show notes. Why?


Answer: Different syntax for options and \setbeameroptions. For the first, use show=notes, that is \documentclass[notes=show]{...}, for the second use show notes, that is \setbeameroptions{show notes}.

4

Try this (from here):

test.cls:

\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{test}[2018/01/09 A test]

\DeclareOption*{\PassOptionsToClass{\CurrentOption}{beamer}}
\ProcessOptions\relax
\LoadClass{beamer}
\RequirePackage{pgfpages}

test.tex:

\documentclass{test}
\setbeameroption{show notes on second screen}

\begin{document}
    \frame
    {
        Test
        \note{test}
    }
\end{document}
  • 1
    Thanks. My mistake, the correct syntax for options was notes=show, not show notes. – mrupp Jan 12 '18 at 12:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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