Back

If your email is not recognized and you believe it should be, please contact us.

Forum Replies Created

Viewing 15 posts - 241 through 255 (of 372 total)
  • Author
    Posts
  • in reply to: Help needed, problem here #91572

    Use a paragraph rule above instead of a rule below and give the character style a white fill. Find here a new snip:

    https://www.dropbox.com/s/x4dtuszqt7mhd9t/numberingWhite.zip?dl=0

    Kai

    in reply to: Help needed, problem here #91568

    Download my snippet and have a look at the numbering-options.

    Kai

    > When I do so and attempt to relink the cross references in in the four docs to each other I am only allowed to relink one doc.

    This needs surely a little love and a small(!!) example.

    Kai

    in reply to: Help needed, problem here #91544

    I answered here the same question 4 weeks ago. You can built this circles with para rules. Find here an example: https://www.dropbox.com/s/8ocham9iu9igg36/numbering.zip?dl=0

    Kai

    in reply to: Clarification Re: paragraph without CSS styles #91531

    David B. is correct! It was possible in previous versions of InDesign to skip those classes, if not needed. So in every case you will get classes (name of your style) for box- and inlineelements.

    It seems, that you are familiar with html and css and it is good practice to avoid those ugly css from InDesign and write your own styles. It is not a problem, if the classes are in the html, but if you want to have clean html, I do the following:

    1. Tag all unwanted classes with a class “remove”
    2. Do an search and replace e.g. in BBEdit (it is important to have Multifile-Search with GREP) and remove > classe=”remove”;

    Maybe a word to things like: div.footnote p { indent: 0; etc. }
    This depends on your reader. It may happen, that a reader does only honor styles, that are attached directly to the element.

    Kai

    1. Select one image, not the frame
    2. Set the size to 25% > this value is stored in the clipboard
    3. Select all images, by selecting with the black arrow and choose then Select content from the control panel
    4. Object > Transform again > Transform Sequence Again Individually

    Note that your grid will be destroyed, if you choose frame to content in the next step.

    Kai

    in reply to: Alert message before exporting PDF #91262

    Hi Masood,

    there exists always two kind of people: Graphic designers and scripters. Unfortunately most books and courses are written by scripters. So sometimes very dry stuff and hard to understand. I’m a graphic designer. So if I have problems, I have problems with JS and not the DOM ;-)

    To get a good start, I can recommend Peter Kahrels guide: https://shop.oreilly.com/product/9780596802530.do
    Allthough this isn’t up to date, it covers all important parts.

    Then Grant Gamble: https://www.amazon.de/InDesign-CS5-Automation-Using-JavaScript/dp/1460915380

    And at least: The Javascript course at lynda.com from Simon Allardice

    Notice one big thing:
    You cannot read those books from start to finish. There will always be a situation, where your script goes wrong or you do not understand what the author is tryin’ to say you. This time, the indesignsecrets or adobe-scripting forum is your friend, where you can post your code and people will give you in short an answer.

    hth
    kai

    in reply to: Alert message before exporting PDF #91244

    Try this one and put it in a start up folder. The alert will only have a yes and no. Maybe ok and cancel is possible with script-ui.

    #targetengine "doSomethingInCase"
    
    app.addEventListener("beforeExport", onExport);
    
    function onExport(event) { 
      var result = confirm("Have you check the file thoroughly before exporting the PDF?", true, "WARNING");
    
      if (result == true) {
        return
      };
      else (result == false) {
        event.stopPropagation();
        event.preventDefault();  
      };
      return;
    }
    

    Kai

    in reply to: script to add separators #91082

    Miguel, this seems to be possible, but you should also care of the applied masterpage and if the pages are paginated, those color spreads must be excluded from the count > every 8 pages a new section is needed.

    Kai

    in reply to: Change baseline grid in multiple files in one go? #91047

    I vote for that donate button too, either to the scripter or the forum, cause scripts should not provided for free!

    Let me explain, why I provided sometimes scripts for free nevertheless: In the past 20 years I learned most of my knowledge from lynda.com or forums like these. So why not give something back when it does not cost me much. That means, if the goal is clear, there are no testfiles needed, it takes not longer than 5-10 minutes and it saves hours of work …

    @David: If I have the decission spend $40 for a freelancer or $100 for a script, I would always vote for the script! In this special case, there are maybe 2-4 steps needed per document. So chances are good, that a freelancer will miss step 2 and 4 in 7 or more documents ;-)


    @Chris
    : A big benefit of scripts: If it works, it works! In 60 or 600 documents …

    Kai

    in reply to: Change baseline grid in multiple files in one go? #91041

    Haha, writing the script: 5 minutes, writing the post here: 7 minutes, installing everything: 2 hours, BUT. Running the script 1-2 minutes!

    So Chris, I gave you everything that is needed. It should not take longer than 15 minutes for you to set up everything! A user with a bit experience would need maybe 2 minutes.

    To your questions:
    1. yes. You have the option to align Top of page or Top of margin. So use only one of those 2.
    2. baselineViewThreshold: 50 (interesting to note, that a wrong writing is ignored in this case)

    Kai

    in reply to: Change baseline grid in multiple files in one go? #91036

    Hi Chris, this is possible with very minor steps:

    1. Download the batch converter from Peter Kahrel: https://www.kahrel.plus.com/indesign/batch_convert.html

    2. Expand the file and copy it to your scripting folder

    3. Save these lines as plain text with extension jsx and copy the file to your scripting folder

    function main() {
    app.activeDocument.gridPreferences.properties = {
      baselineColor: UIColors.lightBlue,
      baselineStart: 15,
      // baselineGridRelativeOption: BaselineGridRelativeOption.TOP_OF_PAGE_OF_BASELINE_GRID_RELATIVE_OPTION,
      baselineGridRelativeOption: BaselineGridRelativeOption.TOP_OF_MARGIN_OF_BASELINE_GRID_RELATIVE_OPTION,
      baselineDivision: "22pt", // Increment Every
      baselineViewThreashold: 50,
      baselineGridShown: true,
      gridsInBack: false
    }
    } 
    main ();
    

    If you do not need a line, simply remove it. Note, that “//” is a comment. So these two lines are either/or. Simply comment or remove the other line, if the current result is wrong.

    4. Start the batch converter script: Input/Output > your folder, Ignore errors and Overwrite existing file > checked, Run a script > Select here your saved script, Saved changed documents on closing > checked

    Kai

    in reply to: Delete line starting with a given string #90966

    ^Report.+\r

    Kai

    in reply to: GREP Newcomer #90965

    James, what is the rule to distinguish, if the second entry is part of the place name or the street? If there is no rule, there is no GREP …

    Kai

    in reply to: TOC Leading Dots: Adding a space before page number? #90902

    Ok, I try to explain what is going on here.

    There are two ways of solving the dots issue. But before you decide for a variant, you have to make a preliminary consideration: There is always a space available between the last character in the line and the page number. Because lines can have different length or an m-character has a differenzt width than an i-character > those spaces are always different!

    1. Fill the space (the tab) with an underline:
    If you insert e.g. a thin space after your last character, then a right indent tab and then a en-space before your number and give a underline to your right indent tab, the first dot will start immediately after the thin space and will end exactly before the en-space (note that in practice there is a bit of room because of the tracking of the character). If you insert those dotted underlines for multiple entries and draw a guide on one of those points, you will see that the dotts are not vertical aligned to each other. This happens, cause the distance of two horizontal dotts is calculated by the available space.

    2. Fill the space (the tab) with a leader:
    Because it is important that those dotts are vertically aligned, the start and end point is not realy defined by the end of the thin space or the beginning of the en-space. It may happen, that you insert a thin space and the dot will start visualy at an en-space. In the end you will get different spaces at the beginning and at the end, but perfectly aligned dotts.

    I like to compare this with justified or left-aligned text: Justified > all lines have the same left and right edge. To achieve this, the space between words must be different. Left aligned: same left edge, but different right edge. The width of all spaces between words is the same.

    Now clear?

    Kai

    P.S.: If the spaces are to big, remove the thin space and the en-space and see what is happen.

Viewing 15 posts - 241 through 255 (of 372 total)