๐Ÿ“ฆ yochem / apa-typst

๐Ÿ“„ main.typ ยท 107 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107#import "template.typ": apa7, showfootnotes, appendix

#set text(12pt)

#show: apa7.with(
  title: "Example of APA7 Document in Typst",
  authors: (
    (name: "Andrew K. Jones-Willoughby", orcid: "test", affiliations: (1, 2)),
    (name: "Andrew K. Jones-Willoughby", affiliations: (1,)),
    (name: "Andrew K. Jones-Willoughby", affiliations: (2,)),
  ),
  affiliations: (
    "School of Psychology, University of Sydney",
    "Center for Behavioral Neuroscience, American University"
  ),
  abstract: [
    #lorem(20)
  ],
  footnotepage: false
)

#lorem(40)

#pagebreak()

= Section (lvl 1)

== Sub Section (lvl 2)

#lorem(20)

=== Sub Section (lvl 3)
#lorem(20)

==== Sub Section (lvl 4)
#lorem(20)

===== Sub Section (lvl 5)
#lorem(20)

= Related Work

#lorem(100)#footnote[test]

#figure(
  image("./orcid-logo.svg", height: 10%),
  caption: "helloo"
)<fig-image>
_Note._ For figure notes, just use: `_Note._ Here is a note`.

= Methodology

#lorem(100)#footnote(lorem(20))

#figure(
  table(
    columns: (3cm, auto, auto),
    [Long text in tables is wrapped and indented by 0.15 inch.], [aa], [bb],
  ),
  caption: "This is an example table"
)<fig-table>
_Note._ These tables can also have notes.


In text reference @fig-table and @fig-image.

= Conclusion

#lorem(100)
In-text quotes #quote[are normal].
#quote[
  While quotes longer than 40 words are in indented paragraphs. Like this one.

  It can also have multiple paragraphs, which are also indented on their first
  line. So nice!
]

= Discussion

#lorem(100)

#showfootnotes

#show: appendix

= Test

== test

test

= Test

= Test

test

$
"test"
$

#figure(table(), caption: "")

$
"test"
$