Footnotes - restart numbering with every chapter (workaround)

Hello Everyone,
AFAIK there is no way how to reset the footnote numbering in ID CS4 (it would be ideal to have any possibility to choose the paragraph style, which could invoke that). There are available only three options for reseting, every IMHO quite useless for double sided documents - page, pair of pages and division (I have it localized so names can differ). My chapters starts always on the recto page. If individual 'divisions' would be created for every chapter and reseting set to the beginning of each that division, as the division starts on the verso page !!! (cannot be changed), it resets footnote numbers of the previous chapter if they appear on that verso page. But I agree that for single side documents this option would be sufficient for me.
Is there any workaround how to restart footnotes numbering with every chapter in double sided documents? Could it be scripted? I really need this...
Regards,
Jan

There you go. Don't forget, where it says "head", fill in the paragraph style name for your start of chapter style.
The first two lines delete ALL EXISTING SECTIONS, which may come in handy. If you defined some sections yourself (e.g., to change page numbering to roman numerals for some front matter) and wish to preserve them, you must DELETE these lines -- and manually delete all sections made earlier by the script as well.
//DESCRIPTION:Magic Section Marker
// A Jongware Script 8-Sep-2010
// Dangerous Curve: Remove *ALL* existing Sections
while (app.activeDocument.sections.length > 1)
     app.activeDocument.sections[-1].remove();
// The script Proper
// Find the style using the regular Find command
app.findTextPreferences = null;
app.findTextPreferences.appliedParagraphStyle = "head"; // <- Change Me.
list = app.activeDocument.findText();
// Loop over the found items
while (list.length)
    // Fetch next item -- a Text -- and get the Frame it's in
    next = list.pop().parentTextFrames[0];
    // It might be nested somewhere 'deep' so go up and up in the chain until ..
    while (!(next instanceof Page || next instanceof Spread || next instanceof Application))
        if (next instanceof Character)
            next = next.parentTextFrames[0];
        else
            next = next.parent;
    // .. we find the actual page. First check if there isn't already a section ..
    if (next instanceof Page &&
        next.appliedSection.pageStart != next)
        // No -- let's add one! All settings are set to sensible defaults, it appears.
        app.activeDocument.sections.add(next);

