How to set par rules for main text only (and e. g. avoid table content)

Hi all, I’m new, this must be basic.

I’m setting up a par rule

#set par(justify: true)
This is a paragraph that I want justified.

but it also affects content of my table below

#table(
  columns: 4,
  align: center,
  table.header(
    [Name], [Manufacturer],
  ),
  [This text shoudl be centered only but seems to be centered AND justified],[Gibco],[26600-023],[Extraordinarily and exquisite wonderfully long words show that this is justified],
)

Is it possible to set the par rule to only apply to “normal” text, not tables, figure captions, headers etc.?

The most direct way is to use #show table: set par(justify: false) which turns off justification inside tables again.

2 Likes