Long section breaks formatting & gets cut off when compiling

mo
morgancrozier
Posts: 5
Joined: Sat Dec 30, 2017 12:06 am
Platform: Mac

Sat Dec 30, 2017 12:35 am Post

I'm running into a compiling error.

This is only happening on a particularly long section, which should just take up multiple pages.

Instead when I compile, this long section forces a page break, and also cuts off the end of the section's words.

When I shorten the section by deleting and try compiling again, everything works correctly.

Here is a video of the issue: https://youtu.be/oUeRMMPMIrI

Hopefully it's just user error with a simple solution.

Thanks in advance for any help, I've been banging my head against the wall trying to troubleshoot this for hours.

User avatar
Bridey
Posts: 390
Joined: Wed Nov 22, 2017 2:24 pm
Platform: Mac

Sat Dec 30, 2017 7:57 am Post

As tests...

1. Does 'Keyboard Maestro' (with all the text) compile cleanly if it is the only document compiled?

2. Does 'Keyboard Maestro' compile cleanly if you compile the whole project but leave out the screenshot page that follows 'Keyboard Maestro'?

3. Will the project compile okay to a different format, such as RTF or Word?

When you first compile and get the heading on one page and the text on another, we see down to section 4 in the PDF. What happens to section 5? Just disappears? Or is it on the next page after the screenshot?

mo
morgancrozier
Posts: 5
Joined: Sat Dec 30, 2017 12:06 am
Platform: Mac

Sun Dec 31, 2017 1:59 am Post

Bridey wrote:As tests...

1. Does 'Keyboard Maestro' (with all the text) compile cleanly if it is the only document compiled?

2. Does 'Keyboard Maestro' compile cleanly if you compile the whole project but leave out the screenshot page that follows 'Keyboard Maestro'?

3. Will the project compile okay to a different format, such as RTF or Word?

When you first compile and get the heading on one page and the text on another, we see down to section 4 in the PDF. What happens to section 5? Just disappears? Or is it on the next page after the screenshot?


1. No. If it is the only document selected, it still adds the pagebreak after the heading, and then the full text.

2. No. It still does the page break, even with the screenshot deleted.

3. Compiling to RTF seems fine for the most part, but the formatting doesn't look great in general.

Everything continues on as normal when compiling, it's just this one long page that's having the issue.

Thanks for helping troubleshoot this.

User avatar
Bridey
Posts: 390
Joined: Wed Nov 22, 2017 2:24 pm
Platform: Mac

Sun Dec 31, 2017 7:36 am Post

So it will compile with all the text and the right spacing after the heading to RTF (even if it looks less than lovely), but the break happens after the heading if you compile to PDF. Very curious.

The inspector on your video link suggests the project dates back a few years. I'm not at a Mac now, but there is a setting in, I think, Edit ... Text Tidying ... Zap Gremlins, which is supposed to zap any odd characters that might have crept into a document. It might be worth trying that (you can always backup the file before you use the command).

If you duplicate the project and then delete all the other files so that only the two KM files are left, do they compile okay to PDF?

If they do, add back in one of the files above and below the KM files and see if they break the compile. If they don't compile, would you be happy to share those two pages on the forum or by PM as a standalone project? Would be happy to see if I could get them to work, or perhaps another forum member could.

Alternatively, as the issue appears to be very specific, I imagine you might need to get in touch with tech support and ask them to look at the file for you. I tried to replicate the settings from your video, but I didn't run into the same problem.

mac.support@literatureandlatte.com

mo
morgancrozier
Posts: 5
Joined: Sat Dec 30, 2017 12:06 am
Platform: Mac

Sun Dec 31, 2017 5:12 pm Post

Thanks for all of your help so far.

1. Text Tidying - I've tried this, it didn't seem to affect anything.

2. I've actually just created an entirely new project and copy-pasted sections over. I am still encountering the error on the long section, where it adds a page break and then cuts off the end.

Old Project: https://drive.google.com/open?id=1bDTFL3jHN188ve4EqOSYuKjzdq9uPYOe
Old Render: https://drive.google.com/open?id=1DUZM0KuXn5RXAyOo3dfR45NOPh26XTO9

New Project: https://drive.google.com/open?id=1Vqn91dqNd_lBhVSlAnTyxR32byrmLEL-
New Render:https://drive.google.com/open?id=1s70LWGhFuIcwq5uKAXQa7egmF50TZqLp

