Skip to content

Fixed Baseline Distance Paragraph Height #1458

Answered by Omikhleia
SanjayTml asked this question in Q&A
Discussion options

You must be logged in to vote

Your code is hard to guess with uncomplete script, undeclared variables, etc.

Here is a working version:

\begin{document}
\script[src=packages/linespacing]
\script{
SILE.settings.set("linespacing.method",'fixed')
SILE.settings.set("linespacing.fixed.baselinedistance", SILE.length('4.5em'))

local calcparheight = SILE.length()
SILE.process({ "I have been working on creating posters for different fonts using SILE and Lua. When I try to calculate the paragraph height after changing the linespacing method to fixed and providing a fixed baselinedistance value, I can not get the correct value." })
SILE.typesetter:leaveHmode(1)
local subsidiary = SILE.pagebuilder:collateVboxes(SILE.typesetter.st…

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
1 reply
@SanjayTml
Comment options

Comment options

You must be logged in to vote
8 replies
@alerque
Comment options

@Omikhleia
Comment options

@SanjayTml
Comment options

@Omikhleia
Comment options

@SanjayTml
Comment options

Answer selected by SanjayTml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants