Skip to content

Commit

Permalink
add test for styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Marmare314 committed Sep 28, 2023
1 parent e9edb34 commit 8edf50c
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
Binary file added tests/references/styles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions tests/styles.typ
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#import "../src/export-lib.typ": theorem-kind, theorem-rules, style-simple, style-reversed, numbering-concat, numbering-proof

#let a = theorem-kind("a")
#let b = theorem-kind("b", style: style-simple.with(qed: true))
#let c = theorem-kind("c", style: style-reversed)
#let d = theorem-kind("d", style: style-reversed.with(qed: true))
#let e = theorem-kind("e", numbering: numbering-concat.with(seperator: ""))
#let f = theorem-kind("f", numbering: numbering-concat.with(seperator: text(red, "-")))
#set page(width: 200pt, height: auto, margin: 10pt)
#show: theorem-rules

#a(lorem(5))
#b(lorem(5))
#c(lorem(5))
#d(lorem(5))
#e(lorem(5))
#f(lorem(5))

#set heading(numbering: "1.1")
= Heading

#a(lorem(5))
#e(lorem(5))
#f(lorem(5))

#set heading(numbering: "1.")
= Heading

#a(lorem(5))
#e(lorem(5))
#f(lorem(5))

0 comments on commit 8edf50c

Please sign in to comment.