How to make a table formatting condition for just one table?

Of note, that proposal is related to the opposite situation: when you have a global show rule but you want to disable it for a specific scope. You’d have something like (note: hypothetical syntax)

// NOTE: Hypothetical syntax, this doesn't exist
#let my-rule = show table: strong

// NOTE: Hypothetical syntax, this doesn't exist
#apply my-rule

#table[This is strong]

#[
  // NOTE: Hypothetical syntax, this doesn't exist
  #revoke my-rule  // disable rule temporarily
  #table[This is not strong]
]

#table[This is strong again]

because, currently, the only way to do that is to turn that setup inside out: scope half of the document with the show rule in it, then have something outside the scope, then scope again, which is cumbersome.

Here, using scopes is the intended way to temporarily apply the show rule:

#table[A regular table]

#{
  show table: strong
  table[Only this is strong.]
}

#table[But this is not!]

That issue is unrelated and specifically about #show table.cell: set table.cell(...), which doesn’t work because table cell properties are applied before show/set rules are checked (they currently are only checked when the cells are laid out).

Perhaps you meant to link to this one instead, since OP may have intended to write something like #show table.header: strong, which indeed currently doesn’t work:

2 Likes