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

Mis-indented first outline entry in the default IEEE template #2940

Closed
1 task done
DhruvDh opened this issue Dec 13, 2023 · 4 comments
Closed
1 task done

Mis-indented first outline entry in the default IEEE template #2940

DhruvDh opened this issue Dec 13, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@DhruvDh
Copy link

DhruvDh commented Dec 13, 2023

Description

When using #outline() to create an index for a document using the default IEEE template, the first outline entry is not indented correctly.

Screenshot by Dropbox Capture

Here, the first outline is created with #outline(indent: false) and the second with #outline(indent: true)

Reproduction URL

https://typst.app/project/rSHTfH6hRDVZx6I9vXQMON

Operating system

Web app, macOS

Typst version

  • I am using the latest version of Typst
@DhruvDh DhruvDh added the bug Something isn't working label Dec 13, 2023
@PgBiel
Copy link
Contributor

PgBiel commented Dec 13, 2023

Hello, outline(indent: true / false) are deprecated in favor of outline(indent: auto / none). Outline with automatic indent uses the numbering to determine the indentation, which can cause those problems. Can you try to specify a fixed indent instead, e.g. with outline(indent: 2em)?

@DhruvDh
Copy link
Author

DhruvDh commented Dec 13, 2023

Screenshot by Dropbox Capture

This screenshot is rendered using -

#outline(indent: auto)

= Introduction
Scientific writing is a crucial part of the research process, allowing researchers to share their findings with the wider scientific community. However, the process of typesetting scientific documents can often be a frustrating and time-consuming affair, particularly when using outdated tools such as LaTeX. Despite being over 30 years old, it remains a popular choice for scientific writing due to its power and flexibility. However, it also comes with a steep learning curve, complex syntax, and long compile times, leading to frustration and despair for many researchers. @netwok2020

#outline(indent: 2em)

I expected Introduction and Method entries to be indented equally.

@PgBiel
Copy link
Contributor

PgBiel commented Dec 13, 2023

Thanks for the input. I've identified in the template that it seems that #set par(..., first-line-indent: 1em) is set. Can you try moving that option to your document, after the outline is placed?

I believe the problem here is that such option - perhaps a bit inadvertently - affects outline.

@DhruvDh
Copy link
Author

DhruvDh commented Dec 13, 2023

Thanks, this fixes it. I will close this issue and open one in the templates repository in some time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants