Copy link to clipboard
Copied
Hi
I need som help for my GREP style.
What is the GREP code if I want less space between A and 1 (see example picture). Do I make a character style with tracking and what code do I have to write?
If it is A and W with no space in between I use A(?=W) but in the example below there is a space in between.
Kind regards
Jesper
Just to be save (but less flexible):
Copy link to clipboard
Copied
This should work:
Maybe
(?<=[\l\u])\s(?=\d)
is not as slick, but i dont know what exactly you want to exclude, so I made…
Look for \s (All Spaces)
while infront is (?<=…) has to be [\l\u] (any character)
and while after is (?=…) a digit \d
You could change the stuff what has to be infront/after
Copy link to clipboard
Copied
It only has to happen when "KORMA *space* 1000" occurs
Copy link to clipboard
Copied
Just to be save (but less flexible):
Copy link to clipboard
Copied
Hi DBLjan
I don't know it this one is too complex to do as a greph style in my paragraph style:
Do you know how to do this (see example screenshot)?. I need the . and the - to more close to the 2
Copy link to clipboard
Copied
Piece of cake 🙂
You just need a character-style with negative spacing. And a paragraph-style for your paragraphs containing the prices.
The GREP is
.(?=-)
which means
Look for the point, with postive lookahead (?= ) aka a following "-"
Be careful, we didnt exclude anything, so if you have a text like "Hello World.-Btw: This." .- will also be spaced negativly.
Also if your price-range is also 9.95 or 12.50 youll have to add more stuff.
Copy link to clipboard
Copied
Hi DBLjan!
Yes thanks 🙂
But my problem is that i need a Baseline Shift on the -
I have made it 8pt in this case (see screenshot)
Copy link to clipboard
Copied
Heres what you need to do:
Create a new character-style with just the base-line shift.
Now add a GREP to your paragraph-style (which can hold various GREPs) to…
Look for a "-", with a "." infront of it:
(?<=.)-
Copy link to clipboard
Copied
Any luck?
Copy link to clipboard
Copied
Hi DBLjan
Yes!
I figured it out now. Thank you very much!