Skip to content

Commit

Permalink
feat(packages): Add balancing option to makecolums command (#1950)
Browse files Browse the repository at this point in the history
  • Loading branch information
jodros authored Jan 31, 2024
1 parent 9b56fc6 commit b5ce8e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/frametricks/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ end
local makecolumns = function (options)
local cFrame = SILE.typesetter.frame
local cols = options.columns
local balanced = SU.boolean(options.balanced, true)
local gutterWidth = options.gutter or "3%pw"
local right = cFrame:right()
local origId = cFrame.id
Expand All @@ -58,8 +59,8 @@ local makecolumns = function (options)
bottom = cFrame:bottom(),
id = origId .. "_col"..i
})
newFrame.balanced = true
cFrame.balanced = true
newFrame.balanced = balanced
cFrame.balanced = balanced
gutter:constrain("right", "left("..newFrame.id..")")
newFrame:constrain("left", "right("..gutter.id..")")
-- In the future we may way to allow for unequal columns
Expand Down

0 comments on commit b5ce8e6

Please sign in to comment.