universvm / obsidian-pandoc-templates

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

Neurips template is not working #6

Closed brunoleej closed 1 week ago

brunoleej commented 2 months ago

Hello, I’m trying to use the NeurIPS templates, but I have some issues.

  1. The guideline indicates that I should put the YAML template at the top of my article. I tried to follow the steps as shown in the figure below, but it is not working at all.

Screenshot 2024-09-05 at 2 47 09 AM

The result is like this: Test.pdf

How can I fix this issue?

Here's my "Extra arguments" for now: --csl https://raw.githubusercontent.com/csthiago/zotero-citation-styles/master/ieee.csl --pdf-engine=/Library/TeX/texbin/pdflatex --filter pandoc-crossref --number-sections --citeproc -M reference-section-title=References

universvm commented 2 months ago

Could you attach your md file? I suspect there is a space/newline as the first character which is interfering with the identification of the YAML part

brunoleej commented 2 months ago

Thank you for your help. Here's my markdown file. Test.md

universvm commented 2 months ago

Yup. This is your problem (at the top of your file)

---

---
---

Try the file I've attached Test.md

I wonder why this happened though, could you let me know if this happens if you create a new file from scratch? Maybe it's something to do with your obsidian setup

brunoleej commented 2 months ago

As you suggested, removing the spaces solved the problem. However, the spaces are not visible on my Obsidian screen. In such cases, should I directly use properties to edit YAML format in Obsidian? I created the YAML using text style.

universvm commented 2 months ago

https://github.com/user-attachments/assets/43bd33cf-42cd-41e0-b72d-e727325fccc2

I'm not too sure, this is what happens when I copy and paste the YAML above. It's automatically parsed as property. It does not seem to be doing this in your setup?

brunoleej commented 2 months ago

First of all, thank you very much for providing a solution! When I tried the method, the results were as shown in the video below.

https://github.com/user-attachments/assets/3918062c-3f3c-449f-882c-1a48f080c66a

brunoleej commented 2 months ago

I created a new Markdown file and pasted the content you mentioned, and it solved the problem! However, it seems that the author information is not being updated. Could you also provide a solution for this issue?

https://github.com/user-attachments/assets/ffd4a7e8-11bd-4840-9811-e422820acb63

universvm commented 2 months ago

@brunoleej sorry I just saw this. Could you try to edit in source mode?