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

LaTeX template: add titlegraphicoptions #9207

Merged
merged 2 commits into from
May 2, 2024
Merged

Conversation

nim65s
Copy link
Contributor

@nim65s nim65s commented Nov 21, 2023

Hi,

Including a title graphic on a beamer template might require some options, like e.g. height=1.5cm to ensure some image will fit at its place in a given template.

I suggest to add an option for this use case.

Without it, my current workaround is:

header-includes:
- \titlegraphic{\includegraphics[height=1.5cm]{media/cdl23.pdf}}

With it, this could become:

titlegraphic: media/cdl23.pdf
titlegraphicoptions: height=1.5cm

Including a title graphic on a beamer template might require some
options, like e.g. `height=1.5cm` to ensure some image will fit at its
place in a given template.

I suggest to add an option for this use case.

Without it, my current workaround is:
```yaml
header-includes:
- \titlegraphic{\includegraphics[height=1.5cm]{media/cdl23.pdf}}
```
Copy link
Collaborator

@tarleb tarleb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

The only possible issue is that we already have a lot of variables in the default template, and we try to be very conservative when it comes to adding more.

@jgm
Copy link
Owner

jgm commented Apr 30, 2024

Maybe it should be

[$for(titlegraphicsoptions)$it$$sep$,$endfor$]

or something like that (please test). That would allow one to use a list for titlegraphicsoptions, which I think is consistent with e.g. mainfontoptions, biblatexoptions, etc.
(and it would also work if titlegraphicsoptions was not a list)

nim65s added a commit to nim65s/pandoc that referenced this pull request May 2, 2024
@nim65s
Copy link
Contributor Author

nim65s commented May 2, 2024

I had to use standalone in the test to check the output for title graphic, but it seems too verbose now, and will probably fail if anything else unrelated change.

I did try pandoc -st beamer | grep titlegraphic, but grep is not available.

NB: Nix CI fail with unrelated error: Package ‘connection-0.3.1’ in /nix/store/2arfgnb82dbh6s3h9fv05rxpr4f6z930-source/pkgs/development/haskell-modules/hackage-packages.nix:72925 is marked as broken, refusing to evaluate.

@jgm jgm merged commit bd85292 into jgm:main May 2, 2024
9 of 12 checks passed
@jgm
Copy link
Owner

jgm commented May 2, 2024

thanks!

@nim65s nim65s deleted the titlegraphicoptions branch May 3, 2024 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants