Skip to content

Conversation

@tarleb
Copy link
Collaborator

@tarleb tarleb commented Oct 11, 2025

The latex.before-metadata value allows to add content before the
metadata in the margin column. This is helpful as an escape hatch, e.g.,
when the sidebar needs to be modified to prevent it from overflowing the
page.

E.g.:

latex:
  before-sidebar: '\vspace{-3cm}'

@tarleb tarleb force-pushed the latex-before-metadata branch from 1b38082 to b2b3b71 Compare October 11, 2025 18:54
That version is still supported.
The `latex.before-metadata` value allows to add content before the
metadata in the margin column. This is helpful as an escape hatch, e.g.,
when the sidebar needs to be modified to prevent it from overflowing the
page.

E.g.:

    latex:
      before-sidebar: '\vspace{-3cm}'
@tarleb tarleb force-pushed the latex-before-metadata branch from b2b3b71 to 98ee55b Compare October 11, 2025 19:02
@warrickball
Copy link

This works for me locally. Should we add a small block to the example to make sure the feature gets tested? Maybe something that adds a line like "latex.before-sidebar is working" to the PDF?

@tarleb
Copy link
Collaborator Author

tarleb commented Oct 11, 2025

👍 I've added a minimal test to catch regressions, but the inserted snippet only shows up in the LaTeX sources for now.

@tarleb tarleb merged commit d19817a into main Oct 11, 2025
4 checks passed
@tarleb tarleb deleted the latex-before-metadata branch October 11, 2025 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants