added: APA style table
This commit is contained in:
parent
f30c0fe950
commit
c3d65f93b2
|
@ -52,6 +52,19 @@
|
||||||
|
|
||||||
show figure: set block(breakable: true)
|
show figure: set block(breakable: true)
|
||||||
|
|
||||||
|
// APA style table
|
||||||
|
set table(
|
||||||
|
inset: 0.5em,
|
||||||
|
align: left,
|
||||||
|
stroke: (x, y) => (
|
||||||
|
left: none,
|
||||||
|
right: none,
|
||||||
|
top: if y == 0 { 1.5pt } else if y < 2 { 1pt } else { 0pt },
|
||||||
|
bottom: if y == 0 { 1pt } else { 1.5pt } ))
|
||||||
|
|
||||||
|
// make table header bold
|
||||||
|
show table.cell.where(y: 0): set text(weight: "bold")
|
||||||
|
|
||||||
set block(spacing: 2em)
|
set block(spacing: 2em)
|
||||||
set par(
|
set par(
|
||||||
justify: true,
|
justify: true,
|
||||||
|
|
|
@ -63,8 +63,11 @@ $
|
||||||
|
|
||||||
#figure(
|
#figure(
|
||||||
table(
|
table(
|
||||||
columns: 2,
|
columns: 3,
|
||||||
"Hello", "World"),
|
table.header[Date][Exercise Type][Calories Burned],
|
||||||
|
[2023-03-15], [Swimming], [400],
|
||||||
|
[2023-03-17], [Weightlifting], [250],
|
||||||
|
[2023-03-18], [Yoga], [200]),
|
||||||
caption: [ Some table ])
|
caption: [ Some table ])
|
||||||
|
|
||||||
#pagebreak()
|
#pagebreak()
|
||||||
|
|
Loading…
Reference in New Issue