Similar Messages

  • Restart Tomcat with every JSP change??

    I hope I'm missing something obvious here...
    Using JWSDP-1.2 (EA4).
    Every time I make a change to the component tree by adding an <h:whatever> tag in my page, JSF breaks when I refresh.
    For example, if I have the code below:
          <h:input_text id="password" valueRef="testBean.password">
               <f:validate_required/>
          </h:input_text>             
          <h:command_button id="submit" label="Submit"
            commandName="submit" />And I insert this line before the <h:command_button>:
    <h:output_errors  for="password"/>  The command button does not render.
    I find that the only way to get the page to render correctly is to go to the Tomcat manager, reload the webapp, and then use another JSP to invalidate my session. Then the page functions correctly. Pretty cumbersome for someone who develops JSPs with the "modify and refresh" method.
    Is this standard behavior that all of you are encountering? Will it continue to be so?

    From what I learned with tryout and error, you need to force JSF to recreate the components tree for it to register modifications.
    The easiest way I found was to load another page with JSF, so I made a link to another page from within the page I was testing.
    Hope this help.
    Patrick

  • I am trying to generate an array of 30 random numbers. after every 5 readings a new vi should open and tell the user that 5 readings has been completed. and again carry on with the generation of array.

    since i do not have a transducer now, i am currently generating an array of 30 random numbers. after every 5 readings a warning should be given to the user that 5 readngs are complete. this cycle should repeat. the array size is 30.
    please help me out,  waiting for reply asap.
    once i have the transducer, i will be taking 30 analog samples and then after every 5 smaples that wraning will be displaye din a new VI
    Solved!
    Go to Solution.

    Use a while loop with a time delay representing your sampling period.
    Use the count terminal to check if equals 4, so 4th iteration=5th sample.
    Use a case structure. The true case will only be executed on the 4th iteration.
    In the true case place a subVI  with your desired message in the front panel. Go to the VI properties window and set "open front panel when called".
    The closing condition of the warnign is not giving in your description.
    Consider that rather than usign a subvi for this, you could use the "One/Two/Three button dialog" or "display message" vis at the "dialog and user interface" pallete.
    Please give it a try and send your own VI. Do not expect us to provide a working solution.
    Regards,

  • Once more on right-aligning footnote numbers with GREP

    For some jobs I want the footnote numbers in the notes to align on the period that I have IDCS4's Footnote Options add (along with an en-space) as the Separator between the note number and the text of the note.  No big deal if I define the footnote paragraph style with an "Align to Decimal" tab and then insert that tab at the start of the note.  I recently bumped into this thread from 2009 where RodneyA described this in more detail, and Eugene Tyson added a GREP search to automate adding the tab: replace (~F) with \t$1.
    I cannot get this to work in IDCS4.  Did it work in earlier versions?  Earlier this year Jongware explained that GREP cannot replace a footnote marker, only look ahead or behind the marker to replace whatever.  Unfortunately, in my footnotes there's nothing ahead of the footnote marker for GREP to replace until I manually put my tab there.  Adding those tabs to hundreds of notes by hand isn't so bad (jumping with Ctrl + arrow keys), and ID's propensity for occasionally eating a note means I need to check them all anyway.  But am I wrong in thinking that if I want to automate adding the tabs I'll need to do so via JSX?
    Thanks,
    David

    David, when stating you cannot get something to work it's important you also tell why
    But when I tried your "replace (~F) with \t$1" for myself it became real obvious straight away: the code ~F does not only indicate "the footnote reference number" but also the footnote itself in the text. So, while it works in the sense that you get a tab before the footnote number code, you get loads of extra tabs in your text as a bonus.
    There are several ways to circumvent this. The most obvious is to limit the replace operation to just the paragraphs styled with your footnote style. If that's a unique one (mine usually is), it'll work straight away. That's Eugene's first answer in the previous thread -- possiblly you forgot to set this Paragraph style in the Find Format field.
    Another way is to only add a tab when the footnote number code is at the start of a line:
    ^~F
    replace with
    \t$0
    (You are correct in noticing the "lookbehind" trick cannot be reversed to a lookahead for just 'start of line followed by the footnote number code'. It's a Limitation of InDesign's particular flavor of GREP.)
    This one may fail if you ever have a footnote at the start of a paragraph
    Yet another way is to try to make use of the vertical position of the footnote number code. If your references are in superscript (which is fairly regular) and the numbers in the notes themselves are not (which they may or may not be), you can look for
    ~F (+ position: normal)
    and replace with itself plus a tab before, as above. (A variant could be to use a character style for the superscripted references and look for [None] character style to pick up the ones inside the footnotes.)

  • Application "Pages" opens with every restart of computer?

    Recently downloaded Lion from the App Store.  Now "Pages" opens with every restart of computer?

    Could be two things
    1. Look in you system prefs and look for login items for your user.   If pages is there, remove it......or
    2.   Lion now thinks that if you "quit" apps or restart without first closing documents, then it will restart and re- open apps and documents you had open when you restarted.    So make sure you close the documents, and then quit the app.   I don't like this much......I hear some programs have some settings for this, but I'd like yo turn it off globally......

  • Table of Contents with same image on every chapter?

    When I started my book, the Table of Contents automatically took
    the main image of every chapter, and added it in a smaller size to
    my contents pages. Quite nice...
    But now, my Table of Contents has the same image on every page.
    Where did I go wrong, and - more important - can this be restored?
    TIA - Stefan

    Not sure what you did, but you can re assign connection between the chapter images and the TOC image if that connection gets lost (by deleting the place image place holder on the chapter page in the layout pane etc.)
    click on chapter in layout pane and select image (or insert a new one if it was deleated) in inspetor assign it "main image"
    then on the TOC page click the master image place holder and delete the image(place holder will not be deleted)
    makes sure there is not an image ontop of the place holder.

  • InDesign CS6 thinks every chapter in my book is Chapter 1

    I created this document for a client more than a year ago, and he just now noticed a really odd bug in the last PDF rendered. Every chapter, starting with chapter 4, is being recognized as the first chapter. Previous PDF exports show all chapter numbers rendering correctly, but unfortunately I long ago overwrote the previous versions of the InDesign document. The attached screenshots should demonstrate the issue. The only changes made from the previous version to the new version were corrections to the text itself—minor punctuation issues, typographical errors, etc.—so I see no reason why this issue should be happening from one version to the next. Googling has so far gotten me nowhere. Does anyone have any idea what's going wrong?

    Try to select all chapters on the book panel and from flyout arrow select update numbering>update all numbers, then from book page panel click on synchronize button.

  • Sequence numbers - with no gaps!

    I seek some advice from anyone with first hand experience in this area.
    My need is simple; generate a new ID number for every order for use as the primary key.
    Obviously this simple exercise could be a bottleneck as volumes ramp up, so I was pleased to find the Oracle feature to generate such numbers (efficiently presumably). However, upon closer reading it was apparent that aborted transactions would result in the loss of the number allocated to to that order if another transaction had obtained the next sequence number already (as one would want it to, rather than serializing transactions).
    I don't want to have gaps in the sequence as the system needs a high degree of auditability. I am thinking of utilising the Autonomous Transaction feature to write the newly acquired sequence number to the order file with a flag indicating that the record is incomplete, and that record is to be skipped by normal system applications (but available to audit reports which will interpret the reason correctly), then returning to the far more extensive main transaction which updates many tables.
    The other alternative is to control sequence numbers within the application itself, or try to get the sequence number as the very last step before writing the new order record, but this probably won't guarantee gapless reliability either. The ID itself has no significance, and it doesn't matter if an ID was used out of strict date/time sequence, so I really don't want to execute these updates serially.
    So, my question is this:
    a) do most people use the builtin sequence number feature?
    b) if so, is there a standard technique for avoiding or accounting for gaps?
    c) if the application must take over this task, should the counter for the last used ID be in a single row table to minimise bottlenecks caused by the thisrecord being locked? There will be several such counters for different aspects of the application, and i thought of having each in its own row in a small table, but I'm concerned about the whole table getting locked and freezing out otherwise-unrelated updates.
    Thanks for any advice you may have.
    CS

    user8821725 wrote:
    I seek some advice from anyone with first hand experience in this area.
    My need is simple; generate a new ID number for every order for use as the primary key.
    Obviously this simple exercise could be a bottleneck as volumes ramp up, so I was pleased to find the Oracle feature to generate such numbers (efficiently presumably). However, upon closer reading it was apparent that aborted transactions would result in the loss of the number allocated to to that order if another transaction had obtained the next sequence number already (as one would want it to, rather than serializing transactions).
    I don't want to have gaps in the sequence as the system needs a high degree of auditability. One of the very very few reasons for me to have a requirement for "gapless" sequences is if you have a kind of checking mechanism outside of the database that is implemented using this gapless number. I had such a requirement once, when exchanging files with another bank where we had to ensure that each file was transferred correctly and in the right order. Your "high degree of auditability" might be a similiar requirement. Just remember as long as you are still inside the database you can use other mechanisms to increase auditability.
    I am thinking of utilising the Autonomous Transaction feature to write the newly acquired sequence number to the order file with a flag indicating that the record is incomplete, and that record is to be skipped by normal system applications (but available to audit reports which will interpret the reason correctly), then returning to the far more extensive main transaction which updates many tables.Hm. I don't see why you want to use Autonomous Transactions for this. It might be useful to lessen locking conflicts , depending how your future sequence mechanism will be built.
    >
    The other alternative is to control sequence numbers within the application itself, or try to get the sequence number as the very last step before writing the new order record, but this probably won't guarantee gapless reliability either. The ID itself has no significance, and it doesn't matter if an ID was used out of strict date/time sequence, so I really don't want to execute these updates serially.I would go for generating the sequence as the very last step. It needs to be set to NOCACHE of cause. This will garantee that the sequence fetched from mySeq.nextval is gapless. The problem is then in your application. Your application must be built in a way that it ensures to use this sequence, or at least to create a noticable alert when this generated sequence can't be used anymore. In essence this means. Each unhandled (database) error that happens after you fetched the next sequence value must be raised in a way that informs all relevant people about this error.
    Example: It might be that you use the sequence to write an order file. What happens if halfway through writing the file your disk runs out of space? This can be such an issue where a sequenced value will be lost. Your organisation must take care of those things.
    >
    So, my question is this:
    a) do most people use the builtin sequence number feature?Yes. But for some tasks a sequence is not the best way, for example if you want a numbering for each item of your order. This "sequence" needs to restart with every new order.
    b) if so, is there a standard technique for avoiding or accounting for gaps?NOCACHE => Avoids gaps during generation
    Database Trigger => Tries to use the sequence as late as possible
    c) if the application must take over this task, should the counter for the last used ID be in a single row table to minimise bottlenecks caused by the thisrecord being locked? There will be several such counters for different aspects of the application, and i thought of having each in its own row in a small table, but I'm concerned about the whole table getting locked and freezing out otherwise-unrelated updates.This is a possibility and the issues you describe are why we avoid such a solution in general. Autonomous transactions help to reduce the locking conflict, but they increase the chance that you produce gaps.
    >
    Thanks for any advice you may have.
    CSOracle can guarantee to produce gapless sequences. But it can't guarantee that your application uses such a sequence in a gapless way.

  • My computer is extremely slow, with the rainbow wheel appearing with every click. It is one year old, and has all the most recent updates. Why is it so painfully slow?

    My computer is extremely slow, with the rainbow wheel appearing with every click. It is one year old, and has all the most recent updates. Why is it so painfully slow?

    That sounds horrible. There are a number of reasons it could occur.
    The first thing to do is ensure you have adequate backups, because what you describe can be a symptom of impending disk failure.
    To help determine the possible causes of this behaviour read the following. None of what follows is intended to fix anything, but it will provide the additional information required to advance troubleshooting. There are four separate parts to it; read everything first.
    Boot OS X Recovery by holding ⌘ and r (two fingers) while you start your Mac. At the Mac OS X Utilities screen, select Disk Utility. Select your startup volume (usually named "Macintosh HD") and click the Repair Disk button. Describe any errors it reports in red. If Disk Utility reports "The volume Macintosh HD appears to be OK" in green then you can be reasonably (though not completely) assured your hard disk is in good working order.
    When it finishes restart your Mac and test again for operation. If it's still not behaving as you expect it should, please post the results of EtreCheck in accordance with the following instructions:
    Apple Support Communities contributor etresoft wrote a very useful app to quickly gather certain system information that may help point to a cause of this problem. Read about it here. It contains a link to download EtreCheck. Don't download it from anywhere else (such as may be found by following the results of an Internet search).
    Click Open - etresoft contributes to this forum frequently and can be considered a trustworthy developer.
    It will take a moment to run as it collects its data.
    Copy and paste its output in a reply.
    Do not be concerned about anything that says "Problem" or “failed” or anything else that may appear in red.
    EtreCheck was designed to remove any personal information (such as your computer's name and serial numbers) but if you see anything that looks like an email address or any other personal information that should not be divulged to others, please delete or obscure that information when you post the reply.
    When you are finished with EtreCheck, quit the program. It occupies very little space, and you can keep it or drag it to the Trash as you wish.
    After completing the above please determine if the problems also occur in "Safe Mode":
    Safe Mode or "Safe Boot" is a troubleshooting mode that bypasses all third party system extensions and loads only required system components. Read about it: Starting up in Safe Mode
    You must disable FileVault before you can start your Mac in Safe Mode.
    Starting your Mac in Safe Mode will take longer than usual, graphics will not render smoothly, audio is disabled on some Macs, and some programs (iTunes for example) may not work at all.
    Merely starting your Mac in Safe Mode is not intended to resolve the problem, it's to observe its performance without certain additional components.
    To end Safe Mode restart your Mac normally. Shutdown will take longer as well.
    System performance problems for reasons that cannot be isolated to any other cause justify an SMC reset. Be sure to read the procedure carefully and follow all the steps exactly as written, even if they seem inapplicable or trivial.

  • Restart numbers after previous level CS5

    I have several books with numbered lists in embedded text box sidebars. In each of the sidebars, I have the numbered lists set up as a level 2 numbered list set to restart the numbers after any previous level and the heading, which comes right before the list in every textbox, as a level 1 numbered list with out any number set up so that it doesn't actually appear numbered.  My problem is that the numbers don't reset. I have to manually go to the first item in each of the lists and set it to one because they continue numbering from the previous textbox. They are supposed to restart after the heading, but the heading appears to be ignored. Why is the "restart numbers after any previous level" not working.  Have I set up something wrong?

    An additional thought on this solution:
    Does it make sense to have to set the previous level to always start at 1 to get the next level to restart to 1? Though it doesn't effect my current application, I could see how it would be functionally useless to have that restart standard when using an outline format.  In most outlines the sublists restart after each instance of a previous level, even when the previous levels do not restart.
    Example.
    I First level
         A Second level
              1 Third level   
              2 Third level
              3 Third level
         B Second level
              1 Third level
              2 Third level
    II First level   
         A Second level
              1 Third level
    etc.
    See my point?  If you have to set the First or Second levels in my example to always restart at one to get the next levels to automatically restart at 1 after a previous level occurance, this type of standard outline would not work automatically in InDesign.

  • Table and figure numbering in multi-chapter book

    Using InDesign CC 2014 I am editing a book that consists of 23 chapters. Each chapters are added to the book separately. There are 5 levels of titles, level 1-4 is numbered (first level is the chapter title), the 5th is not.The numbering of the titles in chapters works very well, but I have problem with numbering of figures and tables.
    The numbering of tables and figures should look like this: Table 1.1., 1.2., etc, Figure 1.1., 1.2., etc. The first number is always the chapter number, the second is the number of table/figure in order - within the chapter. I want the second number to re-start in each chapter. But if I select "continue from the previous number" (or something like this - I have Hungarian version, tried to translate to English), the numbering does not re-start with each new chapter, however gets the correct ^H number. If I select "start", all tables and figures will be ^H.1.
    My question is: what should I do on one hand to be able to use (and sync) all formats (including tables' and figures' captions with numbers) in the whole book, in the same time making the figures' and tables' numbering having ^H followed by a number re-starts in each chapter? For this, the table and figure number should be which level on the list? What to do with "restart numbering at this level after" option?
    I have searched the www from A to Z and back but could not find the answer. Please, help me! Oh, and please, write the how-to description step-by-step (maybe illustrated?), as I use Hungarian version, which makes applying the suggestions a bit difficult. Thank you, in advance, for your kind help!

    Darn Framemaker and its use of phantom numbering placeholders.
    But seriously thanks - worked line a champ
    Bob Geib
    Design & Test Engineer
    Microwave Filter Components
    Aeroflex Microelectronic Solutions
    350 Kennedy Drive
    Hauppauge, NY 11788
    Direct: 631-404-3669
    Cell: 526-523-1265
    Email: [email protected]

  • Hard disk in mums macbook failed, bought a new one, formatted it first. Have tried starting it with every possible key and I either get flashing question mark folder or a cursor.

    Hard disk in mums macbook failed, bought a new one, used sata adapter cable to format it for mac first. Connected it and have tried starting it with every possible key combination and I either get flashing question mark folder or a cursor. A disk is stuck in it so I can't boot from OSX, and yes I have tried every option of starting to try and eject disk but none work. HELP ME!

    Five ways to eject a stuck CD or DVD from the optical drive
    Ejecting the stuck disc can usually be done in one of the following ways:
      1. Restart the computer and after the chime press and hold down the
          left mouse button until the disc ejects.
      2. Press the Eject button on your keyboard.
      3. Click on the Eject button in the menubar.
      4. Press COMMAND-E.
      5. If none of the above work try this: Open the Terminal application in
          your Utilities folder. At the prompt enter or paste the following:
            /usr/bin/drutil eject
    If this fails then try this:
    Boot the computer into Single-user Mode. At the prompt enter the same command as used above. To restart the computer enter "reboot" at the prompt without quotes.
    If you have a 2010 MBP or later, then you can use Internet Recovery. Start by rebooting the computer. At the chime press and hold down the COMMAND-OPTION-R keys until a Globe appears in the upper part of the screen. This process can take upwards of 15 minutes to get connected to the Apple network servers. You should eventually see the utility screen of the Recovery HD. You may now go about the process to install Mountain Lion:
    Install Lion/Mountain Lion on a New HDD/SDD
    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
    Boot to the Internet Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND-OPTION- R keys until a globe appears on the screen. Wait patiently - 15-20 minutes - until the Recovery main menu appears.
    Partition and Format the hard drive:
    1. Select Disk Utility from the main menu and click on the Continue button.
    2. After DU loads select your external hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed. Quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion: Select Reinstall Lion/Mountain Lion and click on the Install button. Be sure to select the correct drive to use if you have more than one.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.

  • "Ghost" page numbers on every second page - how to remove?

    Hi,
    I'm setting a short book with Pages and after importing from Word, I'm seeing duplicate, partially hidden additional page numbers on every second page. I'd like to remove them entirely, keeping Pages' page numbering. Removing and inserting page numbers doesn't help and the second set of numbers can't be selected in any way (clicking, dragging don't work). One solution would be to re-import from word, deselecting page numbers beforehand, but I'd rather like avoid this step as I made many changes in Pages.
    Here's a screenshot showing the duplicate page numbers: http://dl.dropbox.com/u/3304376/pages_bug.png
    Does anybody have an idea how to remove them?

    Hello,
    Sometimes in the process of importing from Word, page numbers are improperly converted to Master Objects or Background Objects. Go to Format > Advanced > Make Master Objects Selectable. Then, with the cursor in the Margin of the document, press the Command Key (Cursor changes to an Arrow) and drag the cursor diagonally across the page number to select it. Then press the Delete key and the number should be gone. You need to check carefully to make sure that you have eliminated all the instances. There may be one per Section.
    Jerry

  • Why does footnote text mix with the main text in a documents?

    Hello good people
    I have a annoying problem where the footnote text mixes with the general text in the document in Pages 5.2.
    I'm writing research papers and I use considerable amount of footnotes.  When there is more than a certain amount of footnotes in in one page, the main test of the document seems to fall behind the footnotes, making it almost impossible to read.  The doc prints the same way.  Saving, closing and reopening does not fix the problem.  Exporting to Word does not fix the problem either.  Neither does restarting the computer.
    If I however hit enter until all the text is on a new page, sometimes that fixes the problem.
    I'm using Pages 5.2 on a PowerBook Pro with fully updated Maverick.
    Any solutions or good ideas ?
    All the best

    I don't know about text, but with Email, you are limited to how many bytes an attachment can be. Truthfully, I forget the limit, but there is a limit. One thing you can do is put it on YouTube and then direct the people you want to see the video to that particular URL. Also, I believe that there are a couple of apps which will allow you to send longer videos.

  • My new I pad retina display restarts automatically in every 3 minutes

    I purchased it ( new ipad with retina display wifi + cellular ) one month back. It restarts automatically in every 3 minutes. I tried few tips already like reset n all but all failed. Pls help me

    I also have the NEW IPAD 32 GB Wifi ..
    It also keeps resetting.
    I had bought the same in Jun 2012, When it was new it used to Reset but very rarely.
    In the past few weeks its resetting itself 4-5 times a day within 3-4 hours of usage per day.
    I also went to the Apple Service centre, they kept the Ipad for 2.5 days.. upgraded the firmware or something and gave it back to me saying the prob is resolved,
    Apple Service Engineers are said that its because of the apps, nothing to do with the hardware.
    After using it for 2 days ..It's worse than ever now.. also its heating too much.
    Today morning i just connected the charger and it again re booted.
    Not sure what to do

Maybe you are looking for