Skip to content

Commit 84f9c60

Browse files
claude: Exclude document-metadata partial from beamer format
Beamer's template doesn't include the document-metadata partial, so it should not be included in beamer's template context. This fixes a "file not found" error introduced when document-metadata.latex was added for pdf-standard support. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 91cce14 commit 84f9c60

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎src/format/pdf/format-pdf.ts‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,16 @@ function createPdfFormat(
281281
],
282282
};
283283
};
284+
// Beamer doesn't use document-metadata partial (its template doesn't include it)
285+
const beamerPartialNamesPandoc = partialNamesPandoc.filter(
286+
(name) => name !== "document-metadata",
287+
);
284288
extras.templateContext = createTemplateContext(
285289
displayName === "Beamer" ? "beamer" : "pdf",
286290
partialNamesQuarto,
287-
partialNamesPandoc,
291+
displayName === "Beamer"
292+
? beamerPartialNamesPandoc
293+
: partialNamesPandoc,
288294
);
289295

290296
// Don't shift the headings if we see any H1s (we can't shift up any longer)

0 commit comments

Comments
 (0)