You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The package uses topsep for the margin before and after the listing. I wish to be able to set the bot margin differently from the top margin. Maybe have a key called botsep that
If not set, still use topsep value for the bot margin
If set, override the topsep value
I understand that we can workaround this by using the after key, but I am having a problem using after with vspace. Here is a minimal example to reproduce the issue
The last c in the example will introduce extra unwanted space between the line and after.
If we just make the line one character shorter the issue is gone.
In this example, I can get around this by adding an empty line or \par before the \vspace.
For the package seems that after=\par\vspace*{0ex} will result in a compile error. I asked on https://tex.stackexchange.com/ and found that I can use \endgraf instead of \par to make it work. But I still think a built-in botsep will make life a lot easier, especially for those who are not experts in latex.
The text was updated successfully, but these errors were encountered:
The package uses
topsep
for the margin before and after the listing. I wish to be able to set the bot margin differently from the top margin. Maybe have a key calledbotsep
thattopsep
value for the bot margintopsep
valueI understand that we can workaround this by using the
after
key, but I am having a problem usingafter
withvspace
. Here is a minimal example to reproduce the issueThe last
c
in the example will introduce extra unwanted space between the line andafter
.If we just make the line one character shorter the issue is gone.
In this example, I can get around this by adding an empty line or
\par
before the\vspace
.For the package seems that
after=\par\vspace*{0ex}
will result in a compile error. I asked on https://tex.stackexchange.com/ and found that I can use\endgraf
instead of\par
to make it work. But I still think a built-inbotsep
will make life a lot easier, especially for those who are not experts in latex.The text was updated successfully, but these errors were encountered: