P
penfield888
Not sure where to start on this and would appreciate any help anyone
can offer. I've searched the archives a fair bit, but haven't seen
anyone doing this.
I want to set the Spacing Before to be the rough equivalent of double
spacing before a particular style ("Case Heading") EXCEPT when preceded
by the style "FolioNumSepLine". In that case I want to suppress the
spacing before.
So in pseudocode, what I want to do is
if ( Not first paragraph in document
AND CurrentParagraph.Style is "Case Heading"
AND PrecedingParagraph.Style is "FolioNumSepLine"
)
set CurrentParagraph.SpaceBefore to 0
elseif ( Not first paragraph in document
AND CurrentParagraph.Style is "Case Heading"
AND PrecedingParagraph.Style is NOT "FolioNumSepLine"
)
set CurrentParagraph.SpaceBefore to 0
endif
For background, the situation is this. I'm doing an edition of a text
and must indicate where page breaks take place in the original text.
If the manuscript page number is immediately above the heading, I want
it there without extra spacing. Otherwise, I want a double space above
the heading. This is the format for the series in which the volume
appears, so it is what it is and I can't change that. So the situations
would be:
#1 - heading in middle of manuscript page, ms page number in middle of
a line.
text text text text text text text [f. 231] text text text text text
text text text text text text
heading heading heading heading heading heading
-----------------
#2 - heading at top of manuscript page.
text text text text text text text text text text text text text text
text text text text
[f. 231]
heading heading heading heading heading heading
can offer. I've searched the archives a fair bit, but haven't seen
anyone doing this.
I want to set the Spacing Before to be the rough equivalent of double
spacing before a particular style ("Case Heading") EXCEPT when preceded
by the style "FolioNumSepLine". In that case I want to suppress the
spacing before.
So in pseudocode, what I want to do is
if ( Not first paragraph in document
AND CurrentParagraph.Style is "Case Heading"
AND PrecedingParagraph.Style is "FolioNumSepLine"
)
set CurrentParagraph.SpaceBefore to 0
elseif ( Not first paragraph in document
AND CurrentParagraph.Style is "Case Heading"
AND PrecedingParagraph.Style is NOT "FolioNumSepLine"
)
set CurrentParagraph.SpaceBefore to 0
endif
For background, the situation is this. I'm doing an edition of a text
and must indicate where page breaks take place in the original text.
If the manuscript page number is immediately above the heading, I want
it there without extra spacing. Otherwise, I want a double space above
the heading. This is the format for the series in which the volume
appears, so it is what it is and I can't change that. So the situations
would be:
#1 - heading in middle of manuscript page, ms page number in middle of
a line.
text text text text text text text [f. 231] text text text text text
text text text text text text
heading heading heading heading heading heading
-----------------
#2 - heading at top of manuscript page.
text text text text text text text text text text text text text text
text text text text
[f. 231]
heading heading heading heading heading heading