Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--to beamer should use LaTeX template file #5585

Closed
Wandmalfarbe opened this issue Jun 14, 2019 · 1 comment
Closed

--to beamer should use LaTeX template file #5585

Wandmalfarbe opened this issue Jun 14, 2019 · 1 comment

Comments

@Wandmalfarbe
Copy link
Contributor

When using --template name, pandoc automatically picks the right template depending on the output format.

  • --template default --to html5 uses default.html5
  • --template default --to man uses default.man

Since the default LaTeX and beamer template are merged into one file I would expect that - --template default --to beamer uses the template name.latex.

But the command

pandoc --from markdown --template default --to beamer document.md

fails with an error:

Could not find data file templates/default.beamer
@jgm
Copy link
Owner

jgm commented Jul 14, 2019

I think it's probably best to keep current behavior, which is consistent with what the manual says.
Changing would be a breaking change, and some people might have templates they use just with beamer. It's not that hard to say default.latex in this case. Or, if you have a custom beamer/latex template, custom.latex, you can symlink it to custom.beamer, so that it will work with either.

@jgm jgm closed this as completed Jul 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants