Several styles of paragraph in a cell?

Maybe I'm missing something real simple, but I'm having a bit of a problem with the styles.  What I'm trying to do, this is the name of a tool in the style of a paragraph and description (separated from the name by '-') in a different paragraph style - all in the same cell in a table.  Instead, when I try to change the styles he changes all the text in the cell.  Even if I come back and highlight the name of the tool and replace it with a different style description, it changes everything including what is not highlighted text.  If anyone has a solution I would be very happy!

I think what you want to do is nesting of character styles. Paragraph styles will apply to all text before a hard return. Nest a different character style by using your "-" characters.

Tags: InDesign

Similar Questions

  • With the help of several styles of paragraph in a table cell

    Hello

    I'm stuck using several styles of paragraph within a cell. I guess the solution is that I need to start a new paragraph, but so far I have not found a way to do it. When I directly in InDesign, it works fine, but I can not start a new paragraph when you use the script.

    Here's a solution I've tried:

    with {(table)

    .properties de.insertionPoints.item-(1) lines [0] .cells [0] = {}

    content: '1 ' Format string,

    appliedParagraphStyle: styleFormat1

    };

    .properties de.insertionPoints.item-(1) lines [0] .cells [0] = {}

    content: "\rString in size 2',

    appliedParagraphStyle: styleFormat2

    };

    }

    But until now I did not get a new paragraph. When you look at the IDMLs, you can see that InDesign adds a new paragraph inside the cell, while my code remains in the same paragraph.

    Here the IDML result when I do in InDesign:

    "< cell auto ="ue0ie4i0"Name =" "0:0" RowSpan = "1" ColumnSpan = "1" AppliedCellStyle = "CellStyle / $ID / [no]" AppliedCellStylePriority = "0" >

    < ParagraphStyleRange AppliedParagraphStyle = "ParagraphStyle/Format1" >

    < CharacterStyleRange AppliedCharacterStyle = "CharacterStyle / $ID / [no style character]" >

    < content > string to Format 1 < / content >

    < Br / >

    < / CharacterStyleRange >

    < / ParagraphStyleRange >

    < ParagraphStyleRange AppliedParagraphStyle = "ParagraphStyle/Format2" >

    < CharacterStyleRange AppliedCharacterStyle = "CharacterStyle / $ID / [no style character]" >

    < content > string to Format 2 < / content >

    < / CharacterStyleRange >

    < / ParagraphStyleRange >

    < / cell >

    And here is that when I use the script:

    "< cell auto ="ue0ie4i0"Name =" "0:0" RowSpan = "1" ColumnSpan = "1" AppliedCellStyle = "CellStyle / $ID / [no]" AppliedCellStylePriority = "0" >

    < ParagraphStyleRange AppliedParagraphStyle = "ParagraphStyle/Format2" >

    < CharacterStyleRange AppliedCharacterStyle = "CharacterStyle / $ID / [no style character]" >

    < content > string to Format 1 < / content >

    < Br / >

    < content > string to Format 2 < / content >

    < / CharacterStyleRange >

    < / ParagraphStyleRange >

    < / cell >

    It is therefore quite clear my script is not adding a new paragraph. Any ideas how to get a new paragraph so I can use more than one paragraph style?

    I don't have test nore debug your code, but I suggest you another method to apply the content and style of two paragraphs. Do not use a with statement.

    What is your version of InDesign?

    Example:

    // Add new document:
    var doc = app.documents.add();
    // Add two paragraph styles:
    var paraStyle1 = doc.paragraphStyles.add({name : "ParaStyle-1" , pointSize : 20});
    var paraStyle2 = doc.paragraphStyles.add({name : "ParaStyle-2" , pointSize : 15});
    
    // Add a new text frame (default is on page 1):
    var newTextFrame = doc.textFrames.add();
    newTextFrame.geometricBounds = [0,0,"150mm","150mm"];
    
    // Add a table to this text frame:
    var table = newTextFrame.tables.add
    (
        {
            bodyRowCount : 4 ,
            columnCount : 3 ,
            width : "150mm"
        }
    
    );
    
    // Assign the contents as array:
    // The fisrt and only entry in this array will give the first cell its contents:
    table.contents =
    [
        "Paragraph 1"+"\r"+"Paragraph 2"
    ]
    
    // Assign the formatting of the two paragraphs:
    table.cells[0].paragraphs[0].appliedParagraphStyle = paraStyle1;
    table.cells[0].paragraphs[1].appliedParagraphStyle = paraStyle2;
    

    Strategic outcome with InDesign CS6 Mac OS x 10.6.8 v8.1.0:

    Hope, that helps.
    Uwe

  • several styles of paragraph created in 1 doc, but I don't see them in the next doc

    These two documents are chapters in a book.


    They both have been added to the book using the sign +.


    what I did is copy and paste a piece of text of Chapter 1 which retains the style of paragraph I want to use in the document 2.


    -the paragraph style is available.  (I have to be very careful to remove this well pasted text)

    -There must be a better way.


    any tips will be appreciated.

    Thanks again.

    You can either load the first file paragraph styles in the second in the paragraph Styles Panel, or to synchronize styles using the book panel.

  • GREP for changing the style of paragraphs ending with '='

    Hi, I work with a giant list of the names and dates of graduation. Each line ends with a space and an equal sign must have a special paragraph applied to her style. Is it possible to design a "find/replace" for this, instead of manually? I can't understand what would work the GREP search string - I've never worked with him before, and I can't find anything in the lists of the metacharacters that would do the trick. Any ideas?

    In find it on the field just type = $ ( means hit the bar to type a space). The $ at the end means the end of a paragraph, so he could find no instance anywere elsewhere in a paragraph, which is the only reason why you have to GREP for that instead of a search of plain text.

    Set the paragraph style that you need in the form of the change.

    It works only if it IS indeed the end of a paragraph, however. If you have several lines in the same paragraph that ends with =, or more text in the paragraph after the =, you need to show us the structure. Don't forget that the paragraphs can have style single paragraph, applied to the whole paragraph. If you need several styles in the same paragraph, you need to use character styles, which can be applied as nested styles, line styles and GREP styles, or manually, depending on the structure of the text, you have to work with.

  • How can you put several style of character class?

    @How you can put several style of character class?

    If I put: low magenta tooltip centre-left w150 slide down

    Adobe Muse done: Tooltip-magenta-bottom-left-center-w150-slide-down

    Can I apply several styles of character at a time?

    1 - tool - tip

    2 - magenta

    3 bottom

    4 left

    5 - Center

    6 - w150

    7 drag-down

    Not without coding, each time after Muse has updated the code of the web page...

  • Apply the style of paragraph 1 above and the style of paragraph 3 below all paragraphs containing only the italics?

    Hello

    I need a script that can find the paragraphs in italics only glyphs (maybe we can change all that pretty color) and apply the style of paragraph 1 above, the style of paragraph 3 below and this paragraph in italics to paragraph style 2

    Some paragraph of text (for the 1 paragraph style)

    some italic text (for paragraph style 2)

    little text (for the 3 paragraph style)

    After you run the script, I have something like this in 3 styles different points

    a text

    some italic text

    a text

    Lost link!

    /*

    Fixing paragraph style combinations

    Version: 1.2.B

    Script by Thomas Silkjaer

    http://indesigning.NET/

    Minor version b: Bruno Herfst

    + Add any style to replace paragraphs

    + Can cancel

    */

    var the_document = app.documents.item (0);

    Create a list of paragraph styles

    var list_of_paragraph_styles = [];

    var all_paragraph_styles = [];

    the_document.paragraphStyles.everyItem () .name;

    for (i = 0; i< the_document.paragraphstyles.length;="" i++)="">

    list_of_paragraph_styles.push (the_document.paragraphStyles [i]. (Name)

    all_paragraph_styles.push (the_document.paragraphStyles [i]);

    }

    for (i = 0; i< the_document.paragraphstylegroups.length;="" i++)="">

    for (b = 0; b< the_document.paragraphstylegroups[i].paragraphstyles.length;="" b++)="">

    list_of_paragraph_styles.push (the_document.paragraphStyleGroups [i] .name + ' /' + the_document. paragraphStyleGroups [i] .paragraphStyles [i] .name);

    all_paragraph_styles.push (the_document.paragraphStyleGroups [i] .paragraphStyles [i]);

    }

    }

    var list_of_replace_paragraph_styles = list_of_paragraph_styles.slice (0);

    list_of_replace_paragraph_styles.unshift ("[no paragraph style]" "");

    That the dialog box to select the paragraph styles

    var the_dialog = app.dialogs.add ({name: 'Paragraph style pairs Fix'});

    {with (the_dialog.dialogColumns.Add ())}

    {with (dialogRows.Add ())}

    staticTexts.add({staticLabel:"Find:"});)

    }

    {with (borderPanels.Add ())}

    var find_first_paragraph = dropdowns.add ({stringList:list_of_paragraph_styles, selectedIndex:0});})

    staticTexts.add ({staticLabel: "monitoring of"});

    var find_second_paragraph = dropdowns.add ({stringList:list_of_replace_paragraph_styles, selectedIndex:0});})

    }

    {with (dialogRows.Add ())}

    staticTexts.add({staticLabel:"Change:"});)

    }

    {with (borderPanels.Add ())}

    var change_first_paragraph = dropdowns.add ({stringList:list_of_paragraph_styles, selectedIndex:0});})

    staticTexts.add ({staticLabel: "monitoring of"});

    var change_second_paragraph = dropdowns.add ({stringList:list_of_paragraph_styles, selectedIndex:0});})

    }

    }

    {if (the_dialog. Show())}

    Define paragraph styles

    var find_first_paragraph = all_paragraph_styles [find_first_paragraph.selectedIndex];

    anyStyle var = false;

    If (find_second_paragraph. SelectedIndex == 0) {}

    anyStyle = true;

    }

    var find_second_paragraph = all_paragraph_styles [find_second_paragraph.selectedIndex - 1];

    var change_first_paragraph = all_paragraph_styles [change_first_paragraph.selectedIndex];

    var change_second_paragraph = all_paragraph_styles [change_second_paragraph.selectedIndex];

    Set preferences for grep to find to find all the points with the first selected paragraph style

    app.findChangeGrepOptions.includeFootnotes = false;

    app.findChangeGrepOptions.includeHiddenLayers = false;

    app.findChangeGrepOptions.includeLockedLayersForFind = false;

    app.findChangeGrepOptions.includeLockedStoriesForFind = false;

    app.findChangeGrepOptions.includeMasterPages = false;

    app.findGrepPreferences = NothingEnum.nothing;

    app.findGrepPreferences.appliedParagraphStyle = find_first_paragraph;

    app.findGrepPreferences.findWhat = ' $';

    Search current history

    var the_story = app.selection [0] .parentStory;

    var found_paragraphs = the_story.findGrep ();

    var change_first_list = [];

    var change_second_list = [];

    Browse the paragraphs and create a list of words and mark them as index words

    myCounter = 0;

    {}

    try {}

    Create an object to in paragraph reference and the following

    var first_paragraph is found_paragraphs [myCounter].paragraphs.firstItem ();.

    var next_paragraph = first_paragraph.paragraphs [-1] .insertionPoints [-1] .paragraphs [0];

    {if (anyStyle)}

    change_first_list.push (first_paragraph);

    change_second_list.push (next_paragraph);

    } else {}

    Check if the next paragraph is equal to the find_second_paragraph

    if(next_paragraph.appliedParagraphStyle == find_second_paragraph) {}

    change_first_list.push (first_paragraph);

    change_second_list.push (next_paragraph);

    }

    }

    } catch (err) {}

    myCounter ++;

    } While (myCounter<>

    Apply paragraph styles

    myCounter = 0;

    {}

    change_first_list [myCounter] .appliedParagraphStyle = change_first_paragraph;

    change_second_list [myCounter] .appliedParagraphStyle = change_second_paragraph;

    myCounter ++;

    } While (myCounter<>

    Alert ("fact pairs fixation!");

    }

  • How to get all the style of paragraphs and their policies of an indesign file and write all the info with info para in a txt file with scripts

    @

    How to get everyone how to get all the style of paragraphs and their policies of an indesign file and write all the info with info para in a txt file with scriptingstyle and their policies of an indesign file and write all the info with info para in a txt file with scripts

    Hello

    Try this,

    var doc = app.activeDocument,
        pstyles = doc.allParagraphStyles,
        report = "";
    for(var i =0;i
    

    Kind regards

    Cognet

  • Where can I find a list of the new styles of paragraphs 'improved '?

    I'm starting a new project, a book that will become an ebook. I want to start with the new Framemaker 12 Smart Catalog enhancements using a sample or document template.

    My problem? None of the models of book use the improved catalog. Models that do not use the improved catalgoue are thr reference, user manual and parts catalog card. If I use one of these templates, I'll have to do a lot of work to get rid of all the fancy formatting.

    Is there a place where I can get a full-ish paragraph tags names LIST?

    Thanks in advance.

    As far as I KNOW, he is there no master list. If you have 'Tools' Silicon Prairie utilities, you can compile your own lists. See: Silicon Prairie - produced FrameMaker

    The best approach is to use just the special copy to pick up the styles of paragraph and character you want to Add to your new template, and build the fragmented model, i.e. create a FM for your tables, another for your page/sizes page layouts, one for your labels, cross-references, etc. Then combine those required to build the final model. This Lego approach is much more flexible and allows you to change the basic components and quickly make a new new model.

  • Thousands of new Styles of paragraph in CS3

    I have a weird problem with InDesign CS3 has appeared lately: whenever I make a new document, certain Styles of paragraphs 20-60 addition spontaneously in the document. It would not be a big problem, but he has accumulated (the counter is now paragraph Style 4058) and each document is already about a minute to create.

    Has anyone had a similar problem, and what we could do about it?

    Thank you very much

    Ervin

    Do you mean what's happening with file > again and each time more new models are added, not define is not the same thing?

    This sounds like some sort of defective script related to the new command file, or perhaps for starting the application (look in the user scripts you and see if you have a folder named for the likely candidates startup scripts). Whatever it be added any open documents will become a default value for all new wor, so if there is a script added styles every time that the application starts, they would accumulate very quickly.

    I would also start InDesign, and without open docs select and remove all the unwanted styles and then close ID. Now replace your preferences: http://forums.adobe.com/thread/526990

  • [JS, CS3] a script to change the language in all styles of paragraph

    Hello

    I made a script to change the language in all styles of paragraph for "French", but when I run it I get the error: "Invalid request on the root style. Could you please tell me what I'm missing?

    myDoc = app.activeDocument;
    myStyles = myDoc.paragraphStyles;
    for (i = 0; i < myStyles.length; i ++)
    {
    myStyle = myStyles [i];
    myStyle.appliedLanguage = "French";
    }

    Parargaph Style #0 is [No Style], and you cannot change this way. Simply start your loop at 1.

    Style #1 is [Basic Style], and if you have trouble as well to change this, simply start at 2.

  • Find all Styles of paragraph "based on".

    I have a file with about 1 million styles to paragraphs, many of them unused.

    I want to delete some of them, but some of the models have been used as the basis for new models. Is there a way to find these other styles or break the connection?

    See here: http://forums.adobe.com/message/2030881#2030881

  • Script to apply the cell style after paragraph research

    Hello

    can someone help my make a script to search for all occurrences of a paragraph format in the tables and then apply a cell style to a document the bounding cell.

    Thanks in advance.

    Peter

    BTW Mac InDesign CS 6

    Hello

    Use this:

    var mDoc = app.activeDocument,
    pST = mDoc.paragraphStyles.item("paraStyleName"),
    cST = mDoc.cellStyles.item("cellStyleName"),
    mFound, mParent, count;
    
    app.findTextPreferences = null;
    app.findTextPreferences.appliedParagraphStyle = pST;
    mFound = mDoc.findText();
    count = mFound.length;
    while (count--) {
         mParent = mFound[count].parent;
         if (mParent.constructor.name == "Cell")
              mParent.appliedCellStyle = cST;
         }
    
    app.findTextPreferences = null;
    

    change paraStyleName and cellStyleName

    Jarek

  • How to apply several styles of one-sentence paragraphs?

    I'm using paragraph styles, but is not useful because I am applying 2 different styles in the same sentence that does not work.

    To make it work, I selects the sentence, apply the style, for example 'xfont-regular"then I select the word in the sentence that I want to have a different style and I choose in the list perhaps italic police so that it looks like 'something like this'

    Of course, in doing so, I lose all the benefits of the use of styles p and of course, it's so your time. Is it possible to break down the sentence, now in the same line, so that I can apply different styles to it? and always keep the benefits to go just to styles and make the changes to the entire document that this style is applied.

    Thank you

    pchinique wrote:

    I'm using paragraph styles, but is not useful because I am applying 2 different styles in the same sentence that does not work.

    To make it work, I selects the sentence, apply the style, for example 'xfont-regular"then I select the word in the sentence that I want to have a different style and I choose in the list perhaps italic police so that it looks like 'something like this'

    Of course, in doing so, I lose all the benefits of the use of styles p and of course, it's so your time. Is it possible to break down the sentence, now in the same line, so that I can apply different styles to it? and always keep the benefits to go just to styles and make the changes to the entire document that this style is applied.

    Thank you

    As Diane King mentioned, nested character styles may work for your need. His example was an initial capital of fall (multiline first one or several letters of a paragraph.) Dropped caps are a particular type of nested style - always the very first one or more characters in a paragraph, high on two or more lines.

    To use the general type of nested style, you must be able to identify the words in the paragraph which gets the nested character style. For example, the third word, or the first two words after the first semicolon. If there is no model of Word (s) that can be identified by the post office or the sequence, it is possible that a GREP style can be used to find a common pattern of characters and apply a style of character to it, for example a phone number, the date, or the amount of currency that is identified by a dollar sign book, or yuan.

    Search Help for InDesign and Google "Style nested InDesign', 'InDesign grep Style' and similar (without the quotes) terms for more details. There has been many discussions of GREP on this forum.

    HTH

    Kind regards

    Peter

    _______________________

    Peter gold

    Know-how ProServices

       
  • Is it possible to apply several styles of an entire text paragraph using GREP?

    Hello.

    I have a very complicated text, with a lot of formatting. It's a book liturgical altar, (Missal). He has a particular text for each day, it is in Latin and every paragraph, every day, as it's own particular formatting, including color in words, special characters, etc.. Very interesting work of InDesign. (Maybe I'll give more details later.)

    GREP will make things much easier. But I was wondering if there is there any tool which allows to have a group of GREP querys and apply a different paragraph style to all matches in the text, ALL IN ONE tool. (I know the search/replace tool, but I was looking for something even better.)

    It would be a great idea (I think) for future versions of InDesign, don't you think?

    I have many more questions on this project, but I will try to research as much as possible without having to open new positions. More details to come later.

    The can request handler that string together you a list of the various operations of fin/change GREP in a single operation, so you can set a query for each style, that you need, and then perform a single operation.

  • Synchronized text styles and paragraph

    I have a text block in which several paragraph styles have been applied. After you apply a text synchronized on the text block tag, any paragraph style, I chose now applies to the entire text, rather than the individual paragraphs block. Is - is this expected?  Or a bug?  I can work around it by creating each paragraph as a separate text block, but it's a lot of hassle!

    I use Muse 2015.0 Release on an iMac with Yosemite 10.10.4.

    This is by default synchronized text, with synchronized text style apply to all.

    Thank you

    Sanjit

Maybe you are looking for