Add a line as part of a character style in InDesign CS4

Hi all

I am new to InDesign and am in the process to design a 4-page newsletter inside IT Department of my company.

Each page (A4) has 2 columns and contains one or more articles.

I would like to create a character style to format the title of each article so that it stand out and include a line under the text.

I took a look at in the underline options and almost found what need me except that I would like until the line is the same length as the column width and not the length of the text that she says. If I managed to get what I wanted by drawing a line; but is it possible to include this line in my style "section header" so I shouldn't draw every time?

Or maybe there is an option to make the longer than the text underline, but I can't find it.

Thanks in advance

A paragraph NET is what you are looking for.

Bob

Tags: InDesign

Similar Questions

  • That part of my character style will apply when it is used in a number format.

    I created a NOTE: format. I used a numbering format to create it in the balls and the section number of the paragraph styles dialog box as follows:

    Type from the list: Numbers of

    Format: None

    Number:   NOTE: ^ t

    Character style: My Style of special character

    And here's my character style:
    Stress: WE
    Weight: 15 pt
    Offset:-4
    Color: Black
    Tint: 20%
    And here's the problem:
    Underscore does not show upward when the character style is used since then in the bullets and numbering section of the paragraph style. I can apply the character to plain old text and t style will work fine. But the part of the character style does not appear upward when it is referenced on the bullets and numbers of the screen. Curiously, bar has the same problem. The rest of my work of style attributes (font, color, etc.) of fine character. But underscore does not apply.
    Any ideas as to why?
    Screen shot 2010-03-24 at 2.42.42 PM.png

    Kelly Vaughn wrote:

    I created a NOTE: format. I used a numbering format to create it in the balls and the section number of the paragraph styles dialog box as follows:

    Type from the list: Numbers of

    Format: None

    Number:   NOTE: ^ t

    Character style: My Style of special character

    And here's my character style:
    Stress: WE
    Weight: 15 pt
    Offset:-4
    Color: Black
    Tint: 20%
    And here's the problem:
    Underscore does not show upward when the character style is used since then in the bullets and numbering section of the paragraph style. I can apply the character to plain old text and t style will work fine. But the part of the character style does not appear upward when it is referenced on the bullets and numbers of the screen. Curiously, bar has the same problem. The rest of my work of style attributes (font, color, etc.) of fine character. But underscore does not apply.
    Any ideas as to why?

    In my view, it is a bug known; Notes does not work in this situation, although other attributes of text, such as "BOLD", color, italic, do.

    This forum and Google search terms as to highlight auto-numbering indesign paragraph style to see some beyond the discussions on this topic.

    HTH

    Kind regards

    Peter

    _______________________

    Peter gold

    Know-how ProServices

  • Is there a way to make a character lowercase style in indesign CS4?

    Is there a way to make a character lowercase style in indesign CS4 - i.e. a script?

    Cannot find a way to do this in GREP.

    I would like to have as a style of character - or a script that modifies a certain style to lowercase characters.

    Try this,

    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.appliedCharacterStyle = "lowercase";//replace your character style name here
    myFinds = app.activeDocument.findGrep();
    for(var i=0;i		   
  • Add numbers of sequential endnote using a character style

    Hello

    I wonder if anyone knows of a script that could insert numbers of endnote sequentially to each instance of a character style.

    Our editing process, we use 'hard' note numbers that are based on numbers of items of the text. When the editing process is finished, we go through and manually change the sequential numbers. The endnote numbers have a special character style, so such a script would go to the first instance of this style of character, replace the characters by '1', then go to the next occurrence of the character style and replace the characters by '2' and so on.

    Any help would be appreciated.

    Alicia Dole

    A standard operation. In the third line, replace "number of hard endnote" with the name of the character style that you use for notes end.

    app.findGrepPreferences = null;
    app.findGrepPreferences.findWhat = '\\d+';
    app.findGrepPreferences.appliedCharacterStyle = 'Hard endnote number';
    found = app.documents[0].findGrep();
    for (i = found.length-1; i >= 0; i--) {
      found[i].contents = String (i+1);
    }
    

    Peter

  • Link to paragraph CS5.5 character style?

    I've created a few different character Styles in Indesign for example SM and I want that all the SM Style of character to bind to its abbreviation is 'Site Manager' in the document.

    Is it possible to connect all this throughought Style character of the document to this part of the document, or I have to create each one individually (monotonous)?

    AHA! Now, I understand. You want to add cross-references to all instances of a given character style programmatically. It is no doubt scriptable, but I don't think that there is a native InDesign tool that does this.  I think Kasyan xref script might be useful to to seriously reduce you the number of clicks you have to do to remove this. However, there is no script that will be "find the first instance of charstyle, define as the target of a hyperlink, find the second instance, do xref in the first instance, find the next occurrence, repeat" - at least I know.

  • background color in the character Style

    Hello

    Can I add padding and background color in a character Style?

    Thank you

    Not both.

    Is the common trick to add a background color to the underline for a very thick line (about the width of your leader) and the appropriate color and set the offset to move "up" behind the text (the default is to descend to the base of his thick line).

    You can not add padding left and right in a character style, you need to add some spaces (thin, or what you need) by hand.

  • Selection of parts and columns, or entire lines and apply the character style

    I am trying to apply character styles to certain parts/whole rows and columns.

    I can change individual cells with the following code...

    table = app.selection[0];
    if (table.hasOwnProperty("baseline")) table = table.parent;
    if (table instanceof Cell) table = table.parent;
    if (table instanceof Column) table = table.parent;
    if (table instanceof Row) table = table.parent;
    if (table instanceof Table)
    
    {
     table.rows[0].cells[6].texts[0].appliedCharacterStyle = "none report";
     }
    

    ... but when I try to select an entire line, I get the error 'Object does not support property or method' texts. "" "When I try one of the following two codes.

    {
     table.rows[0].cells.texts.appliedCharacterStyle = "none report";
     }
    

    {
     table.rows[0].cells.appliedCharacterStyle = "none report";
     }
    

    Anyone know how I can do the following?

    1. Select any row (or column) and apply the character style

    2. Select the last line (regardless of the number of rows in the table) and apply the character style

    3. apply the character style to specific columns (with theexception of the cells of two albums)

    Thank you!

    Hello

    Change this line:

    table.columns[a].cells.itemByRange(2,-1).texts.everyItem().appliedCharacterStyle = "chart orange";
    

    for the first 2 rows in each column

    Jarek

  • All or part of the character, do not print in Windows 8

    Printer HP DeskJet 6840 worked very well under Windows 7 but now on Windows 8, in some cases, parts of the first character in line are reported missing and occasionally more characters missing in some areas.  In some cases, the upper part of the character is absent, and in some cases, the last character online missing all or part of itself.  The printer is connected to my local network via a cable (not for wireless).

    The hardware test page prints fine (says there is ink and the jets are clean), but the Test Page from printer Windows and other programs (Word, Excel, etc.) have this injury problem.  When you print to my printer HP OfficeJet 6700 (from the same computer), I can print correctly.  The 6700 is connected wireless.

    I downloaded, removed, reinstalled the latest driver HP and all Windows updates are installed.  I am willing to sell the printer on eBay and buy something else, but if someone on this forum could offer suggestions.

    Thank you in advance,

    Bob

    Hi rcowen, sorry to hear you have s question to get your printer to work correctly with windows 8.   I did some research and I noticed that this model of printer is not supported with Windows 8.  Here is a document that shows the minimum requirements. http://goo.GL/IMWBER

    What you can try to do is to use the generic Windows 8 printer driver.  If you go to add a printer option in windows 8 and select the 990c Deskjet printer driver or the Deskjet 550 c printer driver and then connect your printer, this may solve your problem.  I can't guarantee that it works, but I had it turn out to be successful for me in the past.

    Another option, because you have an HP printer, you may well qualify for the "Trade In Trade Up" program that offers HP.  Everything you need to call HP at 1-800-474-6836 and ask about this option.  You will be asked your serial number located on the back of your printer on a sticker that is located close to a bar code.

    If you have any other questions, feel free to write again and I'll be more than happy to help you.

    Thank you

    Waterboy71

  • How to add a character style in the active document

    Hi experts

    How to create a character style in the active document.

    How to make the script work.

    Thank you

    Respect of

    John

    var myCharacterStyle;

    myDocument var = app.activeDocument;

    var myCharacterStyle = myDocument.characterStyles.add({name:"c"});)

    myCharacterStyle.strikeThru = true;

    myCharacterStyle.strokeColor = 'Black ';

    myCharacterStyle.add)

    There is not much to say about your code. Only the last line would cause a problem. A possible hiccup is also on the fact that the style may already exist when you want to add.

    myDocument var = app.activeDocument;

    var myCharacterStyle = myDocument.characterStyles.item ('c');

    ! myCharacterStyle.isValid & myCharacterStyle = myDocument.characterStyles.add({name:"c"});)

    myCharacterStyle.strikeThru = true;

    myCharacterStyle.strokeColor = 'Black ';

  • Is it possible to add text to the cells and apply the character style in the cell

    I work in InDesign on Mac 5.

    I have two tables of formatting with information that will be eventually combined. I implemented the scripts I found on these forums to add the columns needed, merge lines and fill the cells merged with the appropriate color, but can't two remaining tasks.

    1. is it possible to add text to a cell of some?

    2 and it is possible to apply a character style to cells? (different cells than those that I need to add some text)

    I played with this code but do not know if it is even close...

    {

    table. Rows [0]. Cells [0]. InsertText (' CS/PS");

    }

    {

    table. Rows [0]. Cells [0] .appliedCharacterStyle ("bold");

    }

    Here are the scripts that I have combined so far for the table...

    Add column

    myTable = app.selection [0];

    MyColumn = myTable.columns [1];

    for (a = 0; < 1; a ++)

    {

    myTable.columns.add (LocationOptions.AFTER, myColumn);

    }

    Merge lines

    table = app.selection [0];

    If (table.hasOwnProperty ("baseline") table) = table.parent;

    If (instanceof cell table) table = table.parent;

    If (instanceof column table) table = table.parent;

    If (instanceof row table) table = table.parent;

    If (instanceof Table table)

    {

    table. Rows [0]. Cells [0]. Merge (table.rows [0] .cells [1]);

    }

    {

    colours alternating in merged lines

    r = table.rows [1];

    n = app.activeDocument.swatches.item ("orange");

    b = app.activeDocument.swatches.item ("PANTONE 3005 C");

    for (c = 0; c < r.cells.length; c ++)

    {

    If (c & 1)

    r.Cells [c]. Properties = {fillColor:b};

    on the other

    r.Cells [c]. FillColor = n;

    }

    }

    Hello

    1. If you want to add the text, go further in:

    table. Rows [0]. Cells [0] .insertionPoints [0] .silence = ' CS/PS;

    2 similar with application of styles:

    table. Rows [0]. Cells [0] .texts [0] .appliedCharacterStyle = "bold" / / If this style is present in your doc

    Jarek

  • Add bus lines?

    Hello

    I was wondering if it is possible to add buses lines (with verification by Apple of course) as public transport network which has 22 lines around my town, but the Maps app informs he...

    Sincerely

    Hello

    It is a community of user-oriented support.

    If you want to send a feature request to Apple, you can do it here:

    https://www.Apple.com/feedback/iPhone.html

  • How to add directional lines on a map in a phone book to show the destinations?

    Directions in iPhoto do not match the real software. How do I add directional lines on a map to show where we left and where are final destination will be?

    What version of iPhoto do you use?  Or you use 'Photos for Mac', as you post the pictures to Mac forum?

    In iPhoto 9.6.1 between that you can add markers place lines by activating the lines in the options for the cards.  The value 'Lines' 'Right' or 'curve '.

  • JavaScript function to add a line/record to grid

    How to add a line/record to a grid defined by the designer of service using Javascript? Are there predefined functions / no work around

    Here are some examples of JavaScript, you can use:

     function AddRowToGrid(gridName) { var grid = nsServiceRequest.extjsGridList[gridName]; var store = grid.getStore(); grid.stopEditing(); var newRow = store.getCount(); var currentRecord = store.getAt(0); var myEntry= store.recordType; var newRowEntry= new myEntry(); store.insert(newRow, newRowEntry); }

  • How to add multiple lines when the button is clicked

    How to add multiple lines when the click on button now is just add a row .plz give me idea how... waiting for answer

    / public final class screen extends MyScreen
    {
    /**
    * Creates a new object of MyScreen
    */
    ObjectChoiceField obj1 obj2, obj3, obj4.
    Table of String() = {'101 ', ' 102'};
    String of shadow [] = {"Shade1", "Shade2"};
    Rolls of string [] = {'101 ', ' 102'};
    String cutting [] = {"100-150", "150-200"};
    Chain of selectedindex1, selectedindex2, selectedindex3, selectedindex4;
    LabelField lbl1 lbl2, lbl3, lbl4;
        
    GFM LinedGridFieldManager;
    HFM HorizontalFieldManager, hfm1, hfm2 hfm3;
    VerticalFieldManager vfmMain;
        
    public MyScreen()
    {
        
    Set the displayed title of the screen
    hfm1 = new HorizontalFieldManager (HorizontalFieldManager.NO_VERTICAL_SCROLL |) HorizontalFieldManager.NO_VERTICAL_SCROLLBAR);
    hfm2 = new HorizontalFieldManager (HorizontalFieldManager.NO_VERTICAL_SCROLL |) HorizontalFieldManager.NO_VERTICAL_SCROLLBAR);
    hfm3 = new HorizontalFieldManager (HorizontalFieldManager.NO_VERTICAL_SCROLL |) HorizontalFieldManager.NO_VERTICAL_SCROLLBAR);
    HFM = new HorizontalFieldManager (HorizontalFieldManager.FIELD_RIGHT);
    vfmMain = new VerticalFieldManager (Manager.NO_VERTICAL_SCROLL |) Manager.NO_HORIZONTAL_SCROLLBAR);
            
    obj1 = new ObjectChoiceField ("", graph, 0, FIELD_LEFT);
    obj2 = new ObjectChoiceField ("", blind, 0, FIELD_LEFT);
    Obj3 = new ObjectChoiceField ("", rolls, 0, FIELD_LEFT);
    Obj4 = new ObjectChoiceField ("", cuts, 0, FIELD_LEFT);
            
    LBL1 = new LabelField("");
    LBL2 = new LabelField("");
    lbl3 = new LabelField("");
    lbl4 = new LabelField("");
            
    ButtonField btnAdd = new ButtonField ("ADD", FIELD_RIGHT);
            
    GFM = new LinedGridFieldManager (4, LinedGridFieldManager.VERTICAL_SCROLL);
            
    hfm1.setMargin (20, 0, 10, 0);
    hfm1. Add (new LabelField ("Chart"));
    hfm1. Add (obj1);
    hfm1. Add (new LabelField ("Shade"));
    hfm1. Add (obj2);
            
    hfm2. Add (new LabelField ("Rolls"));
    hfm2. Add (Obj3);
    hfm2. Add (new LabelField ("Cuts"));
    hfm2. Add (Obj4);
    HFM. Add (btnAdd);
            
    GFM. Add (new LabelField ("Chart"));
    GFM. Add (new LabelField ("Shade"));
    GFM. Add (new LabelField ("Rolls"));
    GFM. Add (new LabelField ("Cuts"));
            
    vfmMain.add (hfm1);
    vfmMain.add (hfm2);
    vfmMain.add (hfm3);
    vfmMain.add (hfm);
    vfmMain.add (new SeparatorField());
    vfmMain.add (gfm);
    Add (vfmMain);
            
    btnAdd.setChangeListener (new FieldChangeListener()
    {
    ' Public Sub fieldChanged (field field, int context) {}
    TODO self-generating method stub
    selectedindex1 = chart [obj1.getSelectedIndex ()];
    selectedindex2 = shade [obj2.getSelectedIndex ()];
    selectedindex3 = rolls [obj3.getSelectedIndex ()];
    selectedindex4 = cuts [obj4.getSelectedIndex ()];
                    
    While (LBL1. GetText(). Equals("") | LBL2. GetText(). Equals("") | lbl3. GetText(). Equals("") | lbl4. GetText(). Equals(""))
    {
    LBL1. SetText (selectedindex1);
    LBL2. SetText (selectedindex2);
    lbl3. SetText (selectedindex3);
    lbl4. SetText (selectedindex4);
                    
    GFM. Add (LBL1);
    GFM. Add (LBL2);
    GFM. Add (lbl3);
    GFM. Add (lbl4);
                    
    }
    }
    });
    }
    }

    Hi Piya,

    I run your code, and according to your logic that it works correctly.

    It's adding that line only once because according to your logic that one line can be added to MDT, if you do not want to add line on each click on the button, follow these steps:

    selectedindex1 = chart [obj1.getSelectedIndex ()];
    selectedindex2 = shade [obj2.getSelectedIndex ()];
    selectedindex3 = rolls [obj3.getSelectedIndex ()];
    selectedindex4 = cuts [obj4.getSelectedIndex ()];

    Lbl1 LabelField = new LabelField("");
    Lbl2 LabelField = new LabelField("");
    LabelField lbl3 = new LabelField("");
    LabelField lbl4 = new LabelField("");
    If (LBL1. GetText(). Equals("") | LBL2. GetText(). Equals("") | lbl3. GetText(). Equals("") | lbl4. GetText(). Equals(""))
    {
    LBL1. SetText (selectedindex1);
    LBL2. SetText (selectedindex2);
    lbl3. SetText (selectedindex3);
    lbl4. SetText (selectedindex4);
                    
    GFM. Add (LBL1);
    GFM. Add (LBL2);
    GFM. Add (lbl3);
    GFM. Add (lbl4);
                    
    }

  • tabular: Add the line: line does not get inserted

    Hi all

    I have a tabular presentation based on a products table, quantity, unit_price and product_id columns

    in the form of Tha also has a calculated field price (unit_price * amount) and a total on the price column

    When the user changes unit_price or quantity, the price is calculated together total whith, this is done using javascript

    I want to accomplish is add when you click line, and then the total row of the report should remain the last row

    I managed to do it, but when I add a line and then fill in the same row is ignored by apex, 0 rows inserted

    This is because when you change a field in the hidden input field fcud_xxxx does not change to would be "to 'C'

    How can I fix this, I have to write a change event for each column?

    any other ideas?

    I put the code on apex.oracle.com

    workspace: martijnke

    login/password: demo/demo

    application: 78396: apex advance

    Start the application and click orders, and then click on any order to go to the edit page 4 control elements

    Click Add line and see what happens

    the javascript code is on page 4, the function is called switch_last_row()

    I found this in widget.tabular.js:

       // Register change handler on new row form fields, change "fcud_*" hidden element to C if a change occurs
            lNewRowIndex = tabular.pad( ( tabular.gNumRows + tabular.gNewRows ), 4 );
            $( ":input[id^=f][id$=_" + lNewRowIndex + "]", apex.gPageContext$ ).change( function() {
                $( "#fcud_" + lNewRowIndex, apex.gPageContext$).val( "C" );
            });
    

    Why change this event not working for my vacuum dial-up?

    DB: 11 GR 2

    Apex 5.0.2

    KR

    Martin

    Martijnke wrote:

    I have a tabular presentation based on a products table, quantity, unit_price and product_id columns

    in the form of Tha also has a calculated field price (unit_price * amount) and a total on the price column

    When the user changes unit_price or quantity, the price is calculated together total whith, this is done using javascript

    I want to accomplish is add when you click line, and then the total row of the report should remain the last row

    I managed to do it, but when I add a line and then fill in the same row is ignored by apex, 0 rows inserted

    This is because when you change a field in the hidden input field fcud_xxxx does not change to would be "to 'C'

    How can I fix this, I have to write a change event for each column?

    any other ideas?

    I put the code on apex.oracle.com

    workspace: martijnke

    login/password: demo/demo

    application: 78396: apex advance

    Thanks for the creation of the example. Makes it so much easier to understand the problem and to work there.

    Start the application and click orders, and then click on any order to go to the edit page 4 control elements

    Click Add line and see what happens

    the javascript code is on page 4, the function is called switch_last_row()

    I found this in widget.tabular.js:

    1. Sign change on the form fields Manager new line, change "fcud_ *" element hidden C if a change occurs
    2. lNewRowIndex = tabular.pad ((tabular.gNumRows + tabular.gNewRows), 4);
    3. $(«: entrée [id ^ = f] [id$ = _ » + lNewRowIndex + «]», apex.gPageContext$) .change (function() {}
    4. $(«_#fcud__»_+_lNewRowIndex,_apex.gPageContext$).val ('C');
    5. });

    Why change this event not working for my vacuum dial-up?

    It does not work because the use of the method. html() in this function replaces the DOM elements these managers events are related to the:

    function switch_last_row(){
          var l_total =  $('td[headers="CHECK$01"] b').parent().parent().html();
      var l_last = $('td[headers="CHECK$01"]');
      var count = l_last.length;
      //$('td[headers="CHECK$01"] b').parent().parent().html(l_last[count - 1].innerHTML);
      var v_html = $(l_last[$('td[headers="CHECK$01"]').length - 1]).parent().html();
          //alert(l_total);
          //alert(v_html);
          $(l_last[count - 1]).parent().html(l_total);
          $(l_last[count - 2]).parent().html(v_html);
    }
    

    Event managers are left intact by using an approach much more simple that moves the total line node below the newly added in the DOM instead of exchanging their content:

    function switch_last_row() {
      var totalRow = $('td[headers="CHECK$01"] b').closest('tr');
      totalRow.next().after(totalRow);
    }
    

    I created a demonstration of this in page 4 a new application in your workspace. However, this leads to a number of other problems. As I'm not sure of the magnitude that these additional questions were present or planned in the original, I left things to this page 4 and started from scratch on pages 586 and 587. In general, the JS code in the example seems to be too procedural. It does not entirely the ability to work at a higher level of abstraction using jQuery (' write less do more ") and the DOM objects. Doing this, in conjunction with dynamic actions APEX gives more compact code, better separation of concerns and an application that is much easier to debug and maintain. Compare the use of the CSS level page and unique dynamic action to bind several columns of report versus change events manually adding/changing the attributes of style event and online at the column level.

Maybe you are looking for