Insert a blank space in the paragraph style?

Is it possible to integrate a white space inserted (en character) in a paragraph style?

I created a paragraph to chapter headings style. Chapter and number are centered horizontally on the page with a thick end line (key) on each side - a little like that, except that I use the dashboard to create the line in this example:

-------------------------------------  Chapter 2  ------------------------------------

Inserted white spaces before and after 'Chapter 2'.  However, when I try to apply the paragraph style to another title, the spaces are not there.

(Line thin thickness was created as text underscore and the offset is vertically centered with the text.  It would make a difference if I created the thick end line in the form of a graph?)

Oh and I also tried to create an object style, but it does not recognize spaces, either.  I know that something will work, but little by little learning has not met yet the solution.

Thank you.

Do it like this:

1 make the high line a paragraph above net. Assign the 'Column' width (full) and set its vertical offset in right position.

2. Add a paragraph below NET. Together, this upright even shifted, but makes a little (or a lot) more thick. Set its color [Book]. Set the width of 'Text', not 'column '. Then set the negative value of the width approx. white space you want on the left and right - something like 'mm-2' the left indent and right.

3. you're done!

Tags: InDesign

Similar Questions

  • Increase the space in the paragraph style

    Hello

    My Indesign file has "EXT and QUOTATIONS" paragraph styles, now I want to increase the above and below the space-2 (default) points to "EXT and QUOTATIONS. Is it possible my script.

    by

    hasvi

    Hi Hasvi,

    Use the code below.

    var doc = app.activeDocument;

    paragraphs var = app.activeDocument.stories.everyItem ().paragraphs.everyItem () .getElements ();

    var oldhmunits = doc.viewPreferences.horizontalMeasurementUnits;

    var oldvmunits = doc.viewPreferences.verticalMeasurementUnits;

    doc.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;

    doc.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;

    for (var i = 0; i)<>

    {

    If (paragraphs [i].appliedParagraphStyle.name == "EXT": paras [i].appliedParagraphStyle.name == "QUOTES")

    {

    paras [i] .spaceBefore = paragraphs [i] .spaceBefore + 2;

    paras [i] .spaceAfter = paragraphs [i] .spaceAfter + 2;

    }

    }

    doc.viewPreferences.horizontalMeasurementUnits = oldhmunits;

    doc.viewPreferences.verticalMeasurementUnits = oldvmunits;

    Kind regards

    Cognet

  • How to insert an ellipsis in the paragraph style?

    Hi all

    In the paragraph style, how to insert the selection to the last paragraph symbol.

    Please someone help me solve this problem.

    I have attached the screenshot of the sample. Like that, I have to insert "selection" symbol (three points) in the indesign paragraph style options.

    ellipse.jpg

    Very simple to do this, follow these steps

    1. double click on the paragraph style if you created (if this isn't the case create a new paragraph style, see the image)

    2. in paragraph style options, choose paragraph nets and do all the settings, see the image

    Hope this will help you

    Thank you

  • Remove the paragraph style name space

    Hi all

    There is a space character at the end of my paragraph style name.

    How can we delete [space] after the end of the paragraph style name? I don't want to delete [space] if she came between paragraph style names.

    Please provide the js code.

    Thank you

    Tansk

    Please provide the js code.

    Oh sure, you hurry, right?

    You can not call the forum for all the subordinate tasks script? Please? In these six hours you were to twiddle their thumbs and nervously checking the forum every five minutes or so, you could do this by hand.

    Oh whatever:

    for (p=2; p		   
  • Difference in design mode and mode overview of the design of the site Muse [was: space before the paragraph seems good in Muse, but in Safari and Chrome it seems practically double]

    My space before the paragraph looks good in Muse, but in Safari and Chrome it seems practically double visually. Is this a known bug, or is there a workaround or something to check on my end?

    Screen Shot 2016-03-17 at 10.44.24 AM.png

    The bootstrap css as you seem to have inserted adds a margin at the bottom of each paragraph 10px.

  • Script will not apply the paragraph style

    Hello

    I'm new to scripting in InDesign (CS3), and I'm trying to understand why the scipt below does not apply a style in the following text file? :

    < ASCII-WIN >

    < ParaStyle: Heading 1 > who are we? < ParaStyle >:

    For ease of reading, I have shortend the text file to just two lines.

    The script that I use to open and to format the text file is:

    Create a new document.

    myDocument var = app.documents.add ();

    Set the units of measure and the origin of the rule.

    myDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;

    myDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;

    myDocument.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin;

    Get a reference to the first master spread.

    var myMasterSpread = myDocument.masterSpreads.item (0);

    Get a reference to preferences on the margins of the first page in the Master spread.

    var myMarginPreferences = myMasterSpread.pages.item (0) .marginPreferences;

    Now set up the page margins and columns.

    myMarginPreferences.left = 4;

    myMarginPreferences.top = 70;

    myMarginPreferences.right = 70;

    myMarginPreferences.bottom = 78;

    myMarginPreferences.columnCount = 2;

    myMarginPreferences.columnGutter = 14;

    The margins of page and columns for the right-hand page.

    var myMarginPreferences = myMasterSpread.pages.item (1) .marginPreferences;

    myMarginPreferences.left = 48;

    myMarginPreferences.top = 70;

    myMarginPreferences.right = 70;

    myMarginPreferences.bottom = 78;

    myMarginPreferences.columnCount = 3;

    myMarginPreferences.columnGutter = 14;

    Adding Master Page items

    var myMasterSpread = myDocument.masterSpreads.item (0);

    var myLeftPage = myMasterSpread.pages.item (0);

    var myRightPage = myMasterSpread.pages.item (1);

    var myLeftFooter = myLeftPage.textFrames.add ();

    myLeftFooter.geometricBounds = [70, 742, 728, 528];

    myLeftFooter.textFramePreferences.firstBaselineOffset = FirstBaseline.leadingOffset;

    myLeftFooter.contents = SpecialCharacters.autoPageNumber;

    myLeftFooter.parentStory.characters.item (0) .pointSize = 11;

    myLeftFooter.parentStory.characters.item (0) .leading = 14;

    var myRightFooter = myRightPage.textFrames.add ();

    myRightFooter.geometricBounds = [48, 742, 728, 542];

    myRightFooter.textFramePreferences.firstBaselineOffset = FirstBaseline.leadingOffset;

    myRightFooter.contents = SpecialCharacters.autoPageNumber;

    myRightFooter.parentStory.characters.item (0) .pointSize = 11;

    myRightFooter.parentStory.characters.item (0) .leading = 14;

    myRightFooter.parentStory.characters.item (0) .justification = Justification.rightAlign;

    Adding master text frames

    var myLeftPage = myMasterSpread.pages.item (0);

    var myRightPage = myMasterSpread.pages.item (1);

    var myLeftTextFrame = myLeftPage.textFrames.add ();

    myLeftTextFrame.geometricBounds = [70, 70, 714, 528];

    myLeftTextFrame.textFramePreferences.firstBaselineOffset = FirstBaseline.leadingOffset;

    myLeftTextFrame.textFramePreferences.textColumnCount = 3;

    myLeftTextFrame.textFramePreferences.textColumnGutter = 14;

    Add a label to make the image easier to find later.

    myLeftTextFrame.label = "BodyTextFrame";

    var myRightTextFrame = myRightPage.textFrames.add ();

    myRightTextFrame.geometricBounds = [70, 48, 714, 542];

    myRightTextFrame.textFramePreferences.firstBaselineOffset = FirstBaseline.leadingOffset;

    myRightTextFrame.textFramePreferences.textColumnCount = 3;

    myRightTextFrame.textFramePreferences.textColumnGutter = 14;

    Add a label to make the image easier to find later.

    myRightTextFrame.label = "BodyTextFrame";

    Link the two frames using the nextTextFrame property.

    myLeftTextFrame.nextTextFrame = myRightTextFrame;

    The substitution of Master Page points and adds text

    var myTextFrame = myDocument.masterSpreads.item (0).pages.item (1).textFrames.item (0) .override (myDocument.pag es.item (0));

    Add text by setting the contents of the insertion of a string.

    In JavaScript, "\r" is a return character.

    .silence myTextFrame.insertionPoints.item (0) = "dok\r";

    Adding and applying a paragraph Style

    var myParagraphStyle = myDocument.paragraphStyles.item ("title 1");

    try {}

    var myName = myParagraphStyle.name;

    }

    {} catch (MonErreur)

    //The style of paragraph don't have not exist, so create it.

    myParagraphStyle = myDocument.paragraphStyles.add ({name: 'Title 1'});

    }

    We need to create a color. Check if the color already exists.

    myColor var = myDocument.colors.item ("Green");

    try {}

    myName = myColor.name;

    }

    {} catch (MonErreur)

    //The color have not exist, so create it.

    myColor = myDocument.colors.add ({name: 'Green', model: ColorModel.process, colorValue:[100,0,100,0]});})

    }

    Now set the formatting of the paragraph style.

    myParagraphStyle.appliedFont = "Arial";

    myParagraphStyle.fontStyle = "Bold";

    myParagraphStyle.pointSize = 24;

    myParagraphStyle.spaceAfter = 24;

    myParagraphStyle.spaceBefore = 24;

    myParagraphStyle.fillColor = myDocument.colors.item ("Green");

    Apply the style to the paragraph.

    myDocument.pages.item (0).textFrames.item (0).paragraphs.item (0) .applyParagraphStyle (myParag raphStyle, true);

    You can also use:

    myDocument.pages.item (0).textFrames.item (0).paragraphs.item (0) .appliedParagraphStyle = //myParagraphStyle;

    Import a text file

    Display a standard dialog box open the file to select a text file.

    var monFichierTexte is File.openDialog ("choose a text file");.

    If you selected a text file, and if you didn't press Cancel,

    Place the file of text on the first insertion point after the title.

    If ((monFichierTexte! = "") & & (monFichierTexte!) (= null)) {}

    myTextFrame.insertionPoints.item(-1).place (myTextFile);

    }

    Place a graphic

    Display a standard dialog box open the file to select a graphic file.

    var myGraphicFile is File.openDialog ("choose a graphic file");.

    If you have selected a graphics file, and if you didn't press Cancel,

    Place the graphic file on the page.

    If ((myGraphicFile! = "") & & (myGraphicFile!) (= null)) {}

    var myGraphic = myDocument.pages.item (0) .place (myGraphicFile);

    //Since you can place multiple graphics at once, the place method

    //returns a table. For the graph you have placed, get the first

    //item in the table (beginning of JavaScript arrays with element 0).

    myGraphic = myGraphic [0];

    //Create a style object to apply to the graphic image.

    var myObjectStyle = myDocument.objectStyles.item("GraphicFrame");

    try {

    var myName = myObjectStyle.name;

    }

    catch (MonErreur) {}

    //The an object style have not exist, so create it.

    myObjectStyle = myDocument.objectStyles.add({name:"GraphicFrame"});)

    }

    myObjectStyle.enableStroke = true;

    myObjectStyle.strokeWeight = 3;

    myObjectStyle.strokeType = myDocument.strokeStyles.item("Solid");

    myObjectStyle.strokeColor = myDocument.colors.item("Green");

    //The frame containing the graphic is the parent of the graphic.

    myFrame var = myGraphic.parent;

    myFrame.applyObjectStyle (myObjectStyle, true);

    //Resize the frame to a specific size.

    myFrame.geometricBounds = [0,0,600,600];

    //Fit the graph in the image proportionally.

    myFrame.fit (FitOptions.proportionally);

    / / Next, mount the frame to the resized image.

    myFrame.fit (FitOptions.frameToContent);

    var myBounds = myFrame.geometricBounds;

    var myGraphicWidth = myBounds [3] - myBounds [1];

    //Move the graphic frame.

    var myPageWidth = myDocument.documentPreferences.pageWidth;

    var myTopMargin = myDocument.pages.item (0).marginPreferences.top;

    myFrame.move ([myPageWidth-myGraphicWidth, myTopMargin]);

    //Apply a wrap to the graphic frame.

    myFrame.textWrapPreferences.textWrapType = TextWrapTypes.boundingBoxTextWrap;

    myFrame.textWrapPreferences.textWrapOffset = [12, 24, 12, 24].

    }

    I hope someone can point me in the right direction.
    Thanks in advance.
    Ron

    Hey, Ron.

    The problem has nothing to do with your script. You can see if you attempt to place the file from indesign tagged text by hand.

    Your instinct for divide and conquer for debugging is a good - have a short text file to work with is very useful - of course this is also true for the script.

    During the validation of the scripts on the forum, please do not use the syntax insert > feature Java which lies behind the > arrow in the toolbar. Otherwise, cut and paste your script are difficult requiring manual corrections.

    Anyway, your problem is that each paragraph can have only a single paragraph style, and it's the last one that you define.

    So in your IDTT file, you set the heading 1 paragraph style, enter the content of the paragraph and then set the style of paragraph votes to zero.

    If you have included a line break before setting the style of paragraph votes to zero, you must set the None style for the following paragraph. But since you have not, it resets just the style to the current paragraph.

    In short: success back before .

  • Problem with the paragraph style "paragraph NET."

    I have a paragraph style with a paragraph in her net. There is something that I don't know what to do about it.

    When I hit 'back' to move a paragraph with this style, it leaves a rule in its wake. Here is a screenshot:

    Screen shot 2010-08-15 at 9.58.04 AM.png

    The title "Introduction" has a paragraph with a net of applied paragraph style. I put the cursor just before the word 'Introduction', press return, and it leaves a line in the previous line. Weird huh?

    Don't use not paragraph refers ALWAYS to put in place a space between paragraphs. Use the space before or after the space in the paragraph in withdrawal and spacing Style.

    If it's the beginning of a block of text and you want it to appear lower in the frame adjust them the object > text frame Options and give him a Medallion from the top. OR this way http://indesignsecrets.com/push-down-the-first-line-of-text.php

    The line of paragraph appears is because when you press back the paragraph he the same paragraph style, ergo the same paragraph style. To get rid of it, change the paragraph style from the paragraph above to something else.

    But you shouldn't really use back to add a space between paragraphs. Space before and after the space are much more effective.

    http://blogs.Adobe.com/indesigndocs/2009/05/5_typing_rules.html

    http://creativementor.com.au/adding-space-after-paragraphs

    http://help.Adobe.com/en_US/InDesign/6.0/WSa285fff53dea4f8617383751001ea8cb3f-6dcea.html

  • Create a space after a paragraph Style

    Good, all this may seem odd. All I want to do in CS4 is have a pt 4 extra space after a particular paragraph style. Specifically, my paragraph style, body text, has already "space after" specified in 3 pt. fine. But, for example, when I have three paragraphs of just this style, I want the three paragraphs separated by a pt 4 additional space. (There no consistency in documents when this happens.)

    At first, I thought that it might be possible to do this via a nested character style. Nope. Return to FrameMaker, I used to do this operation manually, whenever I wanted extra space. My coaches adds paragraph tags (ugh).

    Still a newbie...

    Thank you!

    Lizbeth

    Kenneth C. Benson wrote:

    Maybe I'm really missing your meaning here. When I replace a style setting to get more space below, I add the space below the * paragraph *. I don't set anything on the last line. It is no different in Framemaker. In Framemaker, you can add space above or below a paragraph, either as part of a style (FM called a 'format'), or as a replacement style. You "adjust the last line of a paragraph" in each program.

    There is a significant difference between the FrameMaker paragraph
    spacing and more other tools DTP or WP: space between paragraphs FM is
    NO ADDITIVE. Space below a paragraph is not added to the space preceding the
    next paragraph. On FM, wins the largest space. (I think that Ventura)
    This feature has also, or maybe the option for additive or
    agrandissement-one-WINS.)

    If the problem is to make between the paragraph spacing work non-additivement
    as FM, please file a feature request for this as an option, to:

    www.adobe.com/cfusion/mmForm/index.cfm?name=wishform

    EDIT: The forum was unavailable for a while, and my answer by e-mail bounced. At the time that I discovered the email rejected, I saw mention of Lizbeth to have used base-on paragraph styles. Probably the style based on a mysterious behavior. The style based on the property information are most visible in the style of set/change dialog box. I'll enter a request feature of indicator for the property based on appearing in the name of a style far appears and, if possible, displays the name of the function paragraph, character, and style object. Master pages show the letter to master based on the page icons in the pages Panel, but they lose their own letter. I also ask for this feature.

    HTH

    Kind regards

    Peter
    __________________
    Peter gold
    Know-how ProServices

  • Error: «Please insert a blank disc into the CD drive (E :).» Once Windows Media Player detects a new disc, it will start automatically burning"

    Hi, we are currently running Windows XP SP3.  My daughter tries to download a song from Windows Media Player, she needs for her class dance.  It just download the song bad by accident without problem.  Now she's trying to download the song using the same CD (CD - R80) and it gives sound this error: «Please insert a blank disc in the CD drive (E :).» Once Windows Media Player detects a new disc, it will start automatically burning."  Someone please help.  She needs this to practice his senior dance solo.

    As I understand it, the CD was already burned once, and now she's trying to burn on the same CD again? This is not possible, as the CD - Rs can only be burned once. She will need a new blank CD - R, like the error message.

  • Balls, created in the paragraph style options in Indesign

    Hi all

    In the paragraph style, how to create bullets before the text and after the text also.

    Please someone help me solve this problem.

    I have attached the screenshot of the sample. Like that, I must create in indesign paragraph style options.

    Capture.JPG

    Thank you...

  • Graphic object based on the paragraph Style style?

    I just checked the documentation of the API and saw nothing on the point about this.

    Is it possible to write a script that applies a Style object to a jpg image based on the paragraph Style applied to this image jpg online online?

    Hello

    I did the following:

    var curDoc = app.activeDocument;
    
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.findWhat= "~a";
    var allFounds = curDoc.findGrep();
    
    for (var i = 0; i < allFounds.length; i++) {
      var curFound = allFounds[i];
      if (curFound.allGraphics.length > 0) {
        var pStyleName = curFound.paragraphs[0].appliedParagraphStyle.name;
        if (pStyleName == "paraStyle") {
          var rect = curFound.rectangles[0];
          rect.appliedObjectStyle = curDoc.objectStyles.itemByName("myStyle");
        }
      }
    }
    

    Kai

  • How to get the paragraph style menu to detach?

    I wish that the paragraph style menu to behave the way the menu character, that is, as its own independent box. Crazy me a little tied to any "other Panel" - no matter what the name of this Panel, it's that it is attached to.

    Thank you very much!

    Just drag it off the coast in the page.

  • How to set auto resulting in the paragraph style?

    Hello

    I give auto driving the paragraph style. Hux to use 'kTextAttrAutoLeadBoss'.

    Everyone please help.

    Kind regards

    Garza

    Hi Nicolas,.

    in the documentation of IDrawingStyle it says:

    Values less than zero is considered to be 'auto '.

    Hope that helps.

    Markus

  • How to delete, modify or rename/available/imported/defined existing chips and lists numbering in the paragraph style?

    How to rename, delete or change lists in the chips section and numbering in the paragraph Style?

    Screen Shot 2015-05-02 at 13.40.00.png

    Open you select paragraph from the option panel (icon at the top right corner) sets the list (below). Or change the selected list bullet in the bullets & numbering

  • Why my homepage of Muse moving left, leaving a blank space on the right?

    Hello

    I had this problem since I started using the Muse. When the home pages of the sites that I build are displayed on a shelf, they left shift, leaving a blank space on the right side. Strange thing is that it doesn't happen on the home page, and the header (which is on the master home page) remains perfectly centered. I've looked everywhere for answers and the only thing I can find is that there may be an element outside of the page. However it is certainly not the case with my files (or on home pages, nor masters of home page). I have a zoom back and all selected, but nothing falls off the page.

    Here is the link to the site (current):

    CONJURE DESIGNS • an ART DIRECTION, graphic DESIGN, & AGENCY of BRAND LOCATED in NEW HOPE, PA | CONJURE DESIGNS

    Here is the screenshot of the appearance of the homepage on a Tablet:

    image1.PNG

    I wish that I could download the file is 18.5 MB, after stripping on everything except the home page.

    Any help would be greatly appreciated.

    Image of brain above the Cap SERVICES background fill is in a fixed size rectangle sticking out beyond the left and right edges of the page. If you do this 100% the width of the rectangle and position the fill image centered, I believe that the gap to the right of your page in mobile browsers.

Maybe you are looking for