Repository navigation
|
My sile document produces 1286 pages of pdf. When I use |
Replies: 12 comments
|
The As such it would typically be used in the inline form It looks like you might be trying to change either the leading (space between lines) or paragraph skip (space between paragraphs). These values can be adjusted with and respectively. You should be able to set this inside a |
|
I guess I can just do |
|
It might be worth noting that the space applied by SILE.registerCommand("bigskip", function (options, content)
SILE.typesetter:leaveHmode()
SILE.typesetter:pushExplicitVglue({ height = SILE.length.parse("12pt plus 4pt minus 4pt" ) })
end)Note the allowance for the space added to be stretched or shrunk by 4pt. If you want to replicate this in your inter-paragraph spacing you can use that syntax: Also note how the \define[command=raggedloose]{\begin{raggedright}set[parameter=document.parskip, value=12pt plus 4pt minus 4pt]\process\end{raggedright}}You could then use this new environment in place of ragged right + that parspace setting: \begin{raggedloose}
this content will be ragged right
paragraphs will have ~12pt between them
\end{raggedloose} |
|
Thanks, excellent explanation and teaching. |
|
Are you using |
|
At the moment I have this: And then much more before: The |
|
Thanks for this report - this is something I'd like to get working! First problem: The reason you're getting a space at the beginning of the line is because of this: The carriage return is a whitespace; how to interpret end-of-line whitespace after a command is a perennial problem going back to issue #105, and I'm sorry about this. The workaround is to say: Second problem: To avoid breaks within verses, try redefining |
|
Thanks, that sounds like it could work. But I'm going to comment on #105 because I think the solution for that is really simple, and it would not require an empty comment... |
|
What I really need to solve the big problem (that the myriad of wkhtmltopdf based solutions can't seem to solve) is the page breaks at the desired places. If I'm going to use SILE I think I really need to understand the penalty system... |
|
Now if I run with the settings from the comment above but with \b being \break\novbreak I get no more "hanging indents". But somehow the text runs off the bottom of the pages, or way into the footer with the page number. The bigger problem is that I have no more verse breaks, every song is just 1 big verse... Ideally there should be a template that works for people that want to make a song book, that is not an article or a regular book... Not having that, I wanted to start with 'plain' as then there are fewer defaults to contend with. |
|
Just passing by, but... What are the expectations in order for this issue to be closed? Initial question (corresponding to the issue title) was answered it seems. Other questions as well, on avoiding breaks, etc. I am not sure the last discussion is a new question. |
|
Postscript: using WeasyPrint was easier. |
The
bigskipcommand was not meant to be used as an environment — in other words it shouldn't be used to wrap other content, it should be used between other content. It outputs vertical space into the document where it was used then ends (discarding any content passed to it).As such it would typically be used in the inline form
\bigskiprather than with\begin{...}\end{...}. Because the SILE syntax is interchangeable you can call it using the environment syntax, but you shouldn't put content inside it because it will just get ignored.It looks like you might be trying to change either the leading (space between lines) or paragraph skip (space between paragraphs). These values can be adjus…