Push down the first line in a grid without indention?

Hi!

This looks fine so far regarding spacings for the text on the right side but

#box(height: 18pt)

will not only push down the first line but also indents it.

#grid(
  columns: (auto, 0.35cm, 1fr),
  rect(width: 4.1cm)[logo],
  [],
  [
    #box(height: 18pt)
    #text(weight: "bold", size: 17pt)[IT-Services & Consulting My Name] \
    #par(leading: 6pt)[
      #text(weight: "light")[
        Street and number, 1234 Musterort - Deutschland \
        E-Mail: info\@somedomain.de \
        Tel.: +49 (0)123 1234567 | Fax.: +49 (0)123 1234567
      ]
    ]
  ]
)

How can I keep the pushed down first line (and all other formatting) without the indention?

Thanks!

Thank you for posting the code with the correct formatting. However, the code as you presented it is not a minimum working example (MWE). When I paste it into a blank document it fails to find your logo or the fonts you specify. Also, is this your actual contact information? You may want to remove it.
Please read How to post in the Questions category for more information.

As for the problem, you can use v(18pt):

#grid(
  columns: (auto, 0.35cm, 1fr),
  rect(width: 4.1cm)[logo],
  [],
  [
    // #box(height: 18pt)
    #v(18pt)
    #text(weight: "bold", size: 17pt)[IT-Services & Consulting My Name] \
    #par(leading: 6pt)[
      #text(weight: "light")[
        Street and number, 1234 Musterort - Deutschland \
        E-Mail: info\@unknown.de \
        Tel.: +49 (0)123 1234567 | Fax.: +49 (0)123 1234567
      ]
    ]
  ]
)

Note that I also replaced your logo with a rectangle, and removed the fonts entirely.

That’s it, thank you!

Sorry I’m totally new to typst, just stumbled upon it yesterday ;)
Will try to make it better next time!

Ofc not :innocent:
That would have been quite weird^^

I’ve edit the initial posting regarding the recommended guidelines.

Thanks again!

1 Like

Hi. If you can still edit your post, it’s always better to fix it as well.

Did that after I got the hint from @gezepi

Your OP code still doesn’t compile.

It should compile now…

2 Likes