Skip to content

Commit 90df8c8

Browse files
committed
Move latex to book specific output directory
1 parent 9dcbead commit 90df8c8

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

src/format/pdf/format-pdf.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,18 @@ export function latexFormat(displayName: string): Format {
8383
return createFormat(
8484
displayName,
8585
"tex",
86-
createPdfFormat(displayName),
86+
mergeConfigs(
87+
createPdfFormat(displayName),
88+
{
89+
extensions: {
90+
book: {
91+
formatOutputDirectory: () => {
92+
return "book-latex";
93+
},
94+
},
95+
},
96+
},
97+
),
8798
);
8899
}
89100

@@ -265,7 +276,7 @@ function createPdfFormat(
265276
}
266277

267278
const pdfBookExtension: BookExtension = {
268-
formatOutputDirectory: () => {
279+
formatOutputDirectory: () => {
269280
return "book-pdf";
270281
},
271282

0 commit comments

Comments
 (0)