mirror of
https://github.com/mii443/obsidian-typst.git
synced 2025-08-22 16:15:34 +00:00
Fix typo; preamable vs preamble (#18)
This commit is contained in:
@ -19,10 +19,10 @@ From what I've experimented with, normal math blocks are okay with Typst but Typ
|
||||
|
||||
For styling and using imports with math blocks see the next section.
|
||||
|
||||
## Preamables
|
||||
Need to style your `typst` code the same way everytime and don't to write it out each time? Or using math blocks and need a way to import things? Use PREAMABLES!
|
||||
## Preambles
|
||||
Need to style your `typst` code the same way everytime and don't to write it out each time? Or using math blocks and need a way to import things? Use PREAMBLES!
|
||||
|
||||
Preamables are prepended to your `typst` code before compiling. There are three different types in settings:
|
||||
Preambles are prepended to your `typst` code before compiling. There are three different types in settings:
|
||||
- `shared`: Prepended to all `typst` code.
|
||||
- `math`: Prepended to `typst` code only in math blocks.
|
||||
- `code`: Prepended to `typst` code only in code blocks.
|
||||
|
6
main.ts
6
main.ts
@ -337,13 +337,13 @@ class TypstSettingTab extends PluginSettingTab {
|
||||
});
|
||||
|
||||
new Setting(containerEl)
|
||||
.setName("Shared Preamable")
|
||||
.setName("Shared Preamble")
|
||||
.addTextArea((c) => c.setValue(this.plugin.settings.preamable.shared).onChange(async (value) => { this.plugin.settings.preamable.shared = value; await this.plugin.saveSettings() }))
|
||||
new Setting(containerEl)
|
||||
.setName("Code Block Preamable")
|
||||
.setName("Code Block Preamble")
|
||||
.addTextArea((c) => c.setValue(this.plugin.settings.preamable.code).onChange(async (value) => { this.plugin.settings.preamable.code = value; await this.plugin.saveSettings() }))
|
||||
new Setting(containerEl)
|
||||
.setName("Math Block Preamable")
|
||||
.setName("Math Block Preamble")
|
||||
.addTextArea((c) => c.setValue(this.plugin.settings.preamable.math).onChange(async (value) => { this.plugin.settings.preamable.math = value; await this.plugin.saveSettings() }))
|
||||
|
||||
//Font family settings
|
||||
|
Reference in New Issue
Block a user