Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
EricWay1024 committed Jul 30, 2024
1 parent 56cd18a commit ea8170d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions libs/template.typ
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#import "@preview/commute:0.2.0": node, arr, commutative-diagram

#let color_style = "./color.typ"
#let link_color = rgb(0, 0, 255)
#if color_style == "./bw.typ" {
link_color = rgb(0, 0, 0)
}


#let textwidth = 100%;
#let img(path, width: textwidth) = {
Expand Down Expand Up @@ -137,10 +142,8 @@
set par(justify: true)
set heading(numbering: "1.1.")
set enum(numbering: "(1)")
if color_style == "./color.typ" {
show ref: set text(rgb(0,0,255))
show link: set text(rgb(0,0,255))
}
show ref: set text(link_color)
show link: set text(link_color)
body
}

Expand Down

0 comments on commit ea8170d

Please sign in to comment.