They both have the same error.

I don't know what's going on here, but it's driving me crazy! I was really hoping to have this PDF published for the new year.

Also forwarded to support.

br
brookter
Posts: 1684
Joined: Wed Mar 18, 2009 12:22 pm
Platform: Mac

Sun Dec 31, 2017 6:28 pm Post

Morgan*,

Those files aren't Scrivener projects so we can't open them. (In fact they're just one of the xml files within the projects -- behind the scenes Project.scriv files are actually folders (bundles) containing hundreds of separate files. We need to see the entire project.)

The best way for us to look at them is to zip the .scriv files up in the Finder (right click on the project and 'Compress' them), then attach them to a post here. To do that click on the three lines next to the Options button below and choose Attachments, then Add Files.

HTH.

* Apologies if I've got the name wrong!

User avatar
Bridey
Posts: 390
Joined: Wed Nov 22, 2017 2:24 pm
Platform: Mac

Sun Dec 31, 2017 6:48 pm Post

Agree with brookter. But ripping the PDFs shows odd characters at the foot of the KM page.

Are they in the project or just the PDF? If in the project, can they be deleted?

Old.jpg
Old.jpg (91.85 KiB) Viewed 585 times


New.jpg
New.jpg (122.51 KiB) Viewed 585 times

mo
morgancrozier
Posts: 5
Joined: Sat Dec 30, 2017 12:06 am
Platform: Mac

Sun Dec 31, 2017 7:00 pm Post

brookter wrote:Morgan*,

Those files aren't Scrivener projects so we can't open them. (In fact they're just one of the xml files within the projects -- behind the scenes Project.scriv files are actually folders (bundles) containing hundreds of separate files. We need to see the entire project.)

The best way for us to look at them is to zip the .scriv files up in the Finder (right click on the project and 'Compress' them), then attach them to a post here. To do that click on the three lines next to the Options button below and choose Attachments, then Add Files.

HTH.

* Apologies if I've got the name wrong!


Whoops, thanks for this! I'm usually very tech savvy, but I'm feeling like a total noob here. Quite a learning curve.

I really appreciate the help, as the official support channel is on vacation.

Attached the new files.

Tech Tricks - new.zip
(73.19 KiB) Downloaded 16 times

Tech Tricks That Make My Life Easier - old.zip
(396.48 KiB) Downloaded 19 times

User avatar
Bridey
Posts: 390
Joined: Wed Nov 22, 2017 2:24 pm
Platform: Mac

Sun Dec 31, 2017 7:22 pm Post

The text is in a table. Right click the page and choose "Remove Table" (which removes the table but leaves the text in place). It then compiles okay.

Remove Table.jpg
Remove Table.jpg (209.68 KiB) Viewed 575 times


Tech Tricks - new-1.pdf
(68.62 KiB) Downloaded 45 times

br
brookter
Posts: 1684
Joined: Wed Mar 18, 2009 12:22 pm
Platform: Mac

Sun Dec 31, 2017 7:26 pm Post

Solved it, I think.

All your documents are actually in tables (the borders are invisible, which is why it's not obvious. To see this, go to the Keyboard Maestro document and make sure View > Text Editing > Show Invisibles is ticked. You'll see a blue border round the entire text. That's why compile is having problems -- it's trying to fit one long cell on a page and it can't.
Screenshot 2017-12-31 19.22.05.png
Screenshot 2017-12-31 19.22.05.png (306.26 KiB) Viewed 573 times


To remove, just click inside the blue border and right-click > table > remove table.

Screenshot 2017-12-31 19.24.14.png
Screenshot 2017-12-31 19.24.14.png (422.03 KiB) Viewed 573 times


The table will disappear. You've got all the other documents was tables as well, so do it for them all, then compile. This is what I get...

Screenshot 2017-12-31 19.26.23.png
Screenshot 2017-12-31 19.26.23.png (217.87 KiB) Viewed 573 times


HTH!

mo
morgancrozier
Posts: 5
Joined: Sat Dec 30, 2017 12:06 am
Platform: Mac

Sun Dec 31, 2017 7:43 pm Post

Amazing! That was indeed the issue. I wonder where those stray tables came from...

Thank you both so much!

User avatar
Bridey
Posts: 390
Joined: Wed Nov 22, 2017 2:24 pm
Platform: Mac

Sun Dec 31, 2017 7:50 pm Post

Welcome.

Happy New Year.