Fix duplicate frame classes in LaTeX/Beamer output.

Close #6107.
This commit is contained in:
John MacFarlane 2020-02-03 08:52:07 -08:00
parent 6371ec241d
commit d9b1776336
2 changed files with 29 additions and 2 deletions

View file

@ -501,8 +501,8 @@ blockToLaTeX (Div (identifier,"slide":dclasses,dkvs)
hasCodeBlock _ = []
let hasCode (Code _ _) = [True]
hasCode _ = []
let classes = dclasses ++ hclasses
let kvs = dkvs ++ hkvs
let classes = ordNub $ dclasses ++ hclasses
let kvs = ordNub $ dkvs ++ hkvs
let fragile = "fragile" `elem` classes ||
not (null $ query hasCodeBlock bs ++ query hasCode bs)
let frameoptions = ["allowdisplaybreaks", "allowframebreaks", "fragile",

27
test/command/6107.md Normal file
View file

@ -0,0 +1,27 @@
```
% pandoc -t beamer
---
title: A silly slide
subtitle: Look for the sequel!
---
# A circus!
## Another silly title
Not much to do about nothing.
## Epilogue {.standout}
^D
\hypertarget{a-circus}{%
\section{A circus!}\label{a-circus}}
\begin{frame}{Another silly title}
\protect\hypertarget{another-silly-title}{}
Not much to do about nothing.
\end{frame}
\begin{frame}[standout]{Epilogue}
\protect\hypertarget{epilogue}{}
\end{frame}
```