iandol / scrivomatic

A writing workflow using Scrivener's style system + Pandoc for output…
https://iandol.github.io/scrivomatic/
GNU General Public License v3.0
297 stars 30 forks source link

scrivomatic / pandocomatic problems after upgrade #26

Closed htvogler closed 5 years ago

htvogler commented 5 years ago

Hi everyone. I have the following problem.

After upgrading to pandocomatic 0.2.5.0 my documents are not converted anymore. I followed all the general instructions here and the instructions to install ruby 2.6.2 via rbenv here. I migrated my pandoc data folder from ~/.pandoc to ~/.local/share/pandoc. Although all components seem to be in the right place my scrivener documents are not converted anymore. It seems that pandocomatic doesn't take the input.

Screenshot 2019-04-09 at 17 15 08

Interestingly, the Workflow.scriv works without any problems.

Screenshot 2019-04-09 at 17 16 34

Does anyone have an idea what I'm missing here? Thanks for any kind of help!

htvogler commented 5 years ago

Okay, I figured it out. For whatever reason, Scrivener populated the metadata in the Compile dialog with the "Title" and "Author" fields.

Screenshot 2019-04-10 at 09 24 38

This led to an additional block of metadata in the .mmd file that is initially produced by Scrivener.

Screenshot 2019-04-10 at 09 25 28

Once the Scrivener metadata are deleted, everything works as expected.

htdebeer commented 5 years ago

Your example should have worked; having two metadata blocks in one file should not matter for pandocomatic to recognize the pandocomatic_ property regardless if that property is in the first or second YAML metadata block.

I will investigate this from my end; I have created an issue for it.

htdebeer commented 5 years ago

I found the issue in pandocomatic and fixed it. If you install pandocomatic 0.2.5.1 and try your original scenario again, does it work as expected?

iandol commented 5 years ago

Wow, very fast fix, thanks Huub!

htvogler commented 5 years ago

Yes, works perfectly now! Thank you very much for the quick fix, Huub. Also huge thanks to you, Ian. The scrivomatic/pandocomatic workflow saves me a lot of time!