-
My sile document produces 1286 pages of pdf. When I use |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
-
I guess I can just do |
Beta Was this translation helpful? Give feedback.
-
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} |
Beta Was this translation helpful? Give feedback.
-
Thanks, excellent explanation and teaching. |
Beta Was this translation helpful? Give feedback.
-
Are you using |
Beta Was this translation helpful? Give feedback.
-
At the moment I have this:
And then much more before:
The |
Beta Was this translation helpful? Give feedback.
-
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
|
Beta Was this translation helpful? Give feedback.
-
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... |
Beta Was this translation helpful? Give feedback.
-
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... |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Postscript: using WeasyPrint was easier. |
Beta Was this translation helpful? Give feedback.
The
bigskip
command 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
\bigskip
rather 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…