GREP/nested styles: Help needed

Hi there,
I loved GREP and nested styles from the moment I figured out what it was. But sadly I am not very good at building structures, and I can't find a GREP manual for my needs (I'd need it in German). So my skills are very, very basic, but usually I get along. Now I have a task that goes far beyond, and after one and a half very frustrating days of testing and fiddling around I figure that am stuck. I hope that anyone can help.
So this is the task: I have an Excel file, 11 columns and hundreds of lines. Those will have to go in a "list of publications" of a scientific book.
The columns are tabstop separated:
Author1     Author2     Author3     Author4     Author5     Text     Title     Journal     Volume     Page     Year
The result will have to look like this:
Author1, Author2, Author3, Author4, and Author5, Text,
Title
Journal <blank> Volume, Page <blank> (Year)
So I have to insert commas, the word "and", (probably soft) linebreaks, blanks, and brackets. "Title" needs to be in italics, while "Volume" needs to be bold. The problem is that I get text corrections all the time, and the excel file gets longer and longer every day. In addition to that, some columns, like "Author4" and "Author5", and mostly "Text" are often, but not always, empty.
Is there a way to change the tabstop separated Excel lines into what it has to look like more or less automatically (or at least in just a few simple steps)?
Thanks for your help!
Best from a sunny Hannover, Germany,
Gero

I'd have saved the excel file as a Comma Delimited File
Then all your text would be converted from
Author 1
Author2
Author3
Author4
Title etc.
to
Author1, Author 2, Author3, Author4, Title etc.
Then it would have been a matter of finding a determined amount of commas to a point and inserting a soft return
and so on.
If that makes sense?

