How do I put the author's name in the header in an anthology by multiple authors?

ko
kozmickid
Posts: 9
Joined: Sun Aug 21, 2016 3:34 pm
Platform: Mac
Location: Westerville, OH
Contact:

Mon Dec 11, 2017 9:48 pm Post

I'm working on an anthology consisting of short stories by multiple authors. Within each story, I want that story's author to appear in the header on the left page, and the title of the story to appear in the header on the right page. I can use the <$sectiontitle> tag for the title, but how do I put the author's name in the header? I've defined custom metadata for the story's author but custom metadata tags are not supported in the headers or footers. Has anyone else faced this issue?
I'm using Scrivener 3 on MacOS.
Thanks!

User avatar
Silverdragon
Posts: 407
Joined: Mon Jul 29, 2013 2:52 pm
Platform: Mac + iOS
Location: Tarzana, California, USA
Contact:

Tue Dec 12, 2017 12:06 am Post

I'll be interested to hear if someone has an answer to this one myself.
So you know where I'm coming from:
  • I'm a user, not an L&L employee.
  • Mac Scrivener 2.9 & 3.0.1, MacBook Air 11, MacOS 10.12.6 (Sierra)
  • IOS Scrivener 1.1.5, iPhone 6s, iPad Air 2, iOS 11.2.2

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

Tue Dec 12, 2017 10:48 am Post

OK, this is a bit fiddly, and it doesn't quite address the full problem (author on left, name on right), but at least it gets the changing name and author into the heading. There may be knock on effects which I haven't thought of (eg. how it would affect a ToC) so it may not fit your needs — and of course someone will come along in a minute and give a very simple solution I hadn't thought of...

But still, here we go:

Screenshot 2017-12-12 10.07.23.png
Screenshot 2017-12-12 10.07.23.png (64.93 KiB) Viewed 533 times


Screenshot 2017-12-12 10.47.21.png
Screenshot 2017-12-12 10.47.21.png (44.92 KiB) Viewed 533 times


Obviously, ignore the formatting etc, but basically, it's set up like this:

In the binder

1. Name the Chapter folder with both the name and title of the story ('Fred Bloggs: My Story'), and give it the custom metadata StoryAuthor="Fred Bloggs". The text is empty.

2. Create a new section type ('False Chapter') and allocate it to the first scene in every chapter only. Then rename these first scenes to the Story Name. Leave all the other scenes as they were.

Compile. (These are based on PDF - Modern)

1. Allocate the Layouts as follows: Chapter Folder = 'Heading', False Chapter= 'Titled Section', and Scene as whatever it was before.

2. Edit the format, and click on Section Layout: Heading. You want ALL the boxes to be unticked. Go down to title options, then add <$custom:StoryAuthor> to Title Prefix and remove everything else. Click on Formatting and you should just see StoryAuthor in the dummy text.
Screenshot 2017-12-12 10.46.04.png
Screenshot 2017-12-12 10.46.04.png (85.12 KiB) Viewed 533 times



3. Select Titled Section layout, and make sure Title and Text are both ticked. I didn't make any other changes.

4 Go to Separators and click on Titled Section: make sure 'default separators' is unticked, and change Separator before sections to Empty line or Single Return.

5. Go to Page Settings and add <$sectiontitle> to the header.

6. Save and compile.

Obviously, some of the section layouts may have different names, but the basic principle is:

* Header = Author + Title from the name of the Chapter Folder in the binder.
* Chapter author from Chapter Folder custom metadata added to the prefix of a layout with Title and Text unticked
* Chapter title and text of first scene comes from the first scene (False Chapter) in a layout with Title and Text ticked and with a 'before' separator which isn't page break.
* Rest of the scenes in the chapter as normal.

As I said, a bit fiddly, and there may be side effects, but perhaps you could play with it to get it as you want it.

(BTW, I think it's a great example of how flexible Version 3 compile is compared to V2...)

HTH.

ko
kozmickid
Posts: 9
Joined: Sun Aug 21, 2016 3:34 pm
Platform: Mac
Location: Westerville, OH
Contact:

Tue Dec 12, 2017 2:12 pm Post

Thanks for the workaround! Correct, it's not exactly what I had in mind, but it may work. I'll have to clear it with the authors.

One option is to have the title of the anthology on the left and the story:author on the right. Anyway, this gives me another option to work with. Thanks!

ko
kozmickid
Posts: 9
Joined: Sun Aug 21, 2016 3:34 pm
Platform: Mac
Location: Westerville, OH
Contact:

Tue Dec 12, 2017 2:15 pm Post

Oh, and BTW, I agree—V3 compile is HUGELY better than V2 compile. Well done, L&L.

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

Tue Dec 12, 2017 4:37 pm Post

kozmickid wrote:Thanks for the workaround! Correct, it's not exactly what I had in mind, but it may work. I'll have to clear it with the authors.

One option is to have the title of the anthology on the left and the story:author on the right. Anyway, this gives me another option to work with. Thanks!


No problem — it was fun seeing if it would work... I'm finding that the flexibility of Section Type v Section Layout is really powerful in some unexpected (to me) ways, once I stop thinking in V2 terms.

User avatar
Silverdragon
Posts: 407
Joined: Mon Jul 29, 2013 2:52 pm
Platform: Mac + iOS
Location: Tarzana, California, USA
Contact:

Tue Dec 12, 2017 5:12 pm Post

... I think I could have gotten this to work in Scriv 2, but it would have involved some horrid restructuring of my folders/documents. Not a bad solution!
So you know where I'm coming from:
  • I'm a user, not an L&L employee.
  • Mac Scrivener 2.9 & 3.0.1, MacBook Air 11, MacOS 10.12.6 (Sierra)
  • IOS Scrivener 1.1.5, iPhone 6s, iPad Air 2, iOS 11.2.2

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

Tue Dec 12, 2017 7:06 pm Post

I haven't had time to test this, but what if you created a custom metadata field "Author" and entered the author's name to every folder/document belonging to that author's piece? Is the custom metadata information available for use in the header?

If that doesn't work, could you create a parent folder to every piece and name it for the author, and either use $parenttitle, or $levelNtitle (or whatever it is) in the header? I would try not including that parent folder in compile, so it doesn't mess up the contents of your document--hopefully it would still grab that folder's title.
FKA: robertdguthrie
AKA: R Dale Guthrie, Robert, Mr. Obscure, and "Oh, it's you again".

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

Tue Dec 12, 2017 7:12 pm Post

Not all placeholders are supported in headers and footers. In addition to the special header and footer placeholders specified below (which can only be used in headers and footers), only the placeholders listed under the sections Page Numbers, Current Date and Time, and User and Project Information are supported in headers and footers.


This is from the placeholders document in help, so it doesn’t look like you can unfortunately- another section rules out document variables like parenttititle as well.

The folder trick does work, as in my post, but there doesn’t to be a way of splitting the data.