Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating columns adds an extra space between slide title and content #174

Open
m-kru opened this issue Jun 20, 2024 · 4 comments
Open

Creating columns adds an extra space between slide title and content #174

m-kru opened this issue Jun 20, 2024 · 4 comments

Comments

@m-kru
Copy link

m-kru commented Jun 20, 2024

#slide[
== Title
#columns(2)[
+ airhdl
+ AGWB
+ AutoFPGA
+ Cheby
+ Corsair
+ FPGA Vendors
+ hdl_register
+ II & CII
+ IP_XACT
+ Opentitan Register Tool
+ Register Wizard
+ RgGen
+ SystemRDL
+ vhdMMIO
+ wbgen2
+ Others (2)
]
]

Generated slide:
image

The extra space is gone if I remove the #columns(2)[ command.

@jamesrswift
Copy link

While only a bandaid fix, you could use a negative vertical space after the heading

@m-kru
Copy link
Author

m-kru commented Jun 21, 2024

Yeah, yet another workaround is to #show heading: set block(below: 1em).

@Enivex
Copy link
Contributor

Enivex commented Jun 23, 2024

Yeah, yet another workaround is to #show heading: set block(below: 1em).

I mean, that's not really a workaround, but the intended way to set block spacing. This is not a bug.

@m-kru
Copy link
Author

m-kru commented Jun 24, 2024

So creating columns by default adds an extra space? If so, how can I create columns and inform typst to not add an extra space? Both, negative vertical space and show heading approaches vertically realign the block with columns. However, the realignment value is provided by the user by hand, and it might not be equal to the value of the extra space added automatically by the typst.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants