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

Fix spacing error for 0.12 update #25

Open
NTUYi opened this issue Nov 3, 2024 · 0 comments
Open

Fix spacing error for 0.12 update #25

NTUYi opened this issue Nov 3, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@NTUYi
Copy link

NTUYi commented Nov 3, 2024

Given the latest update of V0.12, the par syntax has changed and therefore CVPR template need an update as below.

// ... existing code ...

#let cvpr2022(
  // ... existing parameters ...
) = {
  // ... existing setup ...

  set text(font: font-family, size: font-size.normal)
  // Update paragraph settings to use new spacing syntax
  set par(
    justify: true, 
    first-line-indent: 0.166666in, 
    leading: 0.532em,
    spacing: 0.54em  // Changed from show par: set block(spacing: 0.54em)
  )
  show raw: set text(font: font-family-mono, size: font-size.normal)

  // Remove old paragraph spacing rule since it's now handled in set par()
  // show par: set block(spacing: 0.54em)  // This line should be removed

  // ... rest of the code ...

  show quote.where(block: true): it => {
    set block(spacing: 14pt)
    set pad(left: 20pt, right: 20pt)
    set par(
      first-line-indent: 0em,
      spacing: 9.8pt  // Changed from show par: set block(spacing: 9.8pt)
    )
    it
  }

  // ... rest of the code ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants