Closed universvm closed 1 year ago
The list of optional templates can be configured in the settings interface. Then, in the export interface, if it is judged that there is a template list, it will drop down to let the user select a template.
I've migrated UI code to solidjs #68
Now, it is more easy to understand than before.
Hey there, thank you for this, you're awesome!
Small comment, I'd change "Edit Command Template" --> "Edit Pandoc Command". So that we can create a section called "Choose Latex Template". I can change it if you want :)
If you're good with it, I will spend some time creating some latex templates like:
Can you think of any others you think could be useful?
"Edit Command Template" --> "Edit Pandoc Command"
. This plugin is not only support pandoc commands, so there is a command type: 'pandoc' | 'custom'.PDF
?Edit Command
then? From Wikipedia: The term template, when used in the context of word processing software, refers to a sample document that has already some details in place
What's this meaning of From Wikipedia: The term template, when used in the context of word processing software, refers to a sample document that has already some details in place
?
I don't understand.
It seems not all the export formats, eg: markdown.
This is an example of a PDF using Obsidian Enhancing Export and Latex Templates: https://miro.medium.com/v2/resize:fit:1400/format:webp/1*b3TJ4anKjyokTPCjOvp5Iw.png
See section 4: https://betterhumans.pub/obsidian-tutorial-for-academic-writing-87b038060522
We can automate this by having built in latex templates. I can help with this
choose
a list of latex template in the disk, not edit
, do you think? Eg: update the tempate
to
{
name: 'PDF',
type: 'pandoc',
arguments:
'-f markdown --resource-path="${currentDir}" --resource-path="${attachmentFolderPath}" --lua-filter="${luaDir}/pdf.lua" --embed-resources --standalone --metadata title="${currentFileName}" -s -o "${outputPath}" -t pdf',
customArguments: '--pdf-engine=typst',
latexTemplates: [
"latextemplateNameA": "latexTemplatePathA",
"latextemplateNameB": "latexTemplatePathB",
],
extension: '.pdf',
}
Then:
Thank you very much if you can help implement this function. Feel free to ask me any questions about this.
Yeah I ideally wanted to keep a folder with some latex templates. We can either:
what do you think is better?
Thanks for the suggestions! I will try to implement the basic logic and send it to you for review sometime soon.
I think both are ok 😊. looking forward to your PR.
I've added CONTRIBUTING document.But my English is not good😂, and writing is relatively simple.
Thank you!
@mokeyish I am almost done with the code but I encounter this error after following your guide:
failed to load config from /Users/leo/Documents/code/obsidian-enhancing-export/vite.config.ts error during build: Error: ENOENT: no such file or directory, lstat 'dist'
Any chance you know what may be happening? I followed this guide: https://github.com/mokeyish/obsidian-enhancing-export/blob/main/CONTRIBUTING.md
Let me know if you're able to test. Also have a look at the current state of the changes: https://github.com/mokeyish/obsidian-enhancing-export/pull/80
@mokeyish I am almost done with the code but I encounter this error after following your guide:
failed to load config from /Users/leo/Documents/code/obsidian-enhancing-export/vite.config.ts error during build: Error: ENOENT: no such file or directory, lstat 'dist'
Any chance you know what may be happening? I followed this guide: https://github.com/mokeyish/obsidian-enhancing-export/blob/main/CONTRIBUTING.md
Let me know if you're able to test. Also have a look at the current state of the changes: #80
Please comment these lines temporary(I never develop on MACOS, it maybe some bug).
Hi there,
I use this plugin with templates like Eisvogel https://github.com/Wandmalfarbe/pandoc-latex-template/tree/master
I was thinking that some of these templates could be integrated as part of the plugin. What are your thoughts? I'm not sure how the user could interact with these in terms of UI. In terms of functionality I think we can modify the pandoc code.
Alternatively the user could specify their own templates and add them to a folder.
Let me know what you think