wikiti / pandoc-book-template

A simple Pandoc template to build documents and ebooks.
MIT License
398 stars 89 forks source link

Skipping Some Files #5

Closed ghost closed 5 years ago

ghost commented 5 years ago

Is there a reason that this script would skip a few of my chapter files? I'm not sure why. I made sure they all use conforming file names and the # Titles are done properly. Perhaps it is something with Pandoc itself?

wikiti commented 5 years ago

Hi @poetgrant!

Thank you for using this template.

Could you please share your file directory tree, or provide a simple guide on how to replicate the problem?

Best regards, Daniel

ghost commented 5 years ago

When I get back to my computer I can share my directory tree. Until then I'll explain.

When I run 'make' it does its thing and the output epub is missing 2 of the chapters. So I ran make with debugging and it doesn't actually look like it's skipping any of the files. If there were a way to get a more verbose output I might be able to figure it out.

After I posted this issue, I tried running pandoc without the Makefile and it still skipped some of the files in the epub build.

Would there be a reason that you know that pandoc is only including 11 of the 13 files in the epub?

wikiti commented 5 years ago

Hi again, @poetgrant

Would there be a reason that you know that pandoc is only including 11 of the 13 files in the epub?

I would need to know the file directory tree and the file contents to see why pandoc is skipping your files.

ghost commented 5 years ago

Okay, here it is. Screenshot from 2019-06-13 07-02-27

wikiti commented 5 years ago

@poetgrant Which files are being skipped?

ghost commented 5 years ago

03 and 04 are being skipped and it builds into this:

Screenshot from 2019-06-13 09-19-20

wikiti commented 5 years ago

@poetgrant

What about the contents of those files? Do they have something unsual, like garbage non-printable characters at the beginning of the file, or invalid markdown syntax?

Could you share them or a portion of them, to see if I can replicate and locate the error?

Does this problem also happen when exporting to other formats, like html or pdf?

ghost commented 5 years ago

Oh! Let me try exporting to PDF and HTML... I don't know why I didn't try that. I'll also zip the files and send it to you. Thank you. Give me a minute.

Oh and thank you for your quick responses!

ghost commented 5 years ago

I sent an email to the one listed on your profile.

HTML and PDF skip those files too. There are some special UTF-8 characters, but they are in almost all of the files. They render fine in the other chapters.

(BTW, now you have a special advanced super rough draft of the book I am writing. hehehe)

wikiti commented 5 years ago

Hi @poetgrant,

Those files were actually included on your build, but not as titles, and therefore, not on the index.

If you search for # The Troll title, you'll see that it's on the same line as the last paragraph of the previous chapter.

Your chapters/02-The-Fari-Snake.md and chapters/03-The-Troll.md files do not have ending newlines.

Here's a better explanation on this problem: https://github.com/jgm/pandoc/issues/2494#issuecomment-153431356

After adding newlines at the end to those files, the problem seems solved.

Since this is not related to this repository, I'll close this issue.

Feel free to ask more questions!

(BTW, now you have a special advanced super rough draft of the book I am writing. hehehe)

Fear not, I've already posted it on Wattpad I won't read, and it has been already remove from my desktop 😄

ghost commented 5 years ago

Omg! I can't believe it was something that simple.... Thank you! I'm sorry for my silliness. Consider the advance of my first 13 chapters as payment? :D Thank you again for everything! You have solved an issue that has been bugging me for over a week.

On Thu, Jun 13, 2019 at 11:49 AM, Wikiti notifications@github.com wrote:

Hi @poetgrant,

Those files were actually included on your build, but not as titles, and therefore, not on the index.

If you search for # The Troll title, you'll see that it's on the same line as the last paragraph of the previous chapter.

Your chapters/02-The-Fari-Snake.md and chapters/03-The-Troll.md files do not have ending newlines.

Here's a better explanation on this problem: jgm/pandoc#2494 (comment)

After adding newlines at the end to those files, the problem seems solved.

Since this is not related to this repository, I'll close this issue.

Feel free to ask more questions!

(BTW, now you have a special advanced super rough draft of the book I am writing. hehehe)

Fear not, I've already posted it on Wattpad I won't read, and it has been already remove from my desktop 😄

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.