typst / templates

Templates that are directly maintained by the Typst team.
MIT No Attribution
228 stars 22 forks source link

IEEE: Wrong indent after equation without following text. #37

Closed RomeoV closed 2 months ago

RomeoV commented 2 months ago

Consider the following screenshot (only left column of IEEE format is shown, thus title looks weird). screenshot_2024-05-31T19:25:35UTC

After a full-line equation, typst will not indent a new paragraph correctly (as seen in red). The indentation works however if the equation is followed by some text (as seen in blue).

The code is below. This is on typst 0.11.1 (online editor).

#import "@preview/charged-ieee:0.1.0": ieee
#show: ieee.with( title: [My title], )
= Section 1
#lorem(15)
$ a=1. $
#text(blue)[This text is necessary to fix indent of next paragraph.]

#text(blue)[This is a new paragraph. There #emph[is] indent here.]

= Section 1
#lorem(15)
$ a=1. $

#text(red)[This is a new paragraph. There is #emph[no] indent here, but there should be!]
laurmaedje commented 2 months ago

This is not specific to the IEEE template, but rather a general limitation of Typst. See typst/typst#311. We hope to resolve it soon.