File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # import " template.typ" : *
2+
3+ // Take a look at the file `template.typ` in the file panel
4+ // to customize this template and discover how it works.
5+ # show : project . with (
6+ title : " My Awesome Project" ,
7+ authors : (
8+ " HackingGate" ,
9+ ),
10+ )
11+
12+ // We generated the example code below so you can see how
13+ // your document will look. Go ahead and replace it with
14+ // your own content!
15+
16+ = Introduction
17+ # lorem (60 )
18+
19+ == In this paper
20+ # lorem (20 )
21+
22+ === Contributions
23+ # lorem (40 )
24+
25+ = Related Work
26+ # lorem (500 )
Original file line number Diff line number Diff line change 1+ // The project function defines how your document looks.
2+ // It takes your content and some metadata and formats it.
3+ // Go ahead and customize it to your liking!
4+ # let project (title : "" , authors : (), body ) = {
5+ // Set the document's basic properties.
6+ set document (author : authors , title : title )
7+ set page (numbering : " 1" , number-align : center )
8+ set text (font : " Linux Libertine" , lang : " en" )
9+
10+ // Title row.
11+ align (center )[
12+ # block (text (weight : 700 , 1.75em , title ))
13+ ]
14+
15+ // Author information.
16+ pad (
17+ top : 0.5em ,
18+ bottom : 0.5em ,
19+ x : 2em ,
20+ grid (
21+ columns : (1fr ,) * calc . min (3 , authors . len ()),
22+ gutter : 1em ,
23+ .. authors . map (author => align (center , strong (author ))),
24+ ),
25+ )
26+
27+ // Main body.
28+ set par (justify : true )
29+
30+ body
31+ }
You can’t perform that action at this time.
0 commit comments