universvm / obsidian-pandoc-templates

A repository for pandoc templates. Geared for Obsidian.
Other
90 stars 2 forks source link

Added Book template #4

Open WinnerWind opened 10 months ago

WinnerWind commented 10 months ago

Added Book template

Book

A simple minimalist plug and play book template for Obsidian. Works out of the box without any YAML

universvm commented 10 months ago

Hi @WinnerWind ,

Thanks for your contribution. I'd be very happy to include it, however could you do some modifications?

Have a look at: https://github.com/universvm/obsidian-pandoc-templates/tree/main/dissertation for a template on the README. Try to follow the way it is laid out (with the same titles). I'd like to keep templates more concise with about 1 sentence description.

Also could you add support for citations? It would simplify the workflow for people wanting to use your template in a professional environment. Have a look at how natbib is imported here: https://github.com/universvm/obsidian-pandoc-templates/blob/main/dissertation/dissertation.tex

Btw, the addition of citation support does not affect your ability to use the template without YAML input.

WinnerWind commented 10 months ago

Hi there! I felt that the Readme of the dissertation was too short, so I made my own, but at your request, I'll make it a simple one sentence. Though, this is a template made to emulate real books (which often don't have citations) I'll try to add citations. I'll let you know if I succeed. Do give me some time. Thanks!

universvm commented 10 months ago

Take your time and thank you!

WinnerWind commented 10 months ago

I am very sorry to ask, but I checked out how dissertation.tex does it, and I think that I have got it to work. How exactly do I test it? I read the Overleaf article, but it is not very useful for testing it in Obsidian.

universvm commented 10 months ago

Hi there,

Perhaps it'd help if you setup a bib file and cite in the file. If integrated correctly there should be citations at the end of the document.

This might be a bit long but you can follow the tutorial here: https://betterhumans.pub/obsidian-tutorial-for-academic-writing-87b038060522

WinnerWind commented 10 months ago

Thank you so much! I'm looking into it now.

WinnerWind commented 10 months ago

Hi there! Just an update : I wasn't able to figure out how to do the citations. I'm still working on it.

WinnerWind commented 10 months ago

Hi there! I think that I have got it to work. I have included both the book without citations template, and the book with citations template. Please do check them out and let me know if they work for you. Book with citations may still be broken, as honestly I am not sure how to get it to work. It seems to export fine on my setup though. Thanks!

universvm commented 10 months ago

Hi @WinnerWind thanks for all the work, it looks great!

One small thing I'd suggest is to use one template only and add an if condition. if the user passes a bib file, then do citations. ChatGPT should be able to help you out with this. Also it seems like you include the bib file in the template but the example png/pdf does not contain any citations. Would it be possible to only include an example with citations?

Thanks in advance for this!

WinnerWind commented 10 months ago

Sure thing. I'll try to do this. Give me some time. I might take a little longer than usual because I'll be holidaying sometime after the 19th, so there's a lot of other stuff in my life.

universvm commented 10 months ago

Hi @WinnerWind , no worries at all, take your time and thanks again for the contribution!

WinnerWind commented 10 months ago

Hi there! I am so sorry but after two weeks of trying and a lot of headaches later, I was not able to add citations. I am really sorry that this is the case. I don't know how to add it, even though I have analyzed every inch of dissertation.tex. I'm still pretty new to LATEX. I hope that one day I can add it, but I have to throw in the towel for now.

universvm commented 10 months ago

@WinnerWind don't worry about it, I will continue your work whenever I have more time. Thanks for everything you've done so far!

WinnerWind commented 10 months ago

Sure thing! I'm still trying to do it, and I'll keep you posted if I make any new developments. Feel free to modify the code however you like and make it yours :)

WinnerWind commented 5 months ago

Hi there! I'm going to give this one another shot. No gaurentees though.

universvm commented 5 months ago

Thanks @WinnerWind !