Using Nested Styles for Prices

I wish to easily plug in Prices and have them automatically edited to fit the style I want.
For example:  If I typed $3.59. . . .I would want it to show up as automatically.
I am mainly concerrned with being able to apply Superscripts and Subscripts and erasing the decimal.
A step-by-step explaination would be amazing!
Thank you,
- Jack

Sorry, you can't do this with styles. Styles can change formatting of text, but cannot add or delete. For that you need to run find/change.
You can search for (\.)(\d\d) and replace with $2 and set the change format to your superscript (probably with a local override rather than a style, as will become clear in a moment). It would be nice to limit this to only prices by adding a lookbehind for the dollar sign and dollar amounts, but lookbehinds cannot have varable length strings, so you would have to do one for each possible number of digits, like this:
(?<=[$])(\.)(\d{2})
(?<=[$]\d)(\.)(\d{2})
(?<=[$]\d{2})(\.)(\d{2}) for 0, 1 and 2 digits in front of the decimal.
You'll need a second query to add the "ea" if you don't type it, probably find \d with the find format set to superscript and change to $0ea This will leave the "ea" also in superscript, so you'll need a second query to fix that: (?<=\d)ea with the find format again set to superscript. Leave the change field blank and set the change format for normal position.
All of these queries can be chained together to run in one operation using tools you'll find at http://www.kahrel.plus.com/indesign/chain_queries.html
I WOULD use an ordinary nested style, however, to style make the prices large and orange. That would be None up to 1 $ and then your big orange style through 1 word (this may at first only make the $and dollar portion of the price big and orange, but once the decimal point is removed it shoould fix itself. If you add a space before the "ea" you'll need to apply the style through 2 words.

Similar Messages

  • Using nested styles to break blocks of text into different pages

    Hello everyone,
    I'm treating data collected through a Google Docs form and I've already set it up so that the questions appear on the left and are followed by the respective answers sequentially so that I have a simple way to copy paste the whole information to Indesign. Then I'm going to use nested styles to define individual styles for the questions and answers.
    What I can't do, however... and I'm not even sure if it's possible, is how to tell Indesign to break text that is laid out sequentially into different lines or to break blocks of text so that they start in the beggining of the next page without having to resize the text frames by hand.
    As a visual example this is what the data I've exported out of excel looks like:
    Question 1 (tab) Answer A1 (line break)
    Question 2 (tab) Answer A2 (line break)
    Question 3 (tab) Answer A3 (line break)
    Question 1 (tab) Answer B1 (line break)
    Question 2 (tab) Answer B2 (line break)
    Question 3 (tab) Answer B3 (line break)
    (and so on in groups of 3 questions)
    And I want to turn it into:
    Question 1 (turn the tabs into line breaks)
    Answer A1
    Question 2
    Answer A2
    Question 3
    Answer A3
    (and then start at the beggining of a new page)
    Question 1
    Answer B1
    Question 2
    Answer B2
    Question 3
    Answer B3
    I can't define the size of the text frames so that the next group of questions+answers starts at the beggining of a new page because some of the answers are multi-line fields and thus the number of lines of the answers are variable and they can come short of the text frame edge or pass it.
    Can anyone share some insight of how to do this (or if it is at all possible)?
    Thank you very much!
    MACC

    Thank you very much for your input.
    I'm trying to automate this process as much as possible because I don't want to have to crunch the data manually myself later on, instead just teach someone else how to do it.
    The first search and replace action seems basic enough but regarding the second one I would have to manually assign that paragraph style to the line where the data would break because one can only assign character styles in nested styles, right?
    Also I've heard that ID CS5 automatically creates new pages based on a template when you paste information inside the first page, is that so? That would be great because that way the person wouldn't have to manually create pages and link the contents throughout the document but instead simply open my template and paste the information within the first master page. That's not possible with CS4, is it?
    Thank you very much!

  • Bolding all type before en space without using nested styles

    I'm trying to have all the words before an en space in all paragraphs made boldface without using nested styles. The nested styles work great for print, but don't seem to do the trick for epubs, such as this project.
    For example:
    Car Ferrari GTO
    I tried doing a find/change for all the text formatted with the nested style, changing the nested style to no char. style + Bold. But for some reason the nested style stays attached, and if I delete the character style that is called for in the nested style, the text loses its bf.
    Thanks for any help!!

    Silly me -- that trick uses another sort of workaround.
    I meant to point you to Harbs' script ApplyNestedStyles: http://in-tools.com/indesign/scripts/freeware/ApplyNestedStyles.zip

  • Nested Styles For Magazine review section

    Hey Everyone,
    I have been trying to get my head around this nested style for the magazine issue this month. I've recently just switch over from using Quark for the past 9 years so I need all the help I can get.  Okay, what I need is for this column nested style to make the first line (bold character style) the second line (italic character style) the 3rd line (small italic character style) Then in the body text I need the Italic character style to be inserted in between the brackets < > and the brackets removed
    [URL=http://img704.imageshack.us/i/picture34.png/][IMG]http://img704.imageshack.us/img704/5959/ picture34.png[/IMG][/URL]
    I have gone through all the tutorials online and I'm really finding it hard to do this by myself, this is how far i've got up to.
    [URL=http://img704.imageshack.us/i/picture38.png/][IMG]http://img704.imageshack.us/img704/8111/ picture38.png[/IMG][/URL] [URL=http://g.imageshack.us/img704/picture38.png/1/][IMG]http://img704.imageshack.us/img704/pic ture38.png/1/w264.png[/IMG][/URL]
    still i'm unable to remove the brackets successfully  this is the settings i used in my nested style  [URL=http://img263.imageshack.us/i/picture37e.png/][IMG]http://img263.imageshack.us/img263/4629 /picture37e.png[/IMG][/URL] [URL=http://g.imageshack.us/img263/picture37e.png/1/][IMG]http://img263.imageshack.us/img263/pi cture37e.png/1/w433.png[/IMG][/URL]
    I'm hoping for the column to look like this   [URL=http://img24.imageshack.us/i/picture35t.png/][IMG]http://img24.imageshack.us/img24/2036/pi cture35t.png[/IMG][/URL] [URL=http://g.imageshack.us/img24/picture35t.png/1/][IMG]http://img24.imageshack.us/img24/pictu re35t.png/1/w139.png[/IMG][/URL]
    I have attached an indesign document, If you have any idea how to help
    Thanks
    Chidi

    Yeh sorry first post I thought the camera icon was just for videos.
    Okay, what I need is for this column nested style to make the first line (bold character style) the second line (italic character style) the 3rd line (small italic character style) Then in the body text I need the Italic character style to be inserted in between the brackets < > and the brackets removed
    I have gone through all the tutorials online and I'm really finding it hard to do this by myself, this is how far i've got up to.
    still i'm unable to remove the brackets successfully  this is the settings i used in my nested style 
    I'm hoping for the column to look like this  

  • How to use inline style for hover, visited

    I am trying to use inline styles for a hover effect or a
    visited. I know how to do it using a style sheet but not inline.
    Is it possible to do this?

    That's OK. The chances were 1 in 2 you'd be right. It's
    better than buying
    yourself a lottery ticket....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Walt F. Schaefer" <[email protected]> wrote in
    message
    news:gf2c8o$h0c$[email protected]..
    > Whoops!
    >
    > :-(
    >
    > --
    >
    > Walt
    >
    >
    > "Murray *ACE*" <[email protected]>
    wrote in message
    > news:gf29m1$dr7$[email protected]..
    >> Nope, not possible using inline styles.
    >>
    >> --
    >> Murray --- ICQ 71997575
    >> Adobe Community Expert
    >> (If you *MUST* email me, don't LAUGH when you do
    so!)
    >> ==================
    >>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >> ==================
    >>
    >>
    >> "Walt F. Schaefer" <[email protected]>
    wrote in message
    >> news:gf26t4$aa5$[email protected]..
    >>>> Is it possible to do this?
    >>> Sure. Show us what you've tried (a link to an
    uploaded file is best) and
    >>> we'll see why it doesn't work.
    >>> --
    >>>
    >>> Walt
    >>>
    >>>
    >>> "craigmini" <[email protected]>
    wrote in message
    >>> news:gf25ul$98a$[email protected]..
    >>>>I am trying to use inline styles for a hover
    effect or a visited. I know
    >>>>how to do it using a style sheet but not
    inline.
    >>>> Is it possible to do this?
    >>>
    >>>
    >>
    >
    >

  • Nested Tab Leader Style for Price List Issue

    Hello,
    I wanted set up a character style for a tab leader that makes the font weight light as opposed to the bold paragraph style. I tried two character styles, one as a tab leader, and one as a dotted underline and got different results.
    When I set up the nested style on my paragraph style using the character style "Leader Dots" is changing the price from bold to light.
    When I set up the nested style on my paragraph style using the character style "Dotted Line" the dotted underline goes to the full right-justified width.
    Both issues I think are b/c the tab is right-justified. See the attached images for examples.
    I am trying to figure out a way to have either character style stop before the price, but keep the price right-justified. So in a nutshell it would be… Bold item name / Light tab leader / Bold price
    Thank you for any help.

    Aha! Peter, you're right! 
    // French version //

  • How to simulate 'Use Page style' for a portlet

    All,
    How do i simulate the 'use page style' feature for a custom portlet ? Currently, I have to hard code the style.
    thanks

    uploaded gif under mime repository

  • Using Custom Styles for Levels in Outline View

    How do you associate different levels in the Outline View with custom styles? By default they are associated with Heading 1, Heading 2, etc.
    Thanks!
    Bobby

    Styles apparently have a hidden "my associated outline level is #" property. However you have to start with a style that has this hidden property set as there seems to be +no way+ to access or change this property yourself (This is unusually poor interface design from Apple - they've traditionally been better than that.)
    You essentially need to use only the names "Heading 1", "Heading 2", etc, for styles associated with outline levels, and you can't create these styles yourself. You can change the formating of these styles in the normal way: Start with a paragraph formatted using "Heading #", changing the outline level to the appropriate one, manually change the text to look the way you want, select the new formatted outline level paragraph, and do "redefine style with selection". You can't just apply another style, it over-writes the hidden outline level # property with its own, usually "body", making it really difficult to add an outline to an existing document - you have to re-create all the styles.
    You can have mutliple styles that apply at the same level by doing the same as above, but instead of redefining the appropriate "level #" heading do "Create new paragraph style from selection". (You have to name it something other than "Heading #").
    Applying this style gives a paragraph the associated outline level as well. Unfortunately, if you promote or demote an "outline level #" tagged paragraph, its hidden "outline level #" property is changed and the new style will always become the "Heading #" style associated with the hidden "outline level #" property. There is no memory of where it came from, of course, so if returned to its original outline level, it looses the "custom named style". There is no way to tell Pages that it should choose your custom named style by default instead of the "Header #" style for a given outline level. I can see no reason Pages couldn't do this too.
    I have a complicated document that was written with consistent styles for headers, and now want to use the outline feature. I have to literally recreate all the heading styles from scratch. I can then do "select all instances" for my former styles and then click on the "Heading #" style reformatted as a copy, changing them to exactly what they were before, except with the new mandated name and the one magic hidden property changed.
    There is also some weird behavior used to hide unused "Heading #" styles: You can see evidence of this if you repeatedly demote an outline paragraph; the extra heading styles automatically appear in the style draw. Then if you then repeatedly promote the same outline paragraph, these intermediate styles go away. How that works without loosing user-defined styles with the same name I have no idea.
    Message was edited by: Stuart R. Jefferys
    Message was edited by: Stuart R. Jefferys

  • I'd like to buy iPhone 5 GSM 900 1800 32 GB.What is better for using in Uzbekistan for price 750$?

    Id like to buy iPhone 5 GSM 900 1800 32 GB for price 750$. Which is better for using in Uzbekistan?

    Just be aware if you come to the US and purchase the iPhone you will have to return to the US for warranty service.
    You only listed one phone so what is the other option?

  • Using Global Style for DatagridHeader and DataGridColumn

    Can someone tell me how to apply Globalstyles for the datagrid header and datagrid columns.
    I placed css styles in my lib project in defaults.css (as followed in   adobe material).
    I am refering this style in my projects in datagrid headers headerStyleName="SomeStyleNamefromCSS". Similarly how should I specify the styles for DataGridColumn in a Global CSS file (defults.css).Because I dont want to set style seperately in all of my projects.
    Also does the DatagridColumns inherit the styles from headerStyle of the Datagrid and how to deal with it in CSS files. I am using Flex 4.1
    Any suggestions on this is very much appreciated

    The headers pick up styles from headerStyleName, but the renderers don't.
    Anything set on the DG should get picked up by all headers and renderers,
    but you can also make a custom renderer and a type selector for it.

  • Using GREP styles for changing characters and colors

    Hello everybody,
    I have a question regarding GREP styles. I wish to change each letter of an alphabet in text to a square in a different color. For example: every 'a' in the text change to a yellow ■. I thought GREP styles would be perfect for it so I went to find/change, typed in my requests and InDesign told me it has found no 'a' in my text, which isn't possible. How do I fix it? And the other thing- is it possible to change the color of ■ ? Because i couldn't find the option.
    Please excuse me my incompetence, I am a new user of InDesign.
    Thanks in advance for your help! : )

    First off, it sounds like you want to use find/change with GREP, which is fine, rather than a GREP style, which is part of a paragraph style definition and cannot change the text in any way other than apply a character style to the found string, so would not help here.
    The not finding the text makes me think you've limited the search parameters in some way, either by limiting the scope to a selection, or by including a style or format requirement in the find options, perhaps.
    In order to do this, I think you are going to need to make use of the "other" category in the change dropdown and select Formatted Contents of Clipboard (which should clue you in that you need to make one of your colored squares and copy it to the clipboard before you run Find/Change). You can do this with either a plain text query or a GREP query, and there is no advantage to GREP in this case unless you want to match several different things and apply the same clipboard content to any of them.
    You'll need to run a separate find/change for each colored square. It might be possible to script a chain so it runs in a single operation, but that would also require swapping the colored sqaures on the clipboard which complicates things in this case. You might want to ask over in scripting: InDesign Scripting

  • Nested styles: I can't seem to make this work

    I can't seem to do this nested style: All Adobe Garamond. Headline: 24/25 centered. Return. Byline: 9/10 centered, stacked. "by" is italic with a .5, one inch wide  rule above. Return. Author's name is small caps with the same rule below. Return. Body text is 9/10 regular, first paragraph has a 3 line bold drop cap, the other paragraphs have a .25 indent.
    Nothing seems to work when I try to set this up. Rules everywhere...and I am supposed to have the document set up in 14 hours....help!

    Nested Styles are character styles added inside a paragraph style that  affect only certain parts of the text, based on trigger patterns that  you set up. Typically you would use a nested style to do somthing like make the first three words of a paragraph Italic, or make a price bold on a menu.
    It's probably technically possible to achieve your title using nested styles, forced line breaks as triggers, and paragraph rules above and below with the proper offsets, but what you want to do is not typically done with nested styles, but rather with a series of individual paragraph styles that are applied in rotation automatically using the "next style" attribute.
    Mikes example is using three paragraph styles for the heading. PStyle1 (just a place-holder name for a pragraph style here) is applied to the text Headline 2, and as part of that style defintion the "next style" is set to PStyle2. PStyle2 is applied to the By line, and its next style is set to PStyle3, which is applied to MW Design. Each of these lines is a separate paragraph (he should have shown you the non-printing characters so you could see the hard returns at the end of each line). PStyle3 should have its next style set to your style for the first paragraph of body text that includes the drop cap, and that one needs a next style set to the paragraph style for your other body text. This last body style should have the next style set to "same style."
    If you are typing directly in ID, for each story, set the style to PStyle1 and begin typing. When you hit Enter to move to the by line, the style will change automatically, and will change again each time you hit Enter until you are inthe second paragraph of the body copy, where it will keep the same style until you change it manually again.
    If you are working with imported text you can select an entire story froom the fiorst line of the title to the last last paragraph of body copy, then right click on the PStyle1 name in the Paragrapgh Styles panel and choose Apply PStyle1 and Next Style and the whole shebang will get the correct styles applied in one click.

  • Nested style: everything preceeded by 3 spaces needs to be italicized

    I'm doing a directory for a church. I got my nested style sheet to place a rule before each entry and to bold the family name. At the end of each listing, the children in each family are listed. I created a nested style for the names. I tried defining the nested style as through 3 spaces but that italicizes everything except the family name. How do I use nested style to see the three spaces through hard return and italicize everything in between?
    Screen shot with tabs and spaces. The very first entry (Ainsle family) is how it should look.
    Thanks in advance for your help.
    [screen shot removed by host per Richard's request]

    Richard,
    You're a little confused about this.
    First, do NOT worry about putting the em space after the names. Just do a Replace All to change instances of three spaces to an em space. (I'm assuming you didn't put three spaces anywhere else.)
    At the end of the nested styles, you want to apply None up to the first em space.
    Then you want to apply the character style italic until the end of the paragraph which you can define as the end nested style here character.
    That should be all you need.
    However, I noticed that you've got an error in the listing for Kevin Alexander and Julie Hansen. The rule underneath their names is wrong.
    Finally, you ought to think a second before posting an image on the web with people's real names, addresses, emails, home and work phones, etc.
    If it is possible to revoke that image, do it now!

  • Inserting paragraph rules into a nested style.

    Is it possible to create a style which includes a paragraph rule which can be used in a nested style. Character styles do not seem to allow rules, and nested styles seem to use character styles only when they are being built.
    The nested style is removing the paragraph rule at the mo and im struggling to see how to make it work.
    Using InDesign 5.5

    OK.
    The example has been built in InDesign 5.5. We are building an excel data sheet which will be data merged. As i need it to all follow the same style I have given all the elements within the example a style. The blue rule can't be done as a character style so ive had to do it as a paragraph style. When i open up the nested styles pallette to set up how I want it to behave I cant include the paragraph rule. (indesign wont allow me) The rest is working fine as they are character styles.
    Basicly what im trying to do is reproduce the style in the example with an image on the left, Title in blue bar at the top and the part number, description and price.
    I figured a nested style would be the way forward but I cant get the blue bar (Paragraph Rule to display from the nested style)
    I should point out that I rarely need to use nested styles so im sort of bashing about a bit to figure it out.
    Thanks

  • Nested style highlights pink as if there's a missing font (?)

    setting up a new document here, and trying to make the first character in each paragraph use Body 01 DROP CAPS character style. in this capture i've set it to the first three characters for testing (never mind the term drop caps; trying to use nested style here).
    no matter what i set the typeface to in the character style, it won't display as nested. what would cause this?

    There is a hierarchy to styles. First, the paragraph style is applied to all type in the paragraph, including any nested character styles that are part of the paragraph style definition. Next any character styles are applied, which override the formatting assigned in the paragraph style, and finally, any formatting you apply locally by selecting text and changing the parameters is applied, and that overrides everything.
    Local formatting overrides show up for selected text as a Plus sign after the style name in the Paragraph Styles panel. Do you see the plus sign when you select your text? I suspect not. More likely, you've applied a default character style to everything, so no matter what settings you have in your paragraph style they will be overridden by the applied character style. As I said before, character styles are used only for selected text. They are used for "special" text that needs to be different in some way from the other text in a paragraph -- the basic formatting for the entire paragraph is defined in the paragraph style.
    When you highlight an entire paragraph there should NOT be a character style showing as applied as well. The character style should be either [None], indicating that no text has an overriding character style applied, or it should be blank, indicating that some portion of the text has a character style applied, but not the whole paragraph.
    Bottom line, with no text selected make sure the character style is set to [None] before you begin adding text, and only apply character styles through Nested, Line, or GREP styles in your paragraph style, or by selecting specific text and manually applying the style. Manually applied character styles survive changes to the paragraph style, and are actually the most useful if they are fairly generic, applying just a color, or bold or italic, but not specifying a face or size, so they let the face and size change to match any changes made to the paragraph style -- you usually don't want 9 pt minion bold suddenly appearing in the middle of a paragraph that you've changed to 12 pt Helvetica unless it's a product branding. Instead a style that says only Bold would give you 12 pt Helvetica Bold.

Maybe you are looking for

  • Acrobat XI Pro and MS Word 2010 file conversion issues

    I have created a photo journal comprised primarily of photo collages and text boxes using Microsoft Word 2010.  Acrobat XI Pro is installed as well.  When I "Save as Adobe PDF" the resulting PDF is missing many - not all - of the text boxes placed on

  • How can I solve that my I Pod Touch 4th gen. disconnects when I extract the IOS6 software?

    Hi, when i connect my I Pod Touch 4th gen. to I Tunes (for Windows XP) to extract the IOS6 Software to the I Pod it disconnects. How can I solve that the I Pod always disconnects when i want to extract the Software ,Thanks

  • CS5 Photoshop - changing color of object

    Hello How do you change the colors of these chairs to green? I tried to do image>adjustments>replace color but it isn't very clean. It shows the red still. Do you create a mask with an alpha channel? If so, how again? Thanks in advance.

  • Set up IPMP Solaris 10 -- two interfaces, one IP

    I have a tasking to set up failure-based IPMP on a T5120. I have been reading all the Sun documentation on setting up IPMP, but cannot find exactly what I am looking for. I have one IP address, and two connected NICs, and my task is to set up IPMP so

  • Change in output of FB03 T-code

    HI Experts, I have a reuirement where i have to write some text on the output of FB03 transaction.What are the possible solutions.