forked from mlemmer/DigitalHumanities
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTables.scrbl
41 lines (34 loc) · 1.75 KB
/
Tables.scrbl
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
#lang scribble/base
@(require scribble/html-properties
scribble/latex-properties
scribble/core
scribble/sigplan
scribble/manual
scriblib/autobib)
@title{Tables}
@literal|{@tabular}| allows you to create tables from a list of lists.
@codeblock|{@tabular[#:sep @hspace[1]
(list (list @bold{Animal} @bold{Sound})
(list "cat" "meow")
(list "dog" "bark")
(list "duck" "quack")
(list "rhinoceros" "squee"))]}|
@tabular[#:sep @hspace[1]
(list (list @bold{Animal} @bold{Sound})
(list "cat" "meow")
(list "dog" "bark")
(list "duck" "quack")
(list "rhinoceros" "squee"))]
In Scribble, @literal|{#:}| indicates that there is a keyword-value argument. These are variables that will modify how your final product renders. The argument @literal|{#:sep @hspace[]}| in this table is a variable that controls the amount of space between columns, so increasing that number increases the space between columns. You can also include other features/formatting into your table
@codeblock|{@tabular[#:sep @hspace[5]
(list (list @bold{Animal} @bold{Sound})
(list "cat" "meow")
(list @italic{dog} "bark")
(list "duck" "quack")
(list "rhinoceros" @hyperlink["https://youtu.be/LNCC6ZYI3SI"]{squee}))]}|
@tabular[#:sep @hspace[5]
(list (list @bold{Animal} @bold{Sound})
(list "cat" "meow")
(list @italic{dog} "bark")
(list "duck" "quack")
(list "rhinoceros" @hyperlink["https://youtu.be/LNCC6ZYI3SI"]{squee}))]