Using the Compiler

User avatar
Marilynx
Posts: 180
Joined: Mon Oct 31, 2011 10:26 pm
Platform: Windows

Wed Dec 24, 2014 7:26 pm Post

MimeticMouton wrote:Import and Split divides the document at the custom separator and uses the initial text of each document as the title. If you want to make sure the documents when imported use the same title as in your project, compile with the "Title" checkbox ticked for both folders and documents. That will mean the title is also added to the document when imported, but it may be a nicer solution for you than having the other text as the title. Worth experimenting at any rate.


Ah, okay. Adding the title to the document isn't a problem. In fact, I was thinking of doing that anyway, in order to have the title show up in the first line.

Import and Split won't preserve any kind of hierarchy or a folder vs. file distinction; once you compile, remember, it's just a flat text document, and on import it's just chunking that document into multiple. But if you've got everything titled the way you want it, it shouldn't be difficult for your collaborator to select all the "Type" documents and then right-click and choose "Convert to Folder". Then she can select the documents between each set of folders and use the Ctrl+RightArrow shortcut to move them inside the folder as subdocuments.


Ah. That makes sense. I thought that by putting the correct separators in, it would automagickally recreate the hierarchy's structure when importing and splitting. No big deal to do as you suggest. And as long as I write out step-by-step directions for my collaborator, it will be fine.

The problem was my not understanding clearly what Scrivener was doing when. Ya can't explain it to someone else if you don't understand it yourself.


I've attached a basic compile preset you can try, if you want to give it a look. Just download the zipped file, then double-click to open it and drag the "DocsToSplit" file to your Desktop. In Scrivener's compile settings, choose "Load Preset" and "Import" and browse to that file and choose "Open". Select the newly imported preset in the list and click OK to set it as the current preset (and also make it available in other projects). It leaves your editor formatting, but you may want to adjust the formatting for the titles to match whatever font you use; it's just Courier New at the moment.


Thank you very much! Yes, I'll want to switch Courier New to good old Times Roman 12. I'll test this out after I get the cheesecake in the refrigerator.
-- Marilynx

User avatar
Marilynx
Posts: 180
Joined: Mon Oct 31, 2011 10:26 pm
Platform: Windows

Wed Dec 24, 2014 11:29 pm Post

OK... on to the next Compiler question.

I need the chapters to come out looking like the following clip:

ScrivenerChapterLayout_2014-12-26A.JPG
ScrivenerChapterLayout_2014-12-26A.JPG (47.5 KiB) Viewed 1947 times


Scrivener will take care of adding "Chapter" and the Chapter Number after it in the compile.

I know that Scrivener will take care of formatting the actual text, starting in this case with "As much as Quentin MacCullough."

It's the part in between that I am not sure about.

Since it's pretty highly formatted, and will change from Chapter to Chapter, I'm guessing that the best way to set this up in Scrivener is to have a document with something to tell me what it is -- in this case, Quentin's Arrival, and then have two sub documents under it, one with the Chapter Header, and the other with the Chapter Text.

Hmm, I have some more clips, but the software says, "Not so many in one message!"

ScrivenerChapterLayout_2014-12-24B.JPG
ScrivenerChapterLayout_2014-12-24B.JPG (11.26 KiB) Viewed 1972 times


I know I'm going to want to do this as a Preset once it's tweaked into place.

So then when I go to Compile the whole thing, I need to begin by setting it up thus:

ScrivenerChapterLayout_2014-12-24C.JPG
ScrivenerChapterLayout_2014-12-24C.JPG (63.34 KiB) Viewed 1972 times


And then I proceed through the selections, I think, thus:

(to be continued... too many clips....)
-- Marilynx

User avatar
Marilynx
Posts: 180
Joined: Mon Oct 31, 2011 10:26 pm
Platform: Windows

Fri Dec 26, 2014 9:33 pm Post

