Back

If your email is not recognized and you believe it should be, please contact us.

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: GREP excluding comma in reformatting paragraph style #14333156
    Hologram –
    Participant

    Allright, I found the solution after a night of sleep. Here’s what I did:
    I stopped the character style conversion at the comma prior to the new opening bracket:
    (?<=\]).*?(?=(,\[))

    in reply to: GREP excluding comma in reformatting paragraph style #14333112
    Hologram –
    Participant

    Sure thing, I understand the confusion. What I want is to use Crossreferencing, by just referencing the paragraph number.
    Now, seeing only numbers in the cross-reference panel is very confusing to me, so I stumbled upon a “hack” where you can use the entire paragraph’s text, but reduce the visibility of anything but the numbers with a really small character style and GREP.

    My goal is to have a sources list with fully formatted text in APA style. My referencing in-text should look like a superscript number at the end of a piece of text. These could be multiple numbers in case it was made by combining multiple sources. Basically, all the formatting has been taken care of, except for that I want to be able to see the comma I place between the cross references.

    My entire cross-reference would be the full size reference, which I denote between the quotation marks. In this case, I have two sources for one piece of text, so two separate cross-references between quotation:
    “[1] Author, A. (2000). Title.”, “[2] Author, A. (2000). Title.”

    I put a comma in between the two to seperate the cross-references. Now if my really small character style wouldn’t affect the commas I would have my desired result (just the numbers and comma):
    “1, 2”

    What I did to achieve this, is remove any text in between the closing and opening bracked ]….this text….[
    With this: (?<=\]).*?(?=\[) and the character style set to the really small text.
    So my question is can I exclude my comma from being overridden with the really small characters?

    The logic could be as follows: override all text between ] AND [ except for the seperating comma. I am thinking about using a lookahead that searches for “,\[” which is “, [” so any comma prior to the start of a new reference. Can that be incorporated into the previous GREP piece to exclude that specific string of characters from receiving the really small character style override?

Viewing 2 posts - 1 through 2 (of 2 total)