Do you mean beyond alignment relative to the spine?
Whta would you do for paragraphs that break across a page boundary?
If you let us know what you're trying to do we might be able to help.
InDesign has a setting in the paragraph alignment to be towards or away from the spine - but I don't know if that's what you want to do.
@JustMikey – what kind of properties of a paragraph style do you want to change, if on an odd or on an even page?
Peter already mentioned "Relative to Spine" which can be set directly in the paragraph style and is working as expected for portions of a paragraph based on being on an odd or on an even page (double-sided documents only!).
Setting based on spine doesn't seem to work in this case.
The setup is pictures of products always on the outside of the page text on inside of page. Problem comes into play with we have some style that
create a "title bar" to separate the items this bar goes all the way across the page. Because of this currently have the left page style with a left margin and right page style with a right margin. The text flows from page to page and would like it to change between one of two styles based on the page it is on. When I set it based on the spine it breaks the highlight background bars. I will try and include a page so can see general layout.
Happy new year!
A very quick tip I imagine:
On the master page, put the even current text block on a layer (even_layer) and the odd current text block on another layer (odd_layer).
Go to the current pages and play the following regex 1: search all the paras you want to treat and add a "non-joiner" char at their beginning.
Then, mask the odd_layer and play the second regex 2: search all the NJ chars and replace by the para style you want.
Regex 2 will only find the visible NJ chars, obviously on the even pages! Cool!
Do the same tip for the odd pages! [regex 3] [Keep the NJ if the layout moves!]
Another tip very easy to play: 3 anchored blocks, grey Title block, Figure block and Text block.
change between 2 styles based on the text being on an even or odd page?
You can check which side of the spine a page is on via scripting, so this AppleScript checks each page. if you are using OSX I could add the paragraph loop for you:
tell application "Adobe InDesign CC 2014"
set ps to every page of active document
repeat with x in ps
if side of x is right hand then
--get paragraphs and assign right hand style
if side of x is left hand then
--get paragraphs and assign left hand style
Thanks I will attempt this.
This can be done well, with paragraph style to or away from spine together with an object style of the images where the anchored frame position is also set relative to the spine. No need to use a script.
I think we can't use for the text paragraph style to or away from spine as I show above!
Using the spine to set everthing doesn't seem to work, I have tried that every way you can think of. I need to look more into this data merge that might be a solution. While the example I showed was rather even not all items are so not sure it that will still work or not. Truly appreciate the time and responses. I am pure amateur at this
… By curiosity, can you show us an odd page?
Where do you see the limit to use spine based paragraph and object styles.
Use text wrap for the object style for the image.
Don't use a tabulator after the phone number, but use shift-tabulator instead, which makes you more flexible.
For the shadow line use a paragraph ruler with text length.
The image anchor as first or last item in its sub headline.
I had a similar case last week with flags, once on the left side, once on the right side.
@JustMikey – as I understand your task, the problem has nothing to do with "special" paragraph styles, but (nearly) all with anchored objects (the images and parts of the gray bar) and appropriate margin settings.
Just see the following IDML file I exported from InDesign CS5.5:
Of course you could add paragraph styles to format the data automatically or optimize in other ways.
That's up to you. But you can see the principle:
Inspect the Anchored Object Options for the image and the gray bar. Also the frame fitting options for the image.
Note: See also the margin settings, that are not exactly mirrored on even and odd pages (for good reason).