Right align page numbers that are to the left of TOC entries

I posted a similar question about a year ago that I believe Harbs or Peter answered, but darned if I can find the thread. At that time they provided a script that did a GREP search, finding a sentence that starts with a digit and replacing it with a tab. I still have the script, but for some reason it is not working correctly with my new TOC layout.It should insert a tab to the left of the page number (page numbers are to the left of the TOC entries), and force the numbers to right align so that a single digit page number right aligns with the right edge of a double-digit page number.
Find: ^(\d+)
Change to: \t$1
What happens in the new TOC is the script finds a digit and inserts a tab to the left of the page number. The page numbers move to the right, but they don't right align. They are further to the right, but they numbers themselves are still left aligned.
I'm mystified as to why the script doesn't work on this new layout. I'm using CS4 now, and it still works on the old layout. There is nothing terribly different about the new layout except that the column is much narrower, and there are several threaded colums in the TOC instead of one long column, and the chapter titles don't have page numbers (but all other entries do have page numbers.)

Peter,
Thanks for your reply. Between the page number and the entry is an en-space.
I started with these settings:
I then changed the left aligned tab to a right aligned tab:
But still no luck.

Similar Messages

  • When there are multiple users can the email files that are on the left of the screen be hidden from other users?

    There are several people who might want to use Thunderbird on a work computer but I don't like how everyone's email files are open to public view. It looks like anyone can see emails without having to login to another person's account.

    Use different Windows user accounts for each person, and set-up Thunderbird for each person's email account underneath the respective Windows account.
    It is very easy to switch between Windows user accounts, and multiple people can be logged in simultaneously.

  • HT1171 I have the apple wireless key board.  There is only one delete key and it deletes all data to the  left side of the cursor.  Where is the delete function for deleting letters that are on the RIGHT side of the cursor?

    I have a new wireless apple keyboard. I can only delete items that are to the left of the cursor using the delete key.  What key do I use to delete items that are to the right side of the cursor?  I have only one delete key.
    My old apple wired keyboard has 2 delete keys that enabled me to easly delete data on either side of the cursor.
    Thanks

    Fn + Delete

  • Problem E-Mailing Pages documents that are...

    Hello-
    I use gmail for my e-mail server. I am trying to e-mail some Pages docs that are on the desktop. When I click "Attach" and the window comes up, go to "Desktop" and all the Desktop icons show up except the Pages documents are not highlighted like all other pdf, etc. docs are. Unable to attach Pages docs to an e-mail?
    Anybody have an help? Novice here but want to learn more.

    Control-click the documents, compress or archive them, and attach the zips. iWork documents are packages, not single files, and can't be attached directly.
    (45838)

  • Hi i am working with indesign on a book in hebrew. and the page numbering that i apply. showing from left to right insted of right to left. can you please help?  thank you. iris

    hi
    i am working with indesign on a book in hebrew. and the page numbering that i apply. showing from left to right insted of right to left.
    can you please help?
    thank you. iris

    Hi Shawninglewood,
    Welcome to the Support Communities!
    The article below may be able to help you with this.
    How to delete content you've downloaded from the iTunes Store, App Store, iBooks Store, or Mac App Store
    http://support.apple.com/kb/HT5772
    Cheers,
    - Judy

  • How can I get rid of numbers that are covering my entire desktop, caused by right-clicking "Clean Up Selection" on an icon?

    How can I get rid of numbers that are covering my entire desktop, caused by right-clicking "Clean Up Selection" on an icon?  The Apple OS X Mavericks blue & green desktop is totally gone.  HELP!

    Here's a screenshot of my desktop, as of a few minutes ago:  http://lewgoodman.com/desktop.tiff

  • HT202879 Since opening an existing Pages doc, all the previously centred images and tables are now too far to the rights - leaving a large blank space to the left of each page. Any ideas reducing?

    Since opening an existing Pages doc, all the previously centred images and tables are now too far to the rights - leaving a large blank space to the left of each page. Any ideas re fixing this?  Problem remains even when I open an earlier version on the previous version of Pages

    It has always been that the upgrade tries to be the "master" over the older version.
    Anyway in Pages 09 you have probably the Comments field showing, making all contetn to move to the right.
    Go to View menu > Hide Comments.

  • What I'm trying to do is when I scroll down the page have the images that are on the page stay the same look as I scroll

    What I'm trying to do is when I scroll down the page have the images that are on the page stay the same look as I scroll

    Use the scroll motion tools and set the settings all to 0

  • I seem to have lost the red, yellow and green dots that are in the upper left hand corner that close  or minimize the page.

    I seem to have lost the red, green, and yellow dots that are in the upper left hand corner that close or minimize the page.  How can I get them back?

    You may have to try a general OS X troubleshooting process to see if the issue goes away by doing this...
    Have you tried: starting the computer in SafeBoot mode, with shift key held down; a login screen should appear after a time, and then the regular desktop. At this point, locate Disk Utility in utilities folder, and run 'repair disk permissions' on the startup volume, usually the name given the hard disk drive as it appears on desktop. After Disk Utility is finished the permissions repair, restart the computer normally.
    ...The iTunes player has free support only through the duration of the hardware product's complementary or AppleCare extended plan coverages, so though you can download a newer version, that is not the same as free support for an issue. However, the iTunes Store or App Store has a different factor for their product.
    http://www.apple.com/support/itunes/
    There is an iTunes area in Apple Support Community discussions for more topics like this; except for when they involve a hardware product where an OS X is involved. If your computer is NOT a powerPC (an 'intel'-mac) the topic would more naturally need to be posted where that hardware and later supported OS X version topics get seen. So that is why one asks 'on what Mac running what version...' instead of writing four paragraphs in a wide angle reply. The details about your iMac and the OS X say more; without them, more questions arise.
    Good luck & happy computing!

  • We encountered a problem with some client machines that use Firefox version 24ESR and IE8. Ajax requests of aspx pages from Firefox are getting the following er

    I encountered a problem with some client machines that use Firefox version 24ESR and IE8.
    Ajax requests of aspx pages from Firefox are getting the following error from the iis server (iis version 7.5):
    Bad Request - Request Too Long
    HTTP Error 400. The size of the request headers is too long.
    From analyzing the request that was sent to the server, I saw that the request consist of only the viewstate of the aspx page.
    I tried to disable the viewstate for one page and the server got the request correctly.
    I do not encounter any issues on these laptops with postback requests from Firefox or when running the same application with IE8.

    Sometimes that means that the page address sent is loo long.
    Check the link address you are using.
    I can't help you further and will send for more help.

  • Right-align footnote numbers

    Is there a way to right-align footnote numbers so that they will align like this:
      1. Text of footnote
    12. Text of footnote
    123. Text of footnote
    instead of like this (an abomination):
    1.   Text of footnote
    12.  Text of footnote
    123. Text of footnote
    The obvious way would seem to be to add a tab as prefix (in Document Footnote Options|Numbering and Formatting) and set the tab as right-aligned in the paragaph style, but the dialog will not accept a tab (^t).
    I can't see any way to set the alignment in the para style options either.
    At the moment I use three paragraph styles Fn #, Fn ## and Fn ### with varying indents, but it’s cumbersome and unreliable having to reassign styles when footnotes are added or deleted.

    In 2006-2007 I converted 32 publications from Ventura to InDesign. From 200 pages to 3,200 pages. I feel your pain. Ventura was a crazy program. I was updating things in Ventura. I'd save it and go home and then the next day half the book (not the changes just literally half the text from the book) had disappeared. Gone. So frustrating.
    Regarding indexing:
    We outsourced our indexing to an indexer, we just gave him/her a pdf of the book and we a got an index back.
    Similar to yourself, it has cases and statutes in all the books. So I've never really used the indexing feature, I have ledt that to a pro indexer. Hopefully someone else can you point you on that.
    But if you need any more help converting from Ventura to InDesign let me know. I did a lot of automating of the books, chapter numbers, pages, numbered paragraphs, TOCs etc.
    My proudest moment was using GREP to apply styles to the 3,200 page book. I opened all the chapters and applied master pages with variables for running heads (as they changed each page (cs3 came along just at the right time ). I then proceeded to GREP find and replace millions of text across literally thousands of pages. I applied all the styles to all the text in the right places in 2 days. It then took me 2 weeks to proofread my new document. Which had a few hic-ups but sorted quite easily.
    So hopefully my little success story will inspire you some how.

  • On FaceTime contact are on the left side of the screen...they use to be on the right side much better how do I change this listing to the right side?

    FFace time contact listing are on the left side of the screen they use to be on the right side...why the change and how can I change the listings to the right side?

    There doesn't seem to be a setting for that. As to why Apple made the change, only they would know.
    Submit your feedback directly to Apple using the appropriate link on the Feedback page:
    http://www.apple.com/feedback

  • How do I include those empployee numbers that are not 8 digits?

    Hello all again.
    My script currently doesn't find those employee numbers that are NOT 8 digits (some emp nos are 6, 7, 9) when doing comparisons. I've tried LPAD but it still doesn't find. Can anybody suggest a reason for this? I can post my whole script if you want but basically it doesn't match record in my temp table (SU_TEMPLOYEE_DETAILS):
      SELECT std_hire_date, std_last_name, std_sex, std_date_of_birth,
                 std_email_address, std_emp_status,
                 LPAD (std_employee_number, 8, '0') std_employee_number,
               --  std_employee_number,
                 std_first_name, std_marital_status, std_middle_names,
                 std_nationality, std_title, std_national_identifier,
                 std_address_line1, std_address_line2, std_address_line3,
                 std_address_line4, std_post_code, std_telephone_1, std_country,
                         std_location_id,         LPAD (std_supervisor_number, 8, '0') std_supervisor_number
          FROM   SU_TEMPLOYEE_DETAILS
           WHERE  std_employee_number = :p_emp_number..with the existing record in Production instance:
                 SELECT DISTINCT per.person_id, per.business_group_id, per.last_name,
                          per.start_date, per.date_of_birth, per.email_address,
                         --LPAD (per.employee_number, 8, '0') employee_number,
                        per.employee_number,
                          per.first_name,
                          per.marital_status, per.middle_names, per.nationality,
                          per.national_identifier, per.sex, per.title,
                          padd.address_id, padd.primary_flag, padd.address_line1,
                          padd.address_line2, padd.address_line3,
                          padd.town_or_city, padd.postal_code,
                          padd.telephone_number_1, paas.assignment_id,
                          paas.assignment_number, paas.object_version_number,
                          paas.effective_start_date, paas.effective_end_date,
                          paas.job_id, paas.position_id, paas.location_id,
                          paas.organization_id, paas.assignment_type,
                          paas.supervisor_id, paas.default_code_comb_id,
                          paas.set_of_books_id, paas.period_of_service_id
                     FROM per_all_people_f per,
                          per_all_assignments_f paas,
                          per_addresses padd
                    WHERE padd.person_id(+) = per.person_id
                      AND paas.person_id(+) = per.person_id
                      AND per.employee_number LIKE 'C%'-- :p_emp_number 
                          AND per.national_identifier = :p_ni_number
                          AND  REGEXP_LIKE(per.employee_number, '[[:alpha:]]');The Employee Number is 7 digits long (0000016). But I need the script to match its record where it may be 000016 or 00000016 in Production. Is this possible?
    Many thanks for looking..
    Steven

    JackyWhite wrote:
    My script currently doesn't find those employee numbers that are NOT 8 digits (some emp nos are 6, 7, 9) when doing comparisons. I've tried LPAD but it still doesn't find. Can anybody suggest a reason for this? I can post my whole script if you want but basically it doesn't match record in my temp table (SU_TEMPLOYEE_DETAILS):
    The Employee Number is 7 digits long (0000016). But I need the script to match its record where it may be 000016 or 00000016 in Production. Is this possible? I would like to use the TRIM Function here rather than a simple LPAD (with hard coded length) especially if the length of the column std_employee number varies based on the leading zeroes. Something like:
    SQL> WITH test_tab AS
      2       (SELECT '000016' col
      3          FROM DUAL
      4        UNION ALL
      5        SELECT '10000016'
      6          FROM DUAL
      7        UNION ALL
      8        SELECT '00000016'
      9          FROM DUAL)
    10  -- "end of test data "
    11  SELECT col, TRIM (LEADING '0' FROM col) changed_col_2
    12    FROM test_tab
    13  /
    COL      CHANGED_
    000016   16
    10000016 10000016
    00000016 16
    3 rows selected.
    SQL> variable param VARCHAR2(30);
    SQL> exec :param := '00016';
    PL/SQL procedure successfully completed.
    SQL>  WITH test_tab AS
      2        (SELECT '000016' col
      3           FROM DUAL
      4         UNION ALL
      5         SELECT '10000016'
      6           FROM DUAL
      7         UNION ALL
      8         SELECT '00000016'
      9           FROM DUAL)
    10   -- "end of test data "
    11   SELECT col, TRIM (LEADING '0' FROM col) changed_col_2
    12     FROM test_tab
    13    WHERE TRIM (LEADING '0' FROM col) = TRIM (LEADING '0' FROM :param)
    14   /
    COL      CHANGED_
    000016   16
    00000016 16
    2 rows selected.
    SQL> exec :param := '016';
    PL/SQL procedure successfully completed.
    SQL>  WITH test_tab AS
      2        (SELECT '000016' col
      3           FROM DUAL
      4         UNION ALL
      5         SELECT '10000016'
      6           FROM DUAL
      7         UNION ALL
      8         SELECT '00000016'
      9           FROM DUAL)
    10   -- "end of test data "
    11   SELECT col, TRIM (LEADING '0' FROM col) changed_col_2
    12     FROM test_tab
    13    WHERE TRIM (LEADING '0' FROM col) = TRIM (LEADING '0' FROM :param)
    14   /
    COL      CHANGED_
    000016   16
    00000016 16
    2 rows selected.
    SQL> So your where clause will become something like:
    WHERE TRIM (LEADING '0' FROM std_employee_number) =
                                              TRIM (LEADING '0' FROM :p_emp_number)Hope this helps.
    Regards,
    Jo

  • Change Font in Master pages so that it changes the rest of the template?

    I cannot change my font in the Master pages so that it effect the rest of the template. I would have to go through each of the page and change the font. I just want the body paragraph a certain font and I don't know how to do that. I don't know if I explained my question well enough.

    Ok,
    go to page panel, and select all page that you want to apply a mater page items, mouse right click select Apply Master to Pages
    Next select the Master page to apply

  • Common localhost numbers that are good to be aware of (like localhost:631)?

    I had a problem where I couldn't clear several print jobs and I found a solution whereby I logged in to http://localhost:631/ and I was able to delete the print jobs there.
    Are there other common localhost numbers that are good to know, especially when trouble shooting problems?
    Steve

    I had a problem where I couldn't clear several print jobs and I found a solution whereby I logged in to http://localhost:631/ and I was able to delete the print jobs there.
    Are there other common localhost numbers that are good to know, especially when trouble shooting problems?
    Steve

Maybe you are looking for

  • Not able to run a report on BiPublisher version 10.1.3.4

    I am using Bipublisher version 10.1.3.4. i am not able to run the Report. I am calling this report using webservice from java code.I have added entry "Guest" in Guest Folder name also i have checked the checkbox AllowGuest acess in Admin->ServerConfi

  • Is it possible to print layout/sapscript in background  ?

    hello i need to print some form ( layout/sapscript ) in background is it possible to print it immediately in background   ? i don’t want to keep it in the spool . This is the following code of my. submit   ****         SUBMIT YMM_VERIFICATION_BCK_GRN

  • How to keep a FORM  in background?

    Hi all, I have a multi-form application in what i use the first form as the background containing some context data eg. an image, username, logon-time, the logo of the company ,etc.I want it to stay in the background all the time (begind another FORM

  • Battery not working for 7 hours

    battery not working for 7 hours.. it working only for 3 hours or 4 hours

  • Cannot change Phone field in contacts

    My brother has an iPhone 4 running iOS7. In the contacts app he cannot change the type of phone number. If you click "add phone", the label shows "radio" as the default number type. If you click on the blue "radio" label it gives the picklist of avai