I can't think of a way to do this - but I don't use tables an awful lot. The best I could come up with is to create a new cell style - but you'd have to apply that manually.
It probably can be scripted. Have you tried the scripting forum? I had a look for some plugins but none stood out.
Well you could just do it with a Rule Above and alternate paragraph styles by using "Apply Next Style".
No need for GREP in this situation at all.
I've done tables before this way - but if text needs to wrap in what would be a long cell - it's a PITA to accomplish - especially if the tables are already built.
In my view, not feasible to use "Apply Next Style".
If you precede to an update, it won't work.
Agreed, it won't be automatic if you do that way.
Your way is automatic.
I wonder if there is a plugin that handles this?
The great problem here is when you add or delete a line.
As I wrote, using Multi-Find/Change, you can launch 2 regex:
- the first searches all the paras with "Line_Blue" applied and applies "Line_White" para style;
- the second does what I wrote above (post#2).
Another problem (you're right!) is when you several lines with the same para style…
If 1 line, my approach is interesting … but if more, use a table is good for me.
I think we can mix the two ways: A table structure with para styles with para rules.
I've tested it quickly and easily with QuicKeys. So, can be done with [JS].
Yes - I think a non-filled table structure using Paragraph Rules would be the way to go.
Combining tables with Paragraph Rules and GREP would be a way forward.
First of all, thanks guys for your great help
This is indeed tricky... I've tried several ways to make this easyier with no success. But I did not though of that...
However, I think that Adobe should add some kind of "text style" parameters directly into the table options. I do not see the point of having an option allowing to alternate automatically the cells background if you cannot do the same with the content of the cells...
I've just tried the combination of the tables and paragraph rules and this works fine ! I think I will spent less time to update the content now ! As my client send me an Excel file with the updated content I just have to copy/paste it in my Indesign project and voilà !
I was actually looking into the scripts in order to ease the process but this seems far complex and I just need it for this specific client. I even looked at the importing options from Excel files to solve the problem... with no luck.
Thanks again, and If you have any other idea to ease the process, please feel free to post it here this would be of great help
I will do, thanks !
I've just retried with the Paragraph styles and the copy/paste is not working on multiple lines....
As there are many adjustments when my client updates the file, I used to copy/paste directly from the Excel file directly into my Indesign project so it replaced the content with the new one and keeps the text style. With the Paragraph Style it just use the style of the first line and apply it to the whole pasted text...
Nice work - and I think if someone corrects it you will have gained some extra knowledge!