Skip to content

Commit

Permalink
Add optional to render preprint version
Browse files Browse the repository at this point in the history
  • Loading branch information
daskol committed Feb 2, 2024
1 parent 3f9c6b0 commit f248ffc
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions icml/icml2024.typ
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@
Learning (ICML). Do not distribute.
]

#let arxiv-notice = []

#let public-notice = [
_Proceedings of the 41#super[st] International Conference on Machine
Learning_, Vienna, Austria. PMLR 235, 2024. Copyright 2024 by the author(s).
Expand Down Expand Up @@ -287,6 +289,10 @@

/**
* icml2024
*
* Args:
* accepted: Valid values are `none`, `false`, and `true`. Missing value
* (`none`) is designed to prepare arxiv publication. Default is `false`.
*/
#let icml2024(
title: [],
Expand All @@ -304,7 +310,7 @@
}

// Sanitize authors and affilations arguments.
if not accepted {
if accepted != none and not accepted {
authors = ((anonymous-author,), (anonymous-affl: anonymous-affl))
}
let (authors, affls) = authors
Expand All @@ -323,13 +329,16 @@
set text(size: font.small)
set par(leading: 0.5em, justify: true)
line(length: 0.8in, stroke: (thickness: 0.05em))
block(spacing: 0.45em, { // Footnote line.
block(spacing: 0.45em, width: 100%, { // Footnote line.
h(1.2em) // BUG: https://github.com/typst/typst/issues/311
if contrib-info != () {
contrib-info.join([ ])
parbreak()
}
if accepted {

if accepted == none {
arxiv-notice
} else if accepted {
public-notice
} else {
anonymous-notice
Expand Down

0 comments on commit f248ffc

Please sign in to comment.