How to apply an object style based on paragraph style?

Have a job where a single page with a frame of 3 columns is repeated many times.
(It is always alone and behind a title page)
But this system is not very good if the text flows... Formatting is lost.
Obviously, anchored frames should be a solution but I could prefer apply a text frame definition (just the 3 columns needed) with the menu f/change:
Thus, my 3 columns page that have a style always will have this frame definition.
In anchored frames it is default to insert a return to get in the next page?

Olfarr,
Yes, it IS the most perfect solution.
I was trying with the worst method: a text frame + columns, but at the time a new text or a new page appear the text reflows and anything is lost.
This menu resolved all.
Thank you.

Similar Messages

  • How to apply a Character Style that's already been made in a template document?

    First of all I'd like to thank everyone that helps. I'm a complete beginner at scripting and appreciate all your help.
    I'm basically using GREP expressions to find patterns in a document and apply a Character Style which has already been made. This Character style was not made using script, but just in InDesign when making and setting up the template.
    var myDoc = app.activeDocument;
    //Clear the find/change grep preferences.
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    //Set the find options.
    app.findChangeGrepOptions.includeFootnotes = false;
    app.findChangeGrepOptions.includeHiddenLayers = false;
    app.findChangeGrepOptions.includeLockedLayersForFind = false;
    app.findChangeGrepOptions.includeLockedStoriesForFind = false;
    app.findChangeGrepOptions.includeMasterPages = false;
    //GREP Expression for finding all HEADERS
    app.findGrepPreferences.findWhat = ".+\n";
    //Applying formatting changes to put into All Caps, Bold and changing the font size to 12 pt.
    app.changeGrepPreferences.capitalization = Capitalization.allCaps;
    app.changeGrepPreferences.fontStyle = "Bold";
    app.changeGrepPreferences.pointSize = "12";
    myDoc.changeGrep();
    //Clear the find/change preferences after the search.
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    This is how I currently have it. I will manually define the changes to the text. The problem is, each template uses a different set of fonts and not all of them use Bold e.g. Sabon can use CE Bold.
    I would like to learn how to apply a Character Style and have tried looking around but nothing seems to work.
    Any help would be much appreciated.
    Thanks.

    select the text where u went  and run below  script after change group as per ur template.
    var myDoc = app.activeDocument;
    var mySel = app.selection[0];
    //Clear the find/change grep preferences.
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    //Set the find options.
    app.findChangeGrepOptions.includeFootnotes = false;
    app.findChangeGrepOptions.includeHiddenLayers = false;
    app.findChangeGrepOptions.includeLockedLayersForFind = false;
    app.findChangeGrepOptions.includeLockedStoriesForFind = false;
    app.findChangeGrepOptions.includeMasterPages = false;
    //GREP Expression for finding all HEADERS
    app.findGrepPreferences.findWhat = "role";
    //Applying formatting changes to put into All Caps, Bold and changing the font size to 12 pt.
    //app.changeGrepPreferences.capitalization = Capitalization.allCaps;
    //~ app.changeGrepPreferences.fontStyle = "Bold";
    //~ app.changeGrepPreferences.pointSize = "12";
    app.changeGrepPreferences.appliedCharacterStyle=myDoc.characterStyleGroups.item("Style Group 1").characterStyleGroups.item("Style Group 2").characterStyles.item("Header")// Header is name of character name
    mySel.changeGrep();
    //Clear the find/change preferences after the search.
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    If it's help then click yes
    Mi_D

  • Apply an object style

    About a year ago, someone helped me create a script that applies a Character Style.
    The script is:
    try {app.selection[0].appliedCharacterStyle = "Red"} catch(e){}
    How do I do a similar thing for an Object Style?

    HI
    I am not sure if this will get a reply as it is an old thread, but I have tried your method Dave:
    myLossenge.appliedObjectStyle = app.documents[0].objectStyles.item("PriceBox");
    where there IS an object style called PriceBox, but the style does not get applied.
    Any ideas?.....
    Just answered it myself, 'myLossenge' is the image that has been placed, 'myLossengeFrame' is what I need to apply the style to.
    No need to post this, but may be helpful top others doing the same thing!.
    Cheers
    Roy

  • How to create an object style with repeating formatting?

    I am trying to create an object style that will create my subhead formatting after each body of text; in other words, I'll have 5 or 6 subheads, all in need of the same formatting, but they will be separated by bodies of text with multiple paragraphs. How do I go about specifying this repeating formatting in an object style?

    Unless the number of paragraphs between headings is always the same, and always needs the same formatting, you can't.

  • [JS][CS3] Applying an Object Style

    Hi.
    This is a simple one, I am trying to apply an already made Object Style to a text frame.
    I am using a similar method as used to apply a paragraph style:
    myFrame.appliedObjectStyle.name= "GreenBox";
    and also
    myFrame.appliedObjectStyle= "GreenBox";
    But these dont work.
    I have researched the forums and found something like:
    myFrame.applyObjectStyles(GreenBox , true);
    and
    myFrame.applyObjectStyles(GreenBox);
    but these dont work either.
    Can someone give me a hand with the correct syntax please?
    Thanks in advance
    Roy

    void applyObjectStyle (using: ObjectStyle[, clearingOverrides: bool=true][, clearingOverridesThroughRootObjectStyle: bool=false])
    Applies the specified object style.
    Parameter
    Type
    Description
    using
    ObjectStyle
    The object style to apply.
    clearingOverrides
    bool
    If true, clears the Button's existing attributes before applying the style. (Optional) (default: true) (Optional)
    clearingOverridesThroughRootObjectStyle
    bool
    If true, clears attributes and formatting applied to the Button that are not defined in the object style. (Optional) (default: false) (Optional)
    -- so you can use one or even two trues; it's default is 'true'.

  • How to apply Muse (webfont) styles to BC Blogs/Contact Forms?

    Hi all.
    So my site (designed in Muse) is pretty much ready, except for my blog and a couple of forms. I've just gone through making it my partner site, replacing the so-called "bre-built" default site. That process was very, very simple, but BC Support told me it would be much more complicated than it needed to be - it wasn't! I was able to simply publish via Muse to my partner site domain and everything worked fine...
    Anyway... Headers in my site use the "Bebas Neue" webfont selected from within Muse (I assume this is a Typekit font?), at 30pt and a custom colour #B10505. Body text is simply "Trebuchet" (a standard font) in black at 12pt. Now, I'm aware that not everything designed in Muse shows up "as shown" when doing any editing in the back-end of BC. I've just begun following through the tutorial for setting up BC modules on a Muse site and have gotten to the "Inspect Element" stage...
    This is where I've hit a snag. This video: http://www.businesscatalyst.com/bc-blog/adding-business-catalyst-features-to-your-muse-sit es (with the blog part starting near the end of 19 minutes) clearly uses a standard font and not a webfont, so when I'm inspecting with Firebug, what's shown in the video doesn't show up the same in reality for me. This is because a standard font is applied in Muse designed sites where a webfont is in use, and the webfont simply "masks" the standard font (if I'm not mistaken?)...
    I've read this topic: http://forums.adobe.com/message/5480712#5480712 which pretty much asks the same question I'm asking, but this guy clearly has more knowledge (or maybe more common sense) than me, so I'm asking it in a new topic here...
    Can someone please walk me through (step-by-step) how to apply Muse selected webfont CSS styles to the relevant files in BC so that my blog shows up with a consistent look and feel to the rest of my site? I'll literally need every step walking through with minimal jargon if possible - this area of web design is not my forte!
    I suppose I'd also like the same process walking through for contact forms if possible? Alongside the header font, I've got a custom styled, beveled button made on a standard Muse contact form that I'd like replicating on a BC-made form.
    I'm sure once I understand this process, I'll be able to apply this to any BC module; I just need that initial helping hand that neither the BC team or the Muse team seem to want to reference in their tutorial videos!
    Any help would be greatly appreciated! Thanks in advance!

    Hi
    So, are these links in lieu of a full walkthrough, to help me better understand until if/when you get the time to explain?
    The cssbasics.com link isn't working, FYI.
    Looking through the typekit page, it seems fairly straight forward. Is this the same set of fonts Muse uses?
    If so, theoretically do I just need to copy the snippet of code from the typekit site for my desired font (Bebas Neue) and paste it into the modulestylesheet.css file? Where? At the bottom of everything else? Presumably commenting what it is? and define that I want to use that as a header font? Can you walk me through exactly what I need to put for that?
    Then I guess I just need to follow the rest of the video tutorial I linked above?
    Or is there a little more to it than that?
    Would I need to do the same to define trebuchet as the body font, or is there a different block of code I need for that, since that's not a webfont?
    Sorry for being so slow with it!

  • How to apply different CSS styles to different table cells?

    I have an h:dataTable table and I would like to apply different CSS styles to different table cells depending on their content. If I were doing JSP I would probably have a <c:if> test on the cells, and give them a style name depending on contents, and then define the styles in a separate style sheet. Is there a way in JSF to do the equivalent? Thanks.

    mitchgart wrote:
    BalusC wrote:
    How to achieve a cell-specific style is already answered in my 1st reply of this topic.That tells how to apply a style to the text (or other content) inside a cell but not how to apply a style to the <td> as a whole. It would work for something like text font or text color but not cell border.
    I'm thinking I can mark the content somehow and then have javascript traverse the DOM, find marked content, and traverse outward to the enclosing <td>. Is there a better way?BalusC already spoke about rowClasses and columnClass attributes, I assume those are insufficient.
    The Tomahawk dataTable component has the rowStyleClass and rowStyle attributes for assigning CSS to the HTML tr tag. One is allowed to reference the row data variable when assigning values to these. However, see https://issues.apache.org/jira/browse/TOMAHAWK-523 for workarounds to bugs in some implementations.
    The Tomahawk column component has the styleClass and style attributes for assigning CSS to the HTML td tag. These also may reference the row data variable.

  • How to Apply A Font Style in Mail?

    This seems like a simple question, but I can't seem to find an answer by searning this forum.
    I'm new to Mail (recently converted over from Entourage). Quite often, the e-mails I compose are a hodge podge of cut and pastes from other messages and documents. The result is a mix of fonts and font formats.
    I would like a simple way to highlight all of the text in a document and apply a single style. Essentially, I want a way to apply a single style to all of the text in a mail message.
    I can't seem to find this in Mail. I've tried to "apply" the default style using the Format --> Style ... menu, but that doesn't work as expected (I don't think it changes anything). Looking up "Style" in the Help menu brings up nothing of help.
    Any suggestions?

    you could also select Verdana 12pt as your Fixed-width font and your Message font in preferences under fonts/colors, then check the box that says "use fixed-width font for plain text messages"
    then you could select your text command-A, then Shift-Command-A (to convert to plain text) which would convert everthing to verdana 12pt, then if you wanted rich text message again, just press Shift-Command-A again and it will stay with Verdana 12pt but be a rich text message.
    This would only be 2 and at the most 3 key combos with no mouse clicks to achieve what you mentioned in your previous post.

  • How to apply bold character style with grep

    finding bold characters in a particular paragraph style
    I want to apply a character style
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.string = String.Bold;
    if (app.findGrepPreferences.appliedParagraphStyle == myPar) {
    app.changeGrepPreferences.appliedCharacterStyle = myCar1;
    app.activeDocument.changeGrep();
    app.findGrepPreferences = app.changeGrepPreferences = null;

    Try this,
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.fontStyle = "Bold";
    app.findGrepPreferences.appliedParagraphStyle = "myPar";
    app.changeGrepPreferences.appliedCharacterStyle = "myCar1";
    app.activeDocument.changeGrep();
    app.findGrepPreferences = app.changeGrepPreferences = null;
    Vandy

  • How to apply a css style to a radio button.

    I cannot seem to persuade jsf to pass css styles through to a radio button.
    I have markup like this:
    <h:selectOneRadio id="direction" styleClass="largish-form" >
      <f:selectItem id="positive" itemLabel="positive" itemValue="positive" />
      <f:selectItem id="negative" itemLabel="negative" itemValue="negative"  />
    </h:selectOneRadio>Which gets transformed into something like:
    <!-- edited for brevity -->
    <td>
      <label>
        <input type="radio" name="comp-amount-form:direction" value="positive" class="largish-form" />
        positive
      </label>
    </td>So the style does not get applied to the text of the label. I was expecting something like
    <span class="largish-form"> positive</span>.So how do I get styled labels on my radio buttons?
    Thanks in advance.

    For a standard Portal page you should use the Portal styles and associate them to a page. These effectively generate a CSS style sheet anyway if you view the HTML source of a rendered page in your browser.
    Using the correct PDK APIs you effectively reference the CSS tags in your Java or PL/SQL code.
    If your portlet need to open a page in a new window you can no longer reference the Portal page style as the CSS style sheet does not get attached.
    In this situation, code your HTML as normal and reference your CSS style sheets as normal.
    If you create you CSS sheet you can store it in a page as a file and access using the direct access URL like I showed you in a previous response regarding the storing of images.
    Cheers,
    John

  • How to apply a css style to vbox.

    I'd like to apply below style to vbox. But It's not changed.
    When I use ID property, it's changed, But I want to use class property.
    .v-box{
         -fx-spacing:10;
         -fx-alignment:center;
    Edited by: shakddoo on 2012. 4. 20 오후 9:08
    Edited by: shakddoo on 2012. 4. 20 오후 9:08

    .v-box is not a standard css selector.
    You could used VBox (capitalized exactly like that and without a leading .) and it will work because you can select based upon type name, for example:
    VBox {
      -fx-spacing:10px;
      -fx-alignment:center;
    }Alternately you can create your own .v-box class and assign it to your VBox and it will work, for example:
    import javafx.application.Application;
    import javafx.scene.Scene;
    import javafx.scene.control.Label;
    import javafx.scene.layout.*;
    import javafx.stage.Stage;
    public class CssSample extends Application {
      @Override public void start(Stage stage) {
        VBox box = new VBox();
        box.getChildren().addAll(
          new Label("On either side the river lie,"),
          new Label("Long fields of barley and of rye,"),
          new Label("And through the fields,"),
          new Label("A road runs by,"),
          new Label("To many-towered Camelot")
        box.getStyleClass().add("v-box");
        StackPane layout = new StackPane();
        layout.getChildren().addAll(box);
        Scene scene = new Scene(layout);
        scene.getStylesheets().addAll(getClass().getResource("styledvbox.css").toExternalForm());
        stage.setScene(scene);
        stage.show();
      public static void main(String[] args) { launch(args); }
    // styledvbox.css
    .v-box {
      -fx-spacing: 50px;
      -fx-alignment: center;
    .label {
      -fx-font-family: "Comic Sans MS";
      -fx-text-fill: salmon;
      -fx-effect: dropshadow(one-pass-box, mistyrose, 10, 0, 1, 1);
    .root {
      -fx-padding: 200px;
      -fx-font-size: 48px;
      -fx-background-image: url('http://upload.wikimedia.org/wikipedia/commons/8/83/JWW_TheLadyOfShallot_1888.jpg');
      -fx-background-size: contain;
      -fx-background-repeat: no-repeat;
      -fx-background-position: center;
      -fx-background-color: cornsilk; 
    }

  • How to apply the filter condition based on other column

    HI,
    i have one requirement.
    i am giving the example below.my 2 columns data like below
    Column1 Column2
    A 1
    B 2
    C 3
    D 4
    E 5
    F 6
    G 7
    H 8
    i want to give Column1 as a dashboard prompt and users will enter A,B,...(what are all in the column1).
    what i want is, in the dashboard prompt i want less that value passes in the dashboard prompt.
    Ex: if i enter the D in the dashboard prompt, i want to display less that corresponding value to the D in the column 2.
    in this case it should return, A,B,C from column A.
    PLease suggest me how can i achieve this.
    Thanks in adv.
    Edited by: user12255470 on Dec 26, 2012 6:36 PM

    Hi user,
    Here is the solution.
    1.Create a dashboard prompt and Put columnA and assgn it to a presentation variable say 'VAR_1'.
    2.Now create one more dashboard prompt select SQL result in choice list .and enter logical sql like
    SELECT columnA
    FROM tab_name where
    columnB < (
    SELECT columnB
    FROM tab_name
    WHERE columnA= 'VAR_1')
    3. put both in a dashboard and check whether the logic is working if you select D in first dashboard prompt and apply, you should get only A,B,C option in the second prompt.
    4. Edit your main dashboard . put Dasgboard prompt1 in one section save.
    5. Inside Edit dashboard only click on Dashboard Property (nest to preview button), you can see all the pages.
    6. now select your page and click on 'select prompt...' (prompt symbol next to Rename) . Browse your second prompt and click ok,ok.
    7. save the dashboard. Now it should work.
    BEST OF LUCK.
    ping back if you have any doubt
    Mark if correct/helpfull
    fiaz

  • How to apply inmath character style to fraction values

    Hi
    I try to apply inmath style to fraction values in indesign file.
    My code here:
    app.findGrepPreferences = NothingEnum.nothing;
                   app.changeGrepPreferences = NothingEnum.nothing;
                   app.findGrepPreferences.findWhat = myText;
                   app.changeGrepPreferences.appliedCharacterStyle = "Fraction Answers";
       app.changeGrep();             
    But it throws error "Invalid value for set property 'appliedCharacterStyle'
    Thanks
    Sangeetha

    Try this,
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.fontStyle = "Bold";
    app.findGrepPreferences.appliedParagraphStyle = "myPar";
    app.changeGrepPreferences.appliedCharacterStyle = "myCar1";
    app.activeDocument.changeGrep();
    app.findGrepPreferences = app.changeGrepPreferences = null;
    Vandy

  • How to store Mapviewer objects (styles,themes,maps) in source control ?

    I'm wondering what's the best way for storing mapviewer data in source control ?
    So far MapBuilder provides the import/export metadata feature but it doesn't do cached map objects. Ideally we need an automated way to backup/restore these objects into a new database instance from source control for a daily build type setup.
    The MapBuilder text format looks promising, in that it supports diffs. Other options include dmp files but then we wouldn't be able to compare versions.
    Has anyone faced this problem ?
    What do the Oracle Mapviewer devs recommend ?
    Thanks.

    Hi,
    What kind of error are you seeing?
    Thanks

  • How to apply a user style with the Stylish extension for Web Developer Tools?

    I have firefox 27 and the fonts of Web Developer Tools (Inspector, Debugger..) are very small.
    The fonts of Stylish editor are very small also.
    Here https://support.mozilla.org/en-US/questions/943857 I found a similar question.
    GingerBread Man said :
    "If you need to modify anything else, you can use the DOM Inspector extension to examine user interface elements ("chrome"). "
    My problem is that I can't find the names of elements e.g "chrome://browser/content/devtools/markup-view.xhtml"

    @the-edmeister
    Thanks for your reply.
    The rule below affects only Inspector
    @namespace url(http://www.w3.org/1999/xhtml);
    @-moz-document url("chrome://browser/content/devtools/markup-view.'''xhtml'''") {
    .devtools-monospace {
    font-size: 120% !important;
    I change the rule as you suggest.
    @-moz-document url("chrome://browser/skin/devtools/markup-view.css") { ......}
    It doesn't work.

Maybe you are looking for