aboutsummaryrefslogtreecommitdiff
path: root/data/templates/default.beamer
AgeCommit message (Collapse)Author
2025-09-28LaTeX writer: Fix strikeouts in beamer title (#11169)TuongNM
beamer uses pdfstring for the pdfinfo which can't handle soul strikeouts. Therefore, the title, subtitle and author contents need to be put inside texorpdfstring to deal with both the pdfinfo as well as the formatting. Fixes #11168.
2025-03-17Revert "Default beamer template: only emit `\date` if set (#10687)"John MacFarlane
This reverts commit 3f1f58e96e4eae82af44f1610806aa7c637a59d6. The reason for reverting this change is that it led to an undesirable behavior change. Documents with no explicit date specified now have a date printed, because the default title block will include a date if no `\date` command is used. The empty `\date{}`, by contrast, suppressed the date, which is the desirable behavior. PR #10687 was motivated by the desire to include a custom `\date` in the frontmatter via header-includes. I think that aim can be achieved more simply by simply setting the `date` variable. In markdown you can even use `date:` in metadata and put some raw LaTeX there.
2025-03-14Default beamer template: only emit `\date` if set (#10687)josch
This allows one, for example, to set a custom \date in the header-includes of the rmarkdown yaml frontmatter. Without this conditional, the custom \date in the frontmatter would be overridden by a (potentially empty) date from this template later.
2024-12-19Fix default.beamer nocite location.John MacFarlane
It must be inside a frame or it is ignored. Improves on #10465. Obsoletes #10471. Co-authored-by: Thomas Hodgson <[email protected]>
2024-12-17Move nocites from LaTeX preamble to body (#10465)Thomas Hodgson
Closes #10461. Putting `\nocite` in the preamble works only with biblatex.
2024-10-23LaTeX/Beamer template changes.John MacFarlane
- Split fonts.latex partial into two parts: fonts.latex and font-settings.latex. - In beamer template, load beamer theme between fonts.latex and font-settings.latex. This allows a theme (such as metropolis) to set its own default font, while still allowing the user to override it. This fixes a regression in pandoc 3.5. Users who have custom templates based on pandoc 3.5 templates will need to add `font-settings.latex()` after `fonts.latex()` in the latex template. In a beamer template, the beamer theme-setting code needs to be moved between these two partials. Closes #10297.
2024-10-01Support short title, author, etc. in Beamer (#10244)Thomas Hodgson
+ Add `shorttitle`, `shortsubtitle`, `shortauthor`, `shortinstitute`, `shortdate` to default.beamer. + Note that the brackets are inside conditionals, because some older beamer versions don't allow the empty optional argument. Closes #10248.
2024-10-01Make --number-sections work with beamer (#10245)Thomas Hodgson
+ Remove section numbering code from common.latex + Add section numbering to default.latex + Add logic for numbering sections in default.beamer. I moved the template setting code to where other beamer templates are set. This makes the section-titles and numbersections variables independent. This should make --number-sections work with beamer.
2024-10-01Support a list of images for titlegraphic (#10246)Thomas Hodgson
Allow a list of title graphics in default.beamer Title graphic options will be applied to each title graphic. Images will be separated by `\enspace`.
2024-10-01Beamer theme options (#10243)Thomas Hodgson
Add theme options to default.beamer: `colorthemeoptions`, `fontthemeoptions`, `innerthemeoptions`, `outerthemeoptions`.
2024-10-01Move beamerarticle code from beamer -> latex template.John MacFarlane
2024-09-29Remove font-settings.tex partial.John MacFarlane
We incorporate this into fonts.tex, and move the beamer theme-setting commands before both of them.
2024-09-29Refactor latex template using partials.John MacFarlane
+ Split out common parts of latex template into partials: common.latex, fonts.latex, font-settings.latex, passoptions.latex, hypersetup.latex, after-header-includes.latex. + Split out old latex template into default.latex and default.beamer. + Make default.beamer the default template for beamer.
2017-09-08Removed old beamer template.John MacFarlane
We now use the default.latex template for both latex and beamer. It contains conditionals for the beamer-specific things. `pandoc -D beamer` will return this template.
2017-06-05Added aspectratio variable to beamer template (#3723).Václav Haisman
* Transplant jgm/pandoc-templates#236 to Pandoc repository. * Document `aspectratio` in user manual. * Enumerate possible values for `aspectratio`.
2017-04-29LaTeX writer: Fix problem with escaping in lstinline.John MacFarlane
Previously the LaTeX writer created invalid LaTeX when `--listings` was specified and a code span occured inside emphasis or another construction. This is because the characters `%{}\` must be escaped in lstinline when the listinline occurs in another command, otherwise they must not be escaped. To deal with this, adoping Michael Kofler's suggestion, we always wrap lstinline in a dummy command `\passthrough`, now defined in the default template if `--listings` is specified. This way we can consistently escape the special characters. Closes #1629.
2017-02-20Merge commit '9e52ac6bb02afd7b4ed5dad61021a1fa33051203' as 'data/templates'John MacFarlane