-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
end-skip and related keys in block code are not functional #738
Comments
I know nothing of xtemplate but it looks like |
The block begin code does three things I'm not sure about. They are comments below. (Again, I don't know what I'm talking about.) \skip_set:Nn \l__block_topsepadd_skip { \topsep } % should \topsep be \l__block_botsep_skip instead?
\mode_if_vertical:TF
{
\skip_add:Nn \l__block_topsepadd_skip { \partopsep } % should \partopsep be \l__block_parbotsep_skip instead?
\__kernel_displayblock_beginpar_vmode:
}
{
\__block_skip_remove_last: \__block_skip_remove_last:
\__kernel_displayblock_beginpar_hmode:w \par
}
\legacy_if:nTF { @inlabel }
{
\legacy_if_set_true:n { @noparitem }
\legacy_if_set_true:n { @noparlist }
}
{
\legacy_if:nT { @newlist } { \@noitemerr }
\legacy_if_set_false:n { @noparlist }
\skip_set_eq:NN \l__block_effective_top_skip \l__block_topsepadd_skip % why this?
} If the first two changes are made but not the third, then Ulrike's example has 50pt space above and below. If the third commented line is commented out, then the output looks correct, but I'm sure there's a reason for that line. |
LaTeX2e lists which have been the starting point for coding that template, do not offer any customisation for the skip at the end. I started at some point to intoroduce that (hence the keys) but then realized that setting the defaults right so that everything works well as before and also gives customization possibilities needs more coding then I had time to do back then, so I left it unfinished (I think itsays so somewhere). It gets a little tricky if you have nested lists etc. |
Also, is it intentional that there's no error or warning when an unknown key is used? The names are easy to mix up.
does not error. |
Extracted from #733 . With the block code It is currently not possible to set the
end-skip
through a keyNote once this is resolved the latex-lab-firstaid code for amsthm should be adapted too.
The text was updated successfully, but these errors were encountered: