|
39 | 39 | authors: (), |
40 | 40 | keywords: (), |
41 | 41 | date: none, |
42 | | - abstract-title: none, |
43 | 42 | abstract: none, |
44 | | - thanks: none, |
45 | 43 | cols: 1, |
46 | 44 | margin: (x: 1.25in, y: 1.25in), |
47 | 45 | paper: "us-letter", |
48 | 46 | lang: "en", |
49 | 47 | region: "US", |
50 | 48 | font: (), |
51 | 49 | fontsize: 11pt, |
52 | | - mathfont: none, |
53 | | - codefont: none, |
54 | | - linestretch: 1, |
55 | 50 | sectionnumbering: none, |
56 | | - linkcolor: none, |
57 | | - citecolor: none, |
58 | | - filecolor: none, |
59 | 51 | pagenumbering: "1", |
60 | 52 | doc, |
61 | 53 | ) = { |
62 | 54 | set document( |
63 | 55 | title: title, |
64 | | - author: authors.map(author => content-to-string(author.name)).join(", ", last: " & "), |
| 56 | + author: authors.map(author => content-to-string(author.name)), |
65 | 57 | keywords: keywords, |
66 | 58 | ) |
67 | 59 | set page( |
68 | 60 | paper: paper, |
69 | 61 | margin: margin, |
70 | 62 | numbering: pagenumbering, |
71 | | - ) |
72 | | - |
73 | | - set par( |
74 | | - justify: true, |
75 | | - leading: linestretch * 0.65em |
76 | | - ) |
| 63 | + columns: cols, |
| 64 | + ) |
| 65 | + set par(justify: true) |
77 | 66 | set text(lang: lang, |
78 | 67 | region: region, |
79 | 68 | font: font, |
80 | 69 | size: fontsize) |
81 | | - |
82 | | - show math.equation: set text(font: mathfont) if mathfont != none |
83 | | - show raw: set text(font: codefont) if codefont != none |
84 | | - |
85 | 70 | set heading(numbering: sectionnumbering) |
86 | 71 |
|
87 | | - show link: set text(fill: rgb(content-to-string(linkcolor))) if linkcolor != none |
88 | | - show ref: set text(fill: rgb(content-to-string(citecolor))) if citecolor != none |
89 | | - show link: this => { |
90 | | - if filecolor != none and type(this.dest) == label { |
91 | | - text(this, fill: rgb(content-to-string(filecolor))) |
92 | | - } |
| 72 | + place(top, float: true, scope: "parent", clearance: 4mm)[ |
| 73 | + #if title != none { |
| 74 | + align(center)[#block(inset: 2em)[ |
| 75 | + #text(weight: "bold", size: 1.5em)[#title] |
| 76 | + #(if subtitle != none { |
| 77 | + parbreak() |
| 78 | + text(weight: "bold", size: 1.25em)[#subtitle] |
| 79 | + }) |
| 80 | + ]] |
93 | 81 | } |
94 | 82 |
|
95 | | - block(below: 4mm)[ |
96 | | - #if title != none { |
97 | | - align(center)[#block(inset: 2em)[ |
98 | | - #text(weight: "bold", size: 1.5em)[#title #if thanks != none { |
99 | | - footnote(thanks, numbering: "*") |
100 | | - counter(footnote).update(n => n - 1) |
101 | | - }] |
102 | | - #( |
103 | | - if subtitle != none { |
104 | | - parbreak() |
105 | | - text(weight: "bold", size: 1.25em)[#subtitle] |
106 | | - } |
107 | | - ) |
108 | | - ]] |
109 | | - } |
110 | | - |
111 | | - #if authors != none and authors != [] { |
112 | | - let count = authors.len() |
113 | | - let ncols = calc.min(count, 3) |
114 | | - grid( |
115 | | - columns: (1fr,) * ncols, |
116 | | - row-gutter: 1.5em, |
117 | | - ..authors.map(author => align(center)[ |
118 | | - #author.name \ |
119 | | - #author.affiliation \ |
120 | | - #author.email |
121 | | - ]) |
| 83 | + #if authors != none and authors != [] { |
| 84 | + let count = authors.len() |
| 85 | + let ncols = calc.min(count, 3) |
| 86 | + grid( |
| 87 | + columns: (1fr,) * ncols, |
| 88 | + row-gutter: 1.5em, |
| 89 | + ..authors.map(author => |
| 90 | + align(center)[ |
| 91 | + #author.name \ |
| 92 | + #author.affiliation \ |
| 93 | + #author.email |
| 94 | + ] |
122 | 95 | ) |
123 | | - } |
| 96 | + ) |
| 97 | + } |
124 | 98 |
|
125 | | - #if date != none { |
126 | | - align(center)[#block(inset: 1em)[ |
127 | | - #date |
128 | | - ]] |
129 | | - } |
| 99 | + #if date != none { |
| 100 | + align(center)[#block(inset: 1em)[ |
| 101 | + #date |
| 102 | + ]] |
| 103 | + } |
130 | 104 |
|
131 | | - #if abstract != none { |
132 | | - block(inset: 2em)[ |
133 | | - #text(weight: "semibold")[#abstract-title] #h(1em) #abstract |
134 | | - ] |
135 | | - } |
| 105 | + #if abstract != none { |
| 106 | + block(inset: 2em)[ |
| 107 | + #text(weight: "semibold")[Abstract] #h(1em) #abstract |
| 108 | + ] |
| 109 | + } |
136 | 110 | ] |
137 | 111 |
|
138 | 112 | doc |
|
148 | 122 | email: "" ), |
149 | 123 | ), |
150 | 124 | date: [July 17, 2006], |
151 | | - abstract-title: [Abstract], |
152 | 125 | pagenumbering: "1", |
153 | 126 | cols: 1, |
154 | 127 | doc, |
|
0 commit comments