Zettlr doesn't use the given template in the Project Settings - is just taking the default template.
Make a new directory ~/letters
Make a new directory ~/template
place mytemplate.tex to ~/template
start zettlr and make ~/letters a project; set the template to mytemplate.tex
(i have a letter template with address etc.)
PDF-Export
The above works well on the commandline with pandoc ... --template="mytemplate.tex" . So should zettlr do.
Furthermore there might be some additional settings for using templates without the full project behaviour
Debian testing
Thanks so much for opening up your first issue here on the repository! 🎉 We would like to warmly welcome you to the community behind the app! ☺️ We'll check in soon and have a look at your issue. In the meantime, you can check your issue and make sure it aligns with our contribution guidelines! Here's the comprehensive list:
An enhancement takes a feature and improves or alters its behaviour. Please make sure to argue how your proposition will aid non-technical text workers, and why it can't be emulated easily with other features or apps!
Feature requests introduce whole new features into the app. This requires a lot of work, so these might be turned down if the implementation costs supersede the benefits we expect to see from implementing it. Please do not be disappointed if that happens. It likely has nothing to do with your great request but simply with us and our missing resources!
You can of course always ask someone to implement this feature, because a PR with a working new feature has much higher chances of being merged! :)
Please note that one of the main reasons for why bug reports cannot be addressed is that there's not enough information for us to find and fix the bug you describe, so make sure you try to pinpoint the bug as close as possible.
The ideal bug report for us has two qualities:
Please note that if you encounter behaviour that does not align with your expectations of what would happen, this might as well be simply intended behaviour and we need to simply _clarify_ why the behaviour is the way it is. This is not to be considered a bug and such issues may be closed! Suggest an enhancement instead!
But now, have a great day and thank you again!
There are currently some issues with exporting to pdf files in Zettlr 1.7.2 (see #1113).
I would recommend downgrading to Zettlr 1.7.1 to see if this issue still persists.
Yes, I think it's related
I fiddled with the exporter and forgot to check the project exporting. I'm feeling a little bit sick this week, but I know where the bug is and I'll be fixing this soon!
Get well soon @nathanlesage!
Soo, someone found a fix for the other problem, but concerning this thingy, I'll need to verify this before closing this!
Has been fixed indeed! 🥳
1.7.4 Bug still exists --> Tex Template specified for the Project is not used, instead of it Zettr uses the one defined in global settings. If i set the global Template to my specific, everything works as expected, but not so usefull
I cannot reproduce this locally, as for me, when I set a specific LaTeX template on the project settings, it is indeed using that one, and not the global one. Do you use the absolute path to the template? Otherwise it won't work because Zettlr will fallback to the global template if the file cannot be found, and no path-normalization is being done.
I set the template via the project settings page - the chosen path ist absolute by default and was not altered by any means.
besides that i would like to have relative paths in such settings.
Additionally i found that zettlr does not respect the project setting itself. If i delete the project from the directory, it shows up again after the next start. I have to delete .ztr-directory manually.
This is the content of the file:
{"sorting":"name-up","project":{"title":"Briefe","format":"pdf","cslStyle":"","pdf":{"author":"Generated by Zettlr","keywords":"","papertype":"a4paper","pagenumbering":"arabic","tmargin":3,"rmargin":3,"bmargin":3,"lmargin":3,"margin_unit":"cm","lineheight":1.2,"mainfont":"Times New Roman","sansfont":"Arial","fontsize":12,"toc":true,"tocDepth":2,"titlepage":true,"textpl":"/home/user/privat/Vorlagen/cfbrief.tex"}},"icon":null}
Deleting does not affect the Bug.
This sounds more like an issue with file synchronisation than with the template itself – are you sure Zettlr doesn't use the template?
Would you mind opening the logs after export and paste the full Pandoc command that ran? This would help!
The template in the project setting is for writing a DIN letter.
The Zettlr-Template makes nearly plain pages.
pandoc "/tmp/export.tmp" -f markdown -F pandoc-mermaid -t latex --template="/tmp/template.latex" --pdf-engine=xelatex --mathjax -o "/tmp/muster.pdf"
Most helpful comment
Yes, I think it's related
I fiddled with the exporter and forgot to check the project exporting. I'm feeling a little bit sick this week, but I know where the bug is and I'll be fixing this soon!