Community discussions
Hello,
In my (still unpublished) book, I've two different code blocks back-to-back (because different languages). E.g.: ```rust
// ...
```
```json
{}
```
When rendering the preview I noticed that the vertical space between those two is pretty large. Is there an idiomatic way on how to handle that?
My theme is based on "Technical Condensed" with some small tweaks. all customizations I applied were in the realm of how parts are rendered.
Hi Thorsten,
There isn't a setting for the space between two particular code blocks, but you can reduce the space around code blocks in your book's theme settings, on the Theme page under "Lists and Figures": "Top Figure Vertical Margin" and "Bottom Figure Vertical Margin". Both are 2 in Technical Condensed, and the space between two code blocks in a row comes from the bottom margin of the first plus the top margin of the second, so lowering either one brings them closer together.
Please note these margins apply to every figure in the book, including images.
If you have any questions or need anything else, please let us know!
Kind regards,
Michael