Adds export configuration modal sections
Adds sections to the export configuration modal for behavior, page setup, and typography. These sections allow users to configure export behavior like opening the PDF after export and preserving folder structure, as well as page setup options like page size, orientation, and margins. Additionally, typography options for font selection and size configuration are included. Updates default settings for export format and adds default values for new settings. Removes the old TypographySection file.
This commit is contained in:
6 files changed
+417
-107
No files matched your search
+26
-1
@@ -31,6 +31,21 @@ export interface obsidianTypstPDFExportSettings {
|
||||
template: string;
|
||||
/** Default export format */
|
||||
format: ExportFormat;
|
||||
/** Default page size */
|
||||
pageSize: string;
|
||||
/** Default page orientation */
|
||||
orientation: 'portrait' | 'landscape';
|
||||
/** Default margins */
|
||||
marginTop: string;
|
||||
marginBottom: string;
|
||||
marginLeft: string;
|
||||
marginRight: string;
|
||||
/** Default fonts */
|
||||
bodyFont: string;
|
||||
headingFont: string;
|
||||
monospaceFont: string;
|
||||
/** Default body font size */
|
||||
bodyFontSize: string;
|
||||
};
|
||||
|
||||
/** Typography settings */
|
||||
@@ -89,7 +104,17 @@ export const DEFAULT_SETTINGS: obsidianTypstPDFExportSettings = {
|
||||
|
||||
exportDefaults: {
|
||||
template: 'default',
|
||||
format: ExportFormat.Standard
|
||||
format: ExportFormat.Standard,
|
||||
pageSize: 'a4',
|
||||
orientation: 'portrait',
|
||||
marginTop: '1in',
|
||||
marginBottom: '0.8in',
|
||||
marginLeft: '1in',
|
||||
marginRight: '0.6in',
|
||||
bodyFont: 'Concourse OT',
|
||||
headingFont: 'Concourse OT',
|
||||
monospaceFont: 'Source Code Pro',
|
||||
bodyFontSize: '11pt'
|
||||
},
|
||||
|
||||
typography: {
|
||||
|
||||
Reference in new issue
Block a user