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

[BUG] When using the simple theme, #slide[== subsection_name] will result in a double title. #108

Open
ChungLeeCN opened this issue Nov 1, 2024 · 3 comments
Labels
question Further information is requested

Comments

@ChungLeeCN
Copy link

When using the simple theme, #slide[== subsection_name] will result in a double title.

#import "@preview/touying:0.5.3": *
#import themes.simple: *

#show: simple-theme.with(
  aspect-ratio: "16-9",
)

#title-slide[
  = 章标题
]

#slide[
  == 节标题
]

bug_report

@OrangeX4
Copy link
Member

OrangeX4 commented Nov 1, 2024

Just use

#import "@preview/touying:0.5.3": *
#import themes.simple: *

#show: simple-theme.with(
  aspect-ratio: "16-9",
)

= 章标题

== 节标题

@OrangeX4 OrangeX4 added the question Further information is requested label Nov 2, 2024
@ChungLeeCN
Copy link
Author

Just use

#import "@preview/touying:0.5.3": *
#import themes.simple: *

#show: simple-theme.with(
  aspect-ratio: "16-9",
)

= 章标题

== 节标题

I believe this is a bug rather than a feature. Other templates do not produce two titles when processing #slide[== section title]. On the other hand, commands like #uncover and #only should ideally be used in conjunction with #slide[...], rather than directly with == section title. Therefore, this bug needs to be fixed.

@ChungLeeCN ChungLeeCN changed the title When using the simple theme, #slide[== subsection_name] will result in a double title. [BUG] When using the simple theme, #slide[== subsection_name] will result in a double title. Nov 5, 2024
@OrangeX4
Copy link
Member

OrangeX4 commented Nov 5, 2024

First, this is a problem caused by touying's design, which you can avoid by #config-common(auto-offset-for-heading: true).

Second, what is the conflict between uncover, only and == section title? I don't understand very well, could you provide a minimum reproducible example?

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

No branches or pull requests

2 participants