indesign - Footnotes created via script appear in a strange location -


I am writing a script to handle some layouts and I have found some strange behaviors while making footnotes.

Whenever I make footnotes with the script, they see the next paragraph before which is a different style for the footnote containing the paragraph. Unless he reaches the end of the story, he will appear in the lower part of the page.

I would like to treat it in the same way as when you insert a footnote through the menu, I. E. Put the footnote together at the bottom of the page.

Here's the first and the following:

before

after

Here is the related code that creates a footnote Reference is an array in which the text contains superscript references (as the category of the character or character objects). Footnote is an array that contains photosnotes in the form of #FootnoteB and #FootnoteE tags as paragraphs objects .

> For <
  (var i = 0; i  

It seems that does not matter where I add footnotes, whether it adds them to paragraphs, stories or text frames, the results are the same

I will check the paragraph styles that will appear after the footnote for their paragraph style. SpanColumnType value . I'm not sure whether this is a bug or a feature, but if your paragraph span column shows footnote above (as if it was the beginning of a new column).

Through the UI, you can test it by editing the paragraph style and checking its Span column tab.

ETA: To avoid a footnote placement, the values ​​you want are now with SpanColumnTypeOptions.SINGLE_COLUMN or, via UI, just a single column.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -