Clash with xkvview package

denisbitouze avatardenisbitouze created an issue

Hi,

there is a clash between beamer class and xkvview package (from xkeyval bundle):

\documentclass{beamer}
\usepackage{xkvview}
%
\begin{document}
\xkvview{}
\end{document}

leads to the following error:

! Argument of \beamer@sortzeroread has an extra }.
<inserted text> 
                \par 
l.7 \xkvview{}

Replacing beamer by article, for instance, doesn't give any error.

Comments (3)

  1. Joseph Wright

    This occurs because some macros which xkeyval assumes are robust are not with beamer. The error arises because of \\, but there is a second due to \emph. Try

    \documentclass{beamer}
    \usepackage{xkvview}
    \begin{document}
    \protected\edef\\{\unexpanded\expandafter{\\}}
    \protected\edef\emph{\unexpanded\expandafter{\emph}}
    \xkvview{}
    \end{document}
    

    to get the example to compile.

    Regrettably, as I've noted in other bugs I cannot fix this without altering the behaviour of beamer in some way, and at this stage in the life of the class I don't feel altering things would be safe. This therefore has to go down as a 'known issue'. Sorry.

  2. Joseph Wright

    As I said, this is really a beamer issue, but one I can't really change: it is not the fault of xkeyval, as any package which assumes robustness from a range of macros will be affected.

  3. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.