Skip to content

Commit 2d46f20

Browse files
committed
Fix #10
1 parent e4c748f commit 2d46f20

File tree

12 files changed

+537
-97
lines changed

12 files changed

+537
-97
lines changed

example/example.typ

Lines changed: 58 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -190,54 +190,77 @@ This is a theorem consisting of just one line.
190190
== Vocabulary
191191
#index("Vocabulary")
192192

193-
#figure(
194-
image("placeholder.jpg", width: 60%),
195-
caption: [Figure caption],
196-
)
197-
193+
#chapter("Presenting Information and Results with a Long Chapter Title", image: image("./orange3.jpg"))
194+
== Table
195+
#index("Table")
196+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent porttitor arcu luctus, imperdiet
197+
urna iaculis, mattis eros. Pellentesque iaculis odio vel nisl ullamcorper, nec faucibus ipsum molestie.
198+
Sed dictum nisl non aliquet porttitor. Etiam vulputate arcu dignissim, finibus sem et, viverra nisl.
199+
Aenean luctus congue massa, ut laoreet metus ornare in. Nunc fermentum nisi imperdiet lectus
200+
tincidunt vestibulum at ac elit. Nulla mattis nisl eu malesuada suscipit.
198201

199202
#figure(
200203
table(
201-
columns: (1fr, auto, auto),
204+
columns: (auto, auto, auto),
202205
inset: 10pt,
203206
align: horizon,
204-
[], [*Area*], [*Parameters*],
205-
$pi h (D^2 - d^2) / 4$,
206-
[
207-
$h$: height \
208-
$D$: outer radius \
209-
$d$: inner radius
210-
],
211-
$sqrt(2) / 12 a^3$,
212-
[$a$: edge length]
207+
[*Treatments*], [*Response 1*], [*Response 2*],
208+
[Treatment 1],
209+
[0.0003262],
210+
[0.562],
211+
[Treatment 2],
212+
[0.0015681],
213+
[0.910],
214+
[Treatment 3],
215+
[0.0009271],
216+
[0.296],
213217
),
214-
caption: [Table caption],
215-
)
218+
caption: [Table caption.],
219+
) <table>
220+
221+
Referencing @table in-text using its label.
222+
223+
== Figure
224+
#index("Figure")
225+
226+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent porttitor arcu luctus, imperdiet
227+
urna iaculis, mattis eros. Pellentesque iaculis odio vel nisl ullamcorper, nec faucibus ipsum molestie.
228+
Sed dictum nisl non aliquet porttitor. Etiam vulputate arcu dignissim, finibus sem et, viverra nisl.
229+
Aenean luctus congue massa, ut laoreet metus ornare in. Nunc fermentum nisi imperdiet lectus
230+
tincidunt vestibulum at ac elit. Nulla mattis nisl eu malesuada suscipit.
216231

217232
#figure(
233+
image("creodocs_logo.svg", width: 50%),
234+
caption: [Figure caption.],
235+
) <figure>
236+
237+
Referencing @figure in-text using its label.
238+
239+
#figure(
240+
placement: top,
218241
table(
219-
columns: (1fr, auto, auto),
242+
columns: (auto, auto, auto),
220243
inset: 10pt,
221244
align: horizon,
222-
[], [*Area*], [*Parameters*],
223-
$pi h (D^2 - d^2) / 4$,
224-
[
225-
$h$: height \
226-
$D$: outer radius \
227-
$d$: inner radius
228-
],
229-
$sqrt(2) / 12 a^3$,
230-
[$a$: edge length]
245+
[*Treatments*], [*Response 1*], [*Response 2*],
246+
[Treatment 1],
247+
[0.0003262],
248+
[0.562],
249+
[Treatment 2],
250+
[0.0015681],
251+
[0.910],
252+
[Treatment 3],
253+
[0.0009271],
254+
[0.296],
231255
),
232-
caption: [Figure table],
233-
)
234-
256+
caption: [Floating table.],
257+
) <table1>
235258

236-
#chapter("Presenting Information and Results with a Long Chapter Title", image: image("./orange3.jpg"))
237-
== Table
238-
#index("Table")
239-
== Figure
240-
#index("Figure")
259+
#figure(
260+
placement: bottom,
261+
image("creodocs_logo.svg", width: 100%),
262+
caption: [Floating figure.],
263+
) <figure1>
241264

242265
#my-bibliography( bibliography("sample.bib"))
243266

tests/sample-book/creodocs_logo.svg

Lines changed: 386 additions & 0 deletions
Loading

tests/sample-book/ref05.png

10.9 KB
Loading

tests/sample-book/ref07.png

1.58 KB
Loading

tests/sample-book/ref12.png

-718 Bytes
Loading

tests/sample-book/ref13.png

215 KB
Loading

tests/sample-book/ref19.png

-1.98 KB
Loading

tests/sample-book/ref20.png

-153 KB
Loading

tests/sample-book/ref21.png

369 KB
Loading

tests/sample-book/ref22.png

128 KB
Loading

0 commit comments

Comments
 (0)