Similar Messages

  • Creating a GREP style Help Needed

    I would like to set-up a style using GREP expression(s) that would do the following:
    Everything preceding an em dash (including the em dash and two spaces after the em dash) would be set to bold-italic, AND everything in the paragraph that begins with the word "NOTE:" until the end of the paragraph would be regular-italic.
    Here is a sample of the kind of text I want to format with one style:
    OPERATOR PANEL - The operator panel is located on the right-hand electrical enclosure. NOTE: Not all equipment will have the same operator panel. Refer to schematics for additional information.
    "OPERATOR PANEL - " would be all bold (or bold italic). The body text is regular. the "NOTE: Not all .... " to the end would be regular-italic.
    Any help or direction to a web-site with examples would be appreciated.
    Thanks in advance.
    RPP

    It's easier than you think.
    Peter's suggestion of a regular nesting style might work, except that it's
    i always
    applied to each paragraph you apply it to. That's just what the Grep styles are for:
    i conditional
    stuff.
    The 1st half: Apply Style: Bolded To Text: ^.*? ~=
    (there should be another space after the '=')
    The 2nd half: Apply Style: Italicized To Text: NOTE:.*$
    These are both pretty much basic GREP expressions -- except for the "~=", that's Adobe's --, so just about any google to a GREP repository can explain them. I already knew the basics, but
    this page taught me some new tricks.

  • Nested Styles help

    I'm trying to create a nested style to do the following on a standard line of body type:
    Drop Cap: 1st Letter, 3-lines tall
    1st Line of Text: All caps
    No Indent on First Paragraph
    .2" indent on all other paragraphs in story
    I got the Drop cap and first line of text to work as CAPS, but I can't figure out how to have the first paragraph with no indent, and the rest of them to have the indent.
    Basically. I just want the first paragraph to be flush and the rest of them indented .2"
    I've attached two images. "What I Don't Want," and "What I Want" and they are named accordingly.
    Is this possible?
    Thanks,
    Steve

    I suppose I should elaborate. The first style should have the Drop Cap, no indent, and the all caps line style. The second style doesn't appear to need any nested styles at all, just the indent, and it can be set as 'Next Style' for the first.

  • GREP styles help needed!

    I want to make an email address italic in a paragraph using grep styles.
    Each email is different, so i want want to identify each email by the @ sign. How do I make the whole email address change to the required style when each one has a different name?
    Any help appreciated.

    The basics are pretty easy to grasp:
    \<\w[-\w_\.]+\w@\w[-_\w\.]+\w\>
    will mark all 'word characters' (a-z, digits), at-sign, word characters again. Some email addresses may contain "weird" (not really standard) characters -- just add these inbetween the square brackets. I added the hyphen and the underscore as examples. (Additionally, the hyphen is "special" inside square brackets, meant for a range, as in "a-z". Always insert it first to remove this magical property!)
    Notice the word delimiters \< and \> left and right, forcing all to be one single entry; if you see an entire email address that does not appear marked, it must contain some 'invalid' character.

  • TabBar Style Help needed

    Hi,
    I'm trying to figure out how to style a tab bar such that the
    selected tab will have text of a different color than the
    unselected tabs.
    Imagine 4 tabs. 3 are very light gray with black text. 1 is
    selected and it is dark blue with white text.
    I've been all over the documentation and I just can't figure
    out how to do this.
    Here's what I tried that didn't work:
    .myTabs {
    tabHeight:30;
    tabStyleName: "myTab";
    .myTab {
    fillAlphas:1,1;
    fillColors:#F1F1F1,#FAFAFA;
    textSelectedColor:#FFFFFF;
    color:#000000;
    borderColor: #A7A7A7;
    backgroundColor: #6B86B6;
    cornerRadius: 0;
    I thought using the textSelectedColor property would give me
    what I needed, but it didn't. Please help.
    Thanks,
    --Jon

    Here is a really good resource for style questions. The Flex
    3 Style Explorer...see the changes and code in real-time.
    See
    it here

  • Dreamweaver Template/Styles help needed

    Go SBI!!! My first site is ranked #9 on google and #14 on
    Yahoo!!!
    Okay, hello everyone, I could use some help. I'm stuck after
    lots of attempts. I am working on a new website using Dreamweaver.
    I have read most of 1,100-page DW Bible, but reading and
    implementing properly are two different things.
    I have 90% of my template file done. It has a header and
    footer and inbetween the content will site between two side colums
    (the left side will contain the nav bar and the right sidde misc
    info). My issue is in getting the three sections (left-column,
    center content, right-column) to have the same height so the
    bottoms line up.
    The issue is that each page varies in length based on the
    amount of content. Absolute seems to work, but I must be able to
    edit it from within each page individually. Here is the difficulty
    I'm having.
    I'm trying to setup my main page as a template so changes to
    items like the navbar get updated automatically throughout the
    webpages. Since the navbar sits within the left column (which
    contains CSS style codes such as border width, float, etc.) and
    I've gone in and chosen an editable area within that column, it
    makes everything else uneditable (like you'd want for a template
    page).
    But it also makes it impossible to edit that one height
    property. My main goal is to have the left center and right areas
    all lined up at the bottom and to be able to make changes to the
    master navbar and have it change all pages.
    Should I be looking to accomplish this another way?

    > My issue is in getting the three
    > sections (left-column, center content, right-column) to
    have the same
    > height so
    > the bottoms line up.
    There is no non-javascript way to do this. Google "faux
    columns" for a nice
    workaround.
    > like you'd want for a template page
    I'm worried that you don't quite understand how templates
    work when you say
    this. It's on the child pages where you want the navigation
    to be
    uneditable.
    > Should I be looking to accomplish this another way?
    Yes. Try the Google search.
    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
    ==================
    "svteclipse" <[email protected]> wrote in
    message
    news:[email protected]...
    > Go SBI!!! My first site is ranked #9 on google and #14
    on Yahoo!!!
    >
    > Okay, hello everyone, I could use some help. I'm stuck
    after lots of
    > attempts.
    > I am working on a new website using Dreamweaver. I have
    read most of
    > 1,100-page
    > DW Bible, but reading and implementing properly are two
    different things.
    >
    > I have 90% of my template file done. It has a header and
    footer and
    > inbetween
    > the content will site between two side colums (the left
    side will contain
    > the
    > nav bar and the right sidde misc info). My issue is in
    getting the three
    > sections (left-column, center content, right-column) to
    have the same
    > height so
    > the bottoms line up.
    >
    > The issue is that each page varies in length based on
    the amount of
    > content.
    > Absolute seems to work, but I must be able to edit it
    from within each
    > page
    > individually. Here is the difficulty I'm having.
    >
    > I'm trying to setup my main page as a template so
    changes to items like
    > the
    > navbar get updated automatically throughout the
    webpages. Since the navbar
    > sits
    > within the left column (which contains CSS style codes
    such as border
    > width,
    > float, etc.) and I've gone in and chosen an editable
    area within that
    > column,
    > it makes everything else uneditable (like you'd want for
    a template page).
    >
    > But it also makes it impossible to edit that one height
    property. My main
    > goal
    > is to have the left center and right areas all lined up
    at the bottom and
    > to be
    > able to make changes to the master navbar and have it
    change all pages.
    >
    > Should I be looking to accomplish this another way?
    >
    >

  • Help Needed, (Stuck on quotation styles)

    Hi!
    It might be a really easy question to answer, never the less:
    I have inDesign CS4, and I writing a document, where I have alot of quotes.
    All I want is to automaticly select the quotes, and change them to bold font style.
    Only think I found that culd work is nested Styles, but I don't have a cluewhat order or what to put.
    Can anyone help please?

    What you want is a paragraph style for quotes that has the formatting you want. Whether this requires a nested style, a GREP style, or nothing special, depends on what thes paragraphs look like. Are the quotes self-contained paragraphs, or embedded in other text? If embedded, is there only one quote or can there be more? Are quotes always surrounded by quotation marks?
    We need complete details about waht the text looks like before we can offer good advice. A screen capture showing the desired result would be a big help. You can use the camera icon on the web page to embed an image in a post like this:

  • 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!

  • Help Needed - FusionFx Style - How do I remove the Dashboard Grey Box Section, so that Dashboard Background is Blank

    Help Needed - FusionFx Style - How do I remove the Dashboard Grey Box Section, so that Dashboard Background is Blank
    We like FusionFx Style but would like to keep the background white like blafp style.

    Can you be a little more descriptive on what you need here and explain what exactly you want to be changed.

  • Grep Styles/Nested Styles from the end of the paragraph

    Hi -
    It appears that grep styles, and nested styles only allow you to apply styles from the beginning of the paragraph until the match.
    I'd like to be able to apply styles from the END of the paragraph going back.
    This would allow me to apply a non-breaking character style to the end of a paragraph to control "runts". You could make the last two words of a paragraph non breaking, or set a 15 character threshold.
    This wouldn't work for all cases, but I'm working with centered, non-justified text, so it should work fine. If the feature were there.
    I'm sure there are other things one could do with it as well.
    There's a good discussion, and a MANUAL work-around on
    http://pdsassoc.com/tipsCS/DeruntingParagraphs/index.html
    Tom

    I used your suggestion and reviewed the tutorial again.
    Sometimes a missing piece of info drives you nuts.
    Thanks again.
    My clients will love this enhancement.
    CS rocks.

  • Right-indent tabs in GREP or nested styles

    How do you specify a right-indent tab (shift-tab) in GREP or nested styles?  Is it possible?  I could only find the regular tab character.
    Thanks, Phyllis

    In GREP it looks like
    ~y
    Mind you, I don't know if that will work for you - I just copied a right-indent-tab to the clipboard and pasted it into the GREP Find What field.

  • 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 with Glyph?

    Hello there,
    I have a question setting up a nested style.
    I would like to manually enter a number, followed by a tab. (the numbers can't be automatic as some are not in numerical order)
    I would like the content to: stay formatted as as [none] up to the arrow, then after the arrow all text needs to be in italics.
    The problem is the number of sentences will vary before the arrow (the question) and after the arrow for the answer which need to be formatted as italics.
    The arrow (which is the font webdings 3, unicode is <F0C6>)
    Can this be done? Or can I not specify the glpyh in this nested style?  I have tried a variety of methods. Thanks for your help!

    It's actually easier, in some ways, to go the other way. Format the paragraph style to use the italics, then apply a character style up to 1 arrow character (copy and paste it into the dialog) that formats the first part of the paragraph, then apply a second character style to change to Wingdings3 through 1 word.

  • 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.

  • Mapping XML tags to paragraph styles that contain nested styles

    I am importing XML into InDesign (CS5.5) and the tag mapping to styles is working fine until I get to a paragraph style that contains a nested style.
    I have a sentence that starts with a number:
    1the dog runs fast.
    In InDesing properly styled looks like this:
         1  The dog runs fast.
    (tab)1(tab)The dog runs fast.
    The number is styled with a character style (Number) and the whole sentence is styled with a paragraph style (Sentence). In order to get the tabs in between the number, I have a nested style within the paragraph style (Sentence). This triggers the tabs when it hits the character style (Number) like this:
    Number up to 2 Tab Characters
    In XML, it looks like this
    <sentencetag><numbertag>1</numbertag>The dog runs fast.</sentencetag>
    Sentencetag is mapped to Sentence paragrph style and Numbertag is mapped to Number character style, but the nested style for the tabs are not displaying. I just get this in IND.
    1the dog runs fast.
    Everything works beautifully until I hit the nested styles, which I do need to get to work somehow. Any help would be much appreciated.
    Thanks in advance!

    It sounds like your tab characters are actually disappearing from content in the XML. Jeff was responding to the fact that they need to be there, and you state that you originally had them in your document, but they are not showing up once imported through the XML.
    The tabs may be disappearing in the XML document due to the "TAB" character in your text editor not being a tab, or at least not properly-formed XML TAB equivalent, OR because you are not "importing whitespace elements" when you import your XML.
    Importing whitespace elements can wreak havoc on other things in your XML structure and styled layout within the Indesign document, so I would put the XML quivalent of TAB everywhere a tab should be in your XML, and make sure NOT to import whitespace (when importing XML using "Merge Content", select not to import whitespace items from the import options).
    I believe the XML friendly character code for a TAB character is "&#9;" or "&#09;" but have not tested this. Don't include quotes when adding the character code, just the ampersand, semicolon, and everything in-between.
    Also, sounds like your tags are mapping ok for you, so your XML should look something like:
    <sentencetag>&#9;<numbertag>1</numbertag>&#9;The dog runs fast</sentencetag>.
    It should't matter where you put the TAB character equivalent in relation to your nested tag.

Maybe you are looking for

  • "Can't open file - not a valid pdf"

    Hi, This seems to have been asked before but I can't find an answer!! I have a small app that i use for work which essentially just links to pdfs stored on a wordpress site All has been working well until recently when android phones can no longer op

  • Can't receive email form outside accounts

    Hi everyone, I am trying to set up a mail server on [nuke dot mgh dot harvard dot edu]. I can send emails anywhere, I can receive email from the accounts created on this server, but I can't receive anything from any outside account. I know there are

  • Installation Errors on Solaris 8

    Hello.I am attempting to install weblogic server 6.0 on a Solaris 8 system. I have successfully used the installer on Solaris 7, but when I run the 'weblogic600_sol.bin' file on the Solaris 8 machine, I get the error "Error: Cant' find libjava.so.".

  • I am trying to download After Effects cs6 Trial. I am trying to download it from the download assist

    I am trying to download After Effects cs6 Trial. I am trying to download it from the download assistant tool. It keeps giving me error 107. (Cannot Communicate from error 107) I have tried restarting and reinstalling the assistant but it keeps giving

  • Best method to make alignment correction

    Hi, I'm a newbie here. I'm working on some report and I would like some gurus could give me a hint on Oracle Apps report for changing cosmetic update (eg: alignment, sizing and etc) as I cannot run it on my local environment. Last time when I can run