jgm / pandoc

Universal markup converter
https://pandoc.org
Other
34.83k stars 3.39k forks source link

Beamer frame attributes (standout in metropolis theme) #3007

Open jabranham opened 8 years ago

jabranham commented 8 years ago

Currently we can pass frame attributes to beamer like so:

# Frame title {.plain}

To get a plain frame. However, pandoc does not pass through just any property - in particular, it is not currently possible to use the standout option from the metropolis theme. Is it possible to pass through other frame attributes?

Related issue on the metropolis theme repo: https://github.com/matze/mtheme/issues/205

herculosh commented 6 years ago

Hello everyone

I felt that this implementation of Standout didn't work properly, I think it belongs to metropolis?

For example, if I translate the following code from Markdown to beamer (. tex)

## Standout frame {.standout}

Standout (works as expected)

## Should be a normal one

but still a standout Frame. 

Then I get the following text output.

\begin{frame}[fragile,standout]{%
\protect\hypertarget{standout-frame}{%
Standout frame}}

Standout (works as expected)

\end{frame}

\begin{frame}[fragile]{%
\protect\hypertarget{should-be-a-normal-one}{%
Should be a normal one}}

but still a standout Frame.

\end{frame}

In the end it look like this in PDF.

greenshot 2017-12-18 21 23 51

Did I do something wrong?

Thanks in Advance.

scottmartincampbell commented 6 years ago

I have the same problem, using pandoc 2.1.3 and the most recent version of metropolis. Herculosh, did you solve this?

innomadic commented 5 years ago

I have the same problem as @herculosh . Is there a manual work around for this? Does a new issue need to be created?

jgm commented 5 years ago

scottmartincampbell notifications@github.com writes:

I have the same problem, using pandoc 2.1.3 and the most recent version of metropolis. Herculosh, did you solve this?

pandoc 2.5 is the latest release. Why don't you try that?

innomadic commented 5 years ago

scottmartincampbell notifications@github.com writes: I have the same problem, using pandoc 2.1.3 and the most recent version of metropolis. Herculosh, did you solve this? pandoc 2.5 is the latest release. Why don't you try that?

FYI I am using Pandoc 2.5 and just came across this problem yesterday. (BTW thanks for this amazing piece of software!)

jgm commented 5 years ago

Reopening! Can someone look at the latex source pandoc produces for this input and say how it should be changed to get it to work?

malbarbo commented 5 years ago

Removing ignorenonframetext beamer option in the template fix the problem.

purpleKarrot commented 5 years ago

I work around this issue like this:

---
title: ...
subtitle: ...
author: ...
institute: ...
date: \today
header-includes:
 - '\usetheme{metropolis}'
 - '\makeatletter'
 - '\beamer@ignorenonframefalse'
 - '\makeatother'
---

## Standout frame {.standout}
Standout (works as expected)

## Normal frame
Normal (works as expected)
jgm commented 5 years ago

Interesting that \beamer@ignorenonframefalse fixes the problem...but why? In general, we use ignorenonframetext; is there an explanation of why this breaks standout? Also, does standout break in this way just on this one theme, or in general?

fkohrt commented 3 years ago

Related: #4786

basbebe commented 3 years ago

Still having the same problem

pacien commented 3 years ago

Standout frames seem to work fine with matze/mtheme@2fa6084 and pandoc 2.13 with this test document.

Note that, at the time of writing, you still have to use the metropolis theme from the master branch of its repository because the current latest release predates the theme fix.

I believe this issue can be closed.

basbebe commented 3 years ago

I'm sorry, this is apparently what happened:

I did make sty in master and copied the resulting .sty files to beamertheme/ in my pandoc project.\ I added theme: metropolis in my default.yaml.\ Then I got the described behavior.

When I copied the files to my project root, the problem was gone.

I deleted theme: metropolis in my default.yaml and added to my settings.tex:

\usepackage{beamertheme/beamercolorthememetropolis}
\usepackage{beamertheme/beamerfontthememetropolis}
\usepackage{beamertheme/beamerinnerthememetropolis}
\usepackage{beamertheme/beamerouterthememetropolis}
\usepackage{beamertheme/beamerthememetropolis}

had to omit beamertheme/beamercolorthememetropolis-highcontrast.sty (contrast too high) and beamertheme/pgfplotsthemetol.sty (error when running pandoc)