18 Replies Latest reply on Jan 11, 2014 11:46 AM by rob day

    Justify towards spine

    michiiii.o

      Hello,

       

      I searched the forum but couldn't find an answer for my question.

      My document has facing pages. I want to set a paragraph style were the normal text is Justified right on every left page and left on every right page. You know? Same with the headlines and stuff. AAAnd I want that the text on the right page has a left indent and the other page the oposite (right indent) Could anybody please help me? Thanks in advance.

       

      greets, Michael

        • 1. Re: Justify towards spine
          HeyMikey Level 3

          Hi Michael,

           

          You'll set up two different style sheets, one for left (even-numbered) pages and one for right (odd-numbered) pages. Set the even-numbered pages paragraph style to align right, and of course the odd-numbered pages to align left. Make a text frame on your corresponding master pages, and assign the appropriate style sheet to these frames, and voila! Now all your new pages in the document will have a master text frame set to align the way you need. If you already have pages in the document, just go to a paragraph and assign the appropriate style sheet. Hope this helps!

           

          Cheers!

          -Mikey

          • 2. Re: Justify towards spine
            Salah Fadlabi Level 5

            Also use Alignment Towards Spine or Away From Spine, it may help.

            Alignment.jpg

            • 3. Re: Justify towards spine
              Peter Spier Most Valuable Participant (Moderator)

              It's not necessary to set up different styles for left and right pages. As suggested by Salah, setting the paragraph style to align either towards or away from the spine (but do it at the style definition level) will cause the text to do what you want, and will even align it properly on both pages if a paragraph breaks across them.

              • 4. Re: Justify towards spine
                michiiii.o Level 1

                Thx, Peter and Salah, but this wasn't what I was looking for. I don't want to simply align the text towards the spine, but I have to justify it towards the spine.

                THX Mikey for the tip, but if i understood right what you meant, I think its not working for me. The thing is I have a text in word, about 40 pages long, now I wanna do the layout in indesign. So I create my layout and place the text (cmd+d) into the columns of my indesign-document. So the text is running threw from page 1 to page 40. If I create two different paragraph styles for every page its not working... although I'm beginning to think I don't know what style sheets are...

                • 5. Re: Justify towards spine
                  Peter Spier Most Valuable Participant (Moderator)

                  Perhaps you could tell us what you mean, then by "justify towards the spine." Justified text is the full width of the column. Do you mean justified, with the last line aligned towards the spine? That's not something ID can automate. You have a choice of justified with last line aligned left, center or right, and you'd have to use two styles or a manual format override.

                  • 6. Re: Justify towards spine
                    MW Design Level 4

                    What Salah and Peter wrote is the method...at least if I am understanding what you want. At the paragraph style level (rather than the button shown), it is all automatic.

                     

                    capture-000976.png

                     

                    capture-000975.png

                    • 7. Re: Justify towards spine
                      michiiii.o Level 1

                      Yes, thats almost what I want. But the only thing I have to have is, as Peter said above, that the text is justified with the last line towards the spine. I'm not making this up, it's what I have to do. :/ So the only way is to do it manualy, right?

                      • 8. Re: Justify towards spine
                        MW Design Level 4

                        Peter was posting as I was.

                         

                        So you want fully justified text, but the last line in a paragraph against the spine?

                        • 9. Re: Justify towards spine
                          michiiii.o Level 1

                          Yes

                          • 10. Re: Justify towards spine
                            Peter Spier Most Valuable Participant (Moderator)

                            If you want this:

                            Justified towards spine.png

                            then you need to do it manually in some way or another.

                             

                            And do we need to discuss the readability of justified text with the last line aligned to the spine like this? What a disaster.....

                            • 11. Re: Justify towards spine
                              MW Design Level 4

                              The you have to have two paragraph styles with a line break. The main paragraph is justified, space is Before. The last line paragraph in the screen shot below has no space above, so it snuggles up to the main paragraph style.

                               

                              capture-000977.png

                              • 12. Re: Justify towards spine
                                Peter Spier Most Valuable Participant (Moderator)

                                Say what, Mike?  What does paragraph spacing have to do with alignment of the last line?

                                • 13. Re: Justify towards spine
                                  MW Design Level 4

                                  It doesn't have anything to do with the alignment. It only has to do with avoiding space before like the Main paragraph text has.

                                   

                                  My point was that there is spacing between paragraphs. By using a separate paragraph for the last line there would be spacing between the main paragraph and its last line if it also had Space Before set.

                                   

                                  Main paragraph is fully justified. This paragraph has Space Before set.

                                  Last line paragraph is aligned Towards spine. This paragraph has no Space Before set.

                                  • 14. Re: Justify towards spine
                                    Peter Spier Most Valuable Participant (Moderator)

                                    So you are adding a paragraph break a the end of the second-to-last line so your first x lines are full justified (including last line) and last line can be a single-line paragraph aligned to spine?

                                     

                                    What happens when you need to edit and the length of a paragraph changes?

                                    • 15. Re: Justify towards spine
                                      michiiii.o Level 1

                                      thx a lot for your help everyone!!!

                                      • 16. Re: Justify towards spine
                                        Peter Spier Most Valuable Participant (Moderator)

                                        And I can't imagine the amount of work necessary to go through an entire book and add all those extra breaks. At least with a single style you can go through page by page and select all of the text at once that needs to align the other way and make the change.

                                        • 17. Re: Justify towards spine
                                          MW Design Level 4

                                          It's just a bloody method of accomplishing what amounts to a lot of manual work no matter what method is used. It was all I could think of. I have never had such a request and I would (at least try really hard to) shoot it down with whoever requested it of me in the first place.

                                          • 18. Re: Justify towards spine
                                            rob day Adobe Community Professional & MVP

                                            So you want fully justified text, but the last line in a paragraph against the spine?...Yes

                                             

                                            It's fairly easy to script. If you are on OSX  this AppleScript works on a selected text flow

                                             

                                             

                                             

                                            tell application "Adobe InDesign CS6"

                                                set ruler origin of view preferences of active document to spine origin

                                                set mystory to parent story of selection of active document

                                                set p to object reference of last word of every paragraph of mystory

                                             

                                                repeat with i from 1 to number of items in p

                                                    try

                                                        --with spine origin this number will be positive on the right and negative on the left pages

                                                        set x to horizontal offset of item i of p

                                                        if x is greater than 0 then

                                                            set justification of paragraph i of parent of item i of p to left justified

                                                        else

                                                            set justification of paragraph i of parent of item i of p to right justified

                                                        end if

                                                    end try

                                                end repeat

                                            end tell