Skip to content

Commit

Permalink
typst align still broken
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Oct 25, 2024
1 parent ddecc51 commit d89aede
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions inst/templates/typst.typ
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,19 @@ block[ // start block
#table( // tinytable table start
stroke: none,
align: (x, y) => {
let a = left
if style-array.len() == 0 {
left
} else {
let a = left
for style in style-array {
let m = style.pairs.find(k => k.at(0) == x and k.at(1) == y)
if m != none and ("align" in style) {
let a = style.align
} else {
let a = left
}
}
a
let a = right
}
if style-array.len() > 0 {
// for style in style-array {
// let m = style.pairs.find(k => k.at(0) == x and k.at(1) == y)
// if m != none and ("align" in style) {
// let a = style.align
// }
// }
}
a
},
fill: (x, y) => {
for style in style-array {
Expand Down

0 comments on commit d89aede

Please sign in to comment.