Continued from previous message. Trying to show what I have so far, and the fact that I cannot figgure out how to set these up to achieve the layout in the replaced example. (Note, "99-2A" is not a useable Chapter number. It's just one I used in Word to denote a piece I've written, but which does not yet fit into the story line. One reason for diving headfirst into Scrivener because of the ease of reorganizing sequences. I'm a chunk writer, rather than a linear one.)

ScrivenerChapterLayout_2014-12-24D.JPG
ScrivenerChapterLayout_2014-12-24D.JPG (81.95 KiB) Viewed 1947 times


ScrivenerChapterLayout_2014-12-24E.JPG
ScrivenerChapterLayout_2014-12-24E.JPG (82.43 KiB) Viewed 1947 times


ScrivenerChapterLayout_2014-12-24D.JPG
ScrivenerChapterLayout_2014-12-24D.JPG (81.95 KiB) Viewed 1947 times


ScrivenerChapterLayout_2014-12-24F.JPG
ScrivenerChapterLayout_2014-12-24F.JPG (74.17 KiB) Viewed 1947 times
-- Marilynx

User avatar
Marilynx
Posts: 180
Joined: Mon Oct 31, 2011 10:26 pm
Platform: Windows

Tue Jan 06, 2015 6:50 pm Post

Still tinkering.... hopefull picking up where we left off before the holidays!
-- Marilynx

User avatar
MimeticMouton
Posts: 9006
Joined: Wed May 05, 2010 5:39 am
Platform: Mac + Windows
Location: city of rain
Contact:

Wed Jan 07, 2015 1:37 am Post

Marilynx wrote:Still tinkering.... hopefull picking up where we left off before the holidays!

Yep, thanks for your patience! I hope you and your cheesecake spent a pleasant holiday. :)

I think you're spot-on with your binder structure. There are a few ways to achieve the formatting you're after, but what you've got I think is the most straightforward. The only alteration I'd make there is to change the chapter container (called "Quentin's Arrival" in your screenshot) to a folder, and that only because it will give you a little more freedom with the separators and titles. You may not need that in your project, though, so I'll just explain my thoughts as I go through and you can see what suits you best.

So you've got a setup like this:

Chapter container - compiles the prefix only, e.g. "Chapter 1", formatted in the compiler
-- Chapter Header - compiles text only, formatted exactly in the editor and marked "as-is"
-- Chapter Text - compiles text and possibly title (in your example, you could make "Canada: Spring, 2152" the title), formatted in the compiler. If you compile only the text, the "Canada..." line will need to be formatted exactly in the editor and marked with "Preserve Formatting" so that you can maintain its unique indentation and spacing.

Using the title for the "Chapter text" document makes the most sense if all your chapters have a section title like this, since you'll be able to adjust the formatting easily in one place. If that alters per chapter, where some have it and some don't, you'll need to just include it in the document text and apply Preserve Formatting. If you change the formatting you'll have to adjust it on all the documents with this, but it will let you then have some chapter documents compile without a title.

If you do have a section title like "Canada..." for every chapter but have multiple "Text" documents per container and there should only be the one title, i.e. you've got

Chapter
-- Chapter Header
-- Chapter Text scene 1
-- Chapter Text scene 2

and so on, you can still compile the title easily by changing the structure so that the first chapter text document is a document group, with the remaining text documents as its children:

Chapter
-- Chapter Header
-- Chapter Text scene 1
---- Chapter Text scene 2

In compile formatting, you can then use the same formatting for both the document groups and the single documents, but you can include the title for only the document groups. In this case, you'll see it may be easier to have the "Chapter" container be a folder instead of a document group, although it will work either way as far as titles; if both are document groups, you'll need to just select the document group row in the compile formatting and click the "+" button to create a new level. Then you can set it up so that the Level 1 document group row has just the prefix, formatted however you want it, and your Level 2+ row has no prefix but the title and text included, formatted as you want.

Spacing is the other factor in this. For the "Chapter Header" documents, you'll just format that exactly in the editor, so you can apply the proper after-paragraph spacing for the first and last lines as well as the specific indentation and character formatting needed. For the "Canada..." type titles, either you will format that in compile by selecting the "Title" sample text and applying the needed after-paragraph spacing (choose "More..." from the bottom of the line spacing menu) or you'll format it exactly in the editor and use Preserve Formatting. You should use the "Single Return" separator between text documents in compile so that no extra spacing is added between your "Chapter Header" documents and the following text.

