#Space between paragraphs in a block

11 messages · Page 1 of 1 (latest)

pure zinc
#

How do you add custom spacing between paragraphs which are located in a separate content block

It seems like once I set the paragraph spacing on top of the document, I cannot modify it anymore.

#

In the following example paragraph spacing doesn't change

?render pagesize=default theme=light ```
#show par: set block(spacing: 2em)

#lorem(20)

#lorem(20)

#[
#show par: set block(spacing: 10em)

#lorem(10)

#lorem(10)
]

radiant fossilBOT
pure zinc
#

I can only change paragraph spacing if I wrap the first section in a content.I can only change paragraph spacing if I wrap the first section in a content.

?render pagesize=default theme=light ```
#[
#show par: set block(spacing: 2em)

#lorem(20)

#lorem(20)
]

#[
#show par: set block(spacing: 10em)

#lorem(10)

#lorem(10)
]

pure zinc
#

Or alternatively, if I wrap everything inside of the content block into blocks.

?render pagesize=default theme=light ```
#show par: set block(spacing: 2em)

#lorem(20)

#lorem(20)

#[
#set block(spacing: 10em)

#block[#lorem(10)]

#block[#lorem(10)]
]

pure zinc
#

Both of the solutions above are not entirely satisfactory.

pure zinc
#

I'm just wondering if anyone has any additional insights on the question I raised above. Is it correct to assume that once #show par: set block(spacing: 2em) is set for the document we cannot modify it inside content blocks? Is that a feature or a bug?

worldly schooner
#

it is a design choice, set and show rules apply to the scope and if its on top of the document, thats the global scope and cant be overwritten anymore

#

youd have to scope it in #[] for each individual spacing