Skip to main content
dublove
Legend
Aug 9, 2024 4:46 AM UTC
Answered

If the two text boxes are connected, how does the footnote restart from ①

I have a book that needs to be typeset that is single-column and contains footnotes, but the footnotes start at ① for each article.

I don't want to go through and break up each article. I'd like to typeset it in just one text box, but it seems like the footnotes can only be connected.

Is there any solution to this?

This topic is closed to new replies. Start a new post to keep the conversation going.
Peter Kahrel
Peter KahrelCorrect answer
Community Expert
Aug 9, 2024 10:11 AM UTC

Here's a script I use to break a story on instances of a paragraph style. It assumes that the paragraph is set to start on the next page or frame.

 

To use it, place the cursor in the paragraph style (the one applied to 'New Articles' in your sample) and run the script. As always, keep a copy of the document in a safe place.

 

//DESCRIPTION: Split a story on the selected paragraph style

(function () {

  var styleName = app.selection[0].appliedParagraphStyle.name;
  var story = app.selection[0].parentStory;
  var p = story.paragraphs.everyItem().getElements();
  var frame;

  for (var i = p.length-1; i >= 1; i--) {
    if (p[i].appliedParagraphStyle.name === styleName) {
      frame = p[i].parentTextFrames[0];
      frame.previousTextFrame = null;
      story.insertionPoints.itemByRange (p[i].index, story.length)
        .move (LocationOptions.AFTER, frame.insertionPoints[0]);
    }
  }

}());

6 replies

Robert at ID-Tasker
Legend
Aug 9, 2024 10:58 AM UTC

@dublove

 

It's not free and PC only: 

 

https://id-tasker.com/2024/05/12/mixing-auto-custom-footnotes/ 

 

Can be easily adapted to your needs - although I would have to add support for extra characters around the Footnote marker. 

 

Translate
Peter Kahrel
Community Expert
Peter KahrelCommunity ExpertCorrect answer
Community Expert
Aug 9, 2024 10:11 AM UTC

Here's a script I use to break a story on instances of a paragraph style. It assumes that the paragraph is set to start on the next page or frame.

 

To use it, place the cursor in the paragraph style (the one applied to 'New Articles' in your sample) and run the script. As always, keep a copy of the document in a safe place.

 

//DESCRIPTION: Split a story on the selected paragraph style

(function () {

  var styleName = app.selection[0].appliedParagraphStyle.name;
  var story = app.selection[0].parentStory;
  var p = story.paragraphs.everyItem().getElements();
  var frame;

  for (var i = p.length-1; i >= 1; i--) {
    if (p[i].appliedParagraphStyle.name === styleName) {
      frame = p[i].parentTextFrames[0];
      frame.previousTextFrame = null;
      story.insertionPoints.itemByRange (p[i].index, story.length)
        .move (LocationOptions.AFTER, frame.insertionPoints[0]);
    }
  }

}());
Translate
dublove
dubloveAuthor
Legend
Aug 9, 2024 12:43 PM UTC

Hi Peter Kahrel

Thank you

You're too good and invincible to think of that.

Translate
Peter Kahrel
Community Expert
Community Expert
Aug 9, 2024 8:56 AM UTC

If you want the footnotes to restart at each chapter you'll have to break the story up so that each chapter is in a different story. To keep everything in one story you need a very messy script.

 

Join the crowds on https://indesign.uservoice.com who've requested more flexibility in InDesign's footnote numbering.

Translate
dublove
dubloveAuthor
Legend
Aug 9, 2024 9:31 AM UTC

It would be nice if it could be split by "page breaks(~P)" or "frame breaks(~R)" or "column breaks(~M)".

 

Translate
Peter Kahrel
Community Expert
Community Expert
Aug 9, 2024 10:00 AM UTC

Yes, it would, wouldn't it?

Translate