Skip to main content
Participant
August 29, 2022
Question

Highlight text containing anchored table

  • August 29, 2022
  • 3 replies
  • 270 views

Good Morning,

How can I highlight anchored table in a text frame in a smart way?

I've a paragraph style with shadow option but doesn't effect the line with table (see attached).

Neither underline option or paragraph rules works.

 

Thank you.

This topic has been closed for replies.

3 replies

Community Expert
August 29, 2022

@lucignolo25859033u0ra said: "How can I highlight anchored table in a text frame in a smart way?"

 

Well, let's get creative here. One way would be to widen the cell's width to the frame's width or to the width of the shading done with the paragraphs before and after. The fill of the cell could be your "highlight", the contents could be restricted by cell borders. And even the old cell's fill could be done with paragraph shading and the cell's strokes could be done with paragraph borders.

 

Also this is a workaround:

 

Download the sample document from my Dropbox account:

https://www.dropbox.com/s/qxxq85f66z8wuiw/TableCellFilled-TextInCell-ParagraphShadingAndBorder-2020.indd?dl=1

 

Regards,
Uwe Laubender
( Adobe Community Professional )

Participant
August 30, 2022

Thank you Uwe.

I know is not a one click solution but finally I adopted the attached solution.

Cell inside textframe with background and automatic high inside textframe.

Regards,

Lux

 

Robert at ID-Tasker
Legend
August 29, 2022

How about scripting it? 😉 

Community Expert
August 29, 2022

Hi @lucignolo25859033u0ra ,

yes, this is the downside with paragraph shading.

You need at least one single character before the table in the same paragraph with the table.

Did that with a single blank character and a reduced value for leading in the paragraph style that is applied to the paragraph holding that blank character and the table character.

 

From my German InDesign 2022 on Windows 10:

 

 

The extra blank character before the table forced a new line of text:

 

Values for paragraph shading:

 

Table settings:

 

The issue with this setup is of course that you need different values for the paragraph shading depending on the height of the table:

 

So all in all that is only a workaround and not flexible at all.

And it is no solution at all if the table will break to another text column or to a new text frame.

The shading will not break along with the table:

 

Regards,
Uwe Laubender
( Adobe Community Professional )