For the spacing between the "Chapter 1" title and the following chapter header text, you have two options. If you use a folder for the chapter container, you can set the Folder/Text separator to "Empty Line". This will use the point size of the "Chapter" prefix, so if that seems too large for you, you can instead use the "Single Return" separator and then apply the exact amount of after-paragraph spacing you want to the prefix in compile formatting. If you use a document group for your chapter container, you'll have to use the after-paragraph method, since it will be compiling with the Text/Text separator, which you've already set to "Single Return".

In case that all just got incredibly confusing, I'm attaching a sample project demonstrating a way of doing this. It uses folders for the chapter containers and the Single Return separator between folders and text documents so that I could set the "Chapter 1" prefix to 20pt but the space between that and the chapter header text at only 18pt. It's set up to compile the first chapter sample correctly and you just need to deselect the "Title" checkbox from the single document Level 1+ row in compile to compile the second chapter sample properly.
Attachments
ChapterFormatting.zip
(111.16 KiB) Downloaded 59 times
Jennifer Hughes
(MM for short)

User avatar
Marilynx
Posts: 180
Joined: Mon Oct 31, 2011 10:26 pm
Platform: Windows

Wed Jan 07, 2015 4:09 am Post

Jennifer,

Thank you, thank you! I'm going to tinker with this and see what I can do. <g> I and the cheesecake had excellent holidays -- sent my Dad home with about six dinners' worth of Christmas cheer, plus cheese cake! Now I'm off to a science fiction folk singing conference, aka a filk convention.

You've given me much to study and fiddle with.

But I am determined to master this Compiler business if it takes me another six months!

Hope your holidays were also good!
-- Marilynx

User avatar
Marilynx
Posts: 180
Joined: Mon Oct 31, 2011 10:26 pm
Platform: Windows

Mon Jul 06, 2015 5:26 pm Post

I am adding this question onto my Compiler thread, because it makes it easier for me to keep track of the answers, and to refer back to things.

(Rueful grin) I got sidetracked with some research, some writing, and some dog shows and haven't yet sorted everything out above.

I'm trying to generate a somewhat rough-and-ready e-book for my co-author of stuff that we are working on and need to refer to.

I'm using a format which has worked for my NaNoWriMo stuff, but it's generating the folder names as separate chapters, and I don't understand why.

Here's the side bar:
2015-07-06aa.JPG
2015-07-06aa.JPG (16.74 KiB) Viewed 1859 times


And here is what the "Chapters" are coming out like. Again, it has to be something I'm missing, but I don't know what I'm doing wrong. (Haven't gotten any farther with some of the stuff up above in this thread because folders generate as separate chapters.

2015-07-06ab.JPG
2015-07-06ab.JPG (5.11 KiB) Viewed 1859 times

2015-07-06ac.JPG
2015-07-06ac.JPG (42.24 KiB) Viewed 1859 times
-- Marilynx

User avatar
Marilynx
Posts: 180
Joined: Mon Oct 31, 2011 10:26 pm
Platform: Windows

Mon Jul 06, 2015 5:29 pm Post

Adding a link to one of my other compiler threads so I can find it again for reference....
http://literatureandlatte.com/forum/viewtopic.php?f=30&t=31600
-- Marilynx

User avatar
Marilynx
Posts: 180
Joined: Mon Oct 31, 2011 10:26 pm
Platform: Windows

Fri Jul 10, 2015 3:37 pm Post

Anyone? On the message posted 6 July, beginning, "I am adding this question onto my Compiler thread, "
-- Marilynx

User avatar
MimeticMouton
Posts: 9006
Joined: Wed May 05, 2010 5:39 am
Platform: Mac + Windows
Location: city of rain
Contact:

Sat Jul 11, 2015 10:58 pm Post

Sorry, saw this briefly but didn't have a chance to reply and then got side tracked. Could you clarify what you're trying to achieve?--e.g. should each folder be its own chapter, using the chapter name as the title, and then with all its subdocuments as untitled scenes in the chapter? Should the folder titles never appear either, and it just be numbered chapters?

Re: the format that worked for your NaNo, is this exactly what is described earlier in the thread (so we can look at that for reference), or have you made changes to the compile settings?
Jennifer Hughes
(MM for short)

User avatar
Marilynx
Posts: 180
Joined: Mon Oct 31, 2011 10:26 pm
Platform: Windows

Wed Sep 28, 2016 4:06 am Post

It's been awhile since I touched on this subject. I'm continuing in this thread so that I can easily find all my questions about Compile.

My issue this time is separators.

I have my chapters set up.

I have the sub-documents set up.

I have even managed to figure out the levels so that they come out the way I want them to, more-or-less.

BUT:

Chapter One is centered. It is NOT the 96 points down the page that I wanted it to be. It is at the top of the page.

Then, there are 96 points between Chapter One and the beginning of the text.

I went in and tried to change the separators. I change the separator, and my preset changes from "Roads Split Chapters 02" to Custom. And everything I had in Roads disappears. I change it back, and the preset returns to Roads.

I cannot change ANYTHING in the separators without the preset changing to "Custom."

VERY annoying.
-- Marilynx

User avatar
Marilynx
Posts: 180
Joined: Mon Oct 31, 2011 10:26 pm
Platform: Windows

Fri Sep 30, 2016 7:00 pm Post

Pushing this up to see if I get a reply to the message ahead of this one.
-- Marilynx

User avatar
Marilynx
Posts: 180
Joined: Mon Oct 31, 2011 10:26 pm
Platform: Windows

Fri Oct 07, 2016 5:00 am Post

Pushing this up to try to get a reply.

I have been fiddling and fiddling and CANNOT GET THIS FREAKING COMPILE TO WORK!

My Chapter Title now has the 96 points before and 18 points after. I got that far.

But the freaking Compile insists on inserting another 96 point before hard return and 18 point after "line" between the Chapter Title and the text.

This is unacceptable. I can't edit the mobi file and go through and remove that stupid insert from 60 freaking chapters.

I have tried, and tried, and TRIED to change the setting in Compile to "Custom" for separator between Folder and Text, which I figured I would leave blank.

Every time I change anything in the dialog, Scrivener changes the name of my compile from the one I am using to "Custom." If I change it back to my setting, it changes what I changed back, too.

I can't EDIT the blasted compile!


PLEASE HELP!
-- Marilynx

si
simeva
Posts: 495
Joined: Thu Oct 06, 2011 2:30 pm
Platform: Windows
Location: Sheffield

Fri Oct 07, 2016 8:46 am Post

I can't comment about the detail of what you are trying to achieve here, but simply as regards saving a compile - the way I understand it works is that whenever you make a change to a set of saved compile settings, Scrivener changes the name of the preset in the 'Format As' box to 'custom' (but this does not change any of the other Compile settings). If you want to keep these settings, with the change you made, then you have to save them again, using the 'Save Presets' button. If you want to over-write your existing preset, just enter the same name in the box. Scrivener will warn you before it overwrites.

User avatar
rdale
Posts: 2137
Joined: Tue Jul 14, 2015 1:07 pm
Platform: Mac, Win + iOS
Location: St. Louis, MO
Contact:

Fri Oct 07, 2016 1:09 pm Post

Yeah; "Custom" just tells you that you've deviated from the preset you started from.

I don't know if this will help, but a feature of the new release earlier today highlights in the binder what documents are affected by each row in the Compile window's Formatting pane. Make sure your documents are visible in the binder and bring up the "Compile" window. Make sure you can still see your binder (if not, cancel and expand your window to be wide enough to peek out from under the compile window). Then go to the Formatting pane and click on each of the folder, document, and document stack rows there. In the binder, you should see various files and folders highlighted in yellow as you select each "Formatting" row. That tells you if you're working on the right row to obtain the effect you want.

Maybe that will clarify where you've entered an extra set of vertical spacing that you thought would affect the chapter title, but is instead affecting the start of each text document?
FKA: robertdguthrie
AKA: R Dale Guthrie, Robert, Mr. Obscure, and "Oh, it's you again".