Skip to content

Typst don't apply footnote style when text is called before hand #1622

Closed as not planned

Description

@FirelightFlagboy

Description

Typst version: 0.5.0 (3a8b9cce)

I'm trying to configure the style of the generate footnote, but it don't seems to work when I call text to set the style of a specific block of text.

Here is the minimal input where I'm able to have the issue.

#text(weight: "bold", size: 1.5em)[Styled title]

#show footnote.entry: set text(blue)
#show footnote: set text(red)

== Hello world

This is a simple String with a footnote#footnote[A footnote is a text that is put at the bottom of a page describing an element]

I expected the footnote text to be blue but it's not.

The issue is gone when I remove the first line with #text...

Result in the following test.pdf

Generated Image

test-1

Reproduction URL

No response

Operating system

Linux

Typst version

  • I am using the latest version of Typst

Activity

  1. added
    bug
    on Jun 30, 2023
  2. laurmaedje commented on Jun 30, 2023

    @laurmaedje
    Member

    Duplicate of #1467

  3. added
    duplicate
    on Jun 30, 2023
  4. FirelightFlagboy commented on Jun 30, 2023

    @FirelightFlagboy
    Author

    @laurmaedje By looking at the documentation https://typst.app/docs/reference/meta/footnote/

    The information that the #show footnote.entry need to be at the top of the document is missing. (#1348 (comment))

    Could it be added ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugduplicate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions