Regression in spacing before lstlisting environment with version 2018/09/02 after paragraph break
up vote
1
down vote
favorite
Anyone else noticed a difference in the spacing before a lstlisting
environment since upgrading to version 1.7 2018/09/02
?
Here's a MWE with output with version 1.7 and version 1.6 for comparison.
I can get same output be removing the empty line before the lstlisting
environment, but I'd rather not go through old files and do that. And it seems like wrong behaviour anyway.
Is this a bug?
Can anyone suggest a workaround to return things to the old behaviour?
MWE
documentclass{article}
usepackage{listings}
begin{document}
Preceding paragraph.
begin{lstlisting}{}
documentclass{article}
begin{document}
end{document}
end{lstlisting}
Subsequent paragraph.
end{document}
Output with listings 1.7 2018/09/02
Output with listings 1.6 2015/06/04
spacing listings
add a comment |
up vote
1
down vote
favorite
Anyone else noticed a difference in the spacing before a lstlisting
environment since upgrading to version 1.7 2018/09/02
?
Here's a MWE with output with version 1.7 and version 1.6 for comparison.
I can get same output be removing the empty line before the lstlisting
environment, but I'd rather not go through old files and do that. And it seems like wrong behaviour anyway.
Is this a bug?
Can anyone suggest a workaround to return things to the old behaviour?
MWE
documentclass{article}
usepackage{listings}
begin{document}
Preceding paragraph.
begin{lstlisting}{}
documentclass{article}
begin{document}
end{document}
end{lstlisting}
Subsequent paragraph.
end{document}
Output with listings 1.7 2018/09/02
Output with listings 1.6 2015/06/04
spacing listings
1
There is a newleavevmode
in the definition. It looks rather odd there. Make a bug report to the author.
– Ulrike Fischer
19 hours ago
@UlrikeFischer, I just saw this while comparing the style files. I emailed the maintainer. I'm still interested in the easiest temporary workaround.
– David Purton
19 hours ago
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Anyone else noticed a difference in the spacing before a lstlisting
environment since upgrading to version 1.7 2018/09/02
?
Here's a MWE with output with version 1.7 and version 1.6 for comparison.
I can get same output be removing the empty line before the lstlisting
environment, but I'd rather not go through old files and do that. And it seems like wrong behaviour anyway.
Is this a bug?
Can anyone suggest a workaround to return things to the old behaviour?
MWE
documentclass{article}
usepackage{listings}
begin{document}
Preceding paragraph.
begin{lstlisting}{}
documentclass{article}
begin{document}
end{document}
end{lstlisting}
Subsequent paragraph.
end{document}
Output with listings 1.7 2018/09/02
Output with listings 1.6 2015/06/04
spacing listings
Anyone else noticed a difference in the spacing before a lstlisting
environment since upgrading to version 1.7 2018/09/02
?
Here's a MWE with output with version 1.7 and version 1.6 for comparison.
I can get same output be removing the empty line before the lstlisting
environment, but I'd rather not go through old files and do that. And it seems like wrong behaviour anyway.
Is this a bug?
Can anyone suggest a workaround to return things to the old behaviour?
MWE
documentclass{article}
usepackage{listings}
begin{document}
Preceding paragraph.
begin{lstlisting}{}
documentclass{article}
begin{document}
end{document}
end{lstlisting}
Subsequent paragraph.
end{document}
Output with listings 1.7 2018/09/02
Output with listings 1.6 2015/06/04
spacing listings
spacing listings
asked 19 hours ago
David Purton
8,3361834
8,3361834
1
There is a newleavevmode
in the definition. It looks rather odd there. Make a bug report to the author.
– Ulrike Fischer
19 hours ago
@UlrikeFischer, I just saw this while comparing the style files. I emailed the maintainer. I'm still interested in the easiest temporary workaround.
– David Purton
19 hours ago
add a comment |
1
There is a newleavevmode
in the definition. It looks rather odd there. Make a bug report to the author.
– Ulrike Fischer
19 hours ago
@UlrikeFischer, I just saw this while comparing the style files. I emailed the maintainer. I'm still interested in the easiest temporary workaround.
– David Purton
19 hours ago
1
1
There is a new
leavevmode
in the definition. It looks rather odd there. Make a bug report to the author.– Ulrike Fischer
19 hours ago
There is a new
leavevmode
in the definition. It looks rather odd there. Make a bug report to the author.– Ulrike Fischer
19 hours ago
@UlrikeFischer, I just saw this while comparing the style files. I emailed the maintainer. I'm still interested in the easiest temporary workaround.
– David Purton
19 hours ago
@UlrikeFischer, I just saw this while comparing the style files. I emailed the maintainer. I'm still interested in the easiest temporary workaround.
– David Purton
19 hours ago
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
For an unknown reason lstlistings adds a leavevmode in the code, you can try to disable it until the problem is resolved in the code:
documentclass{article}
usepackage{listings}
makeatletter
lst@AddToHook{PreSet}{letleavevmoderelax}
makeatother
begin{document}
Preceding paragraph.
begin{lstlisting}{}
xxx
end{lstlisting}
Subsequent paragraph.
end{document}
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
For an unknown reason lstlistings adds a leavevmode in the code, you can try to disable it until the problem is resolved in the code:
documentclass{article}
usepackage{listings}
makeatletter
lst@AddToHook{PreSet}{letleavevmoderelax}
makeatother
begin{document}
Preceding paragraph.
begin{lstlisting}{}
xxx
end{lstlisting}
Subsequent paragraph.
end{document}
add a comment |
up vote
1
down vote
accepted
For an unknown reason lstlistings adds a leavevmode in the code, you can try to disable it until the problem is resolved in the code:
documentclass{article}
usepackage{listings}
makeatletter
lst@AddToHook{PreSet}{letleavevmoderelax}
makeatother
begin{document}
Preceding paragraph.
begin{lstlisting}{}
xxx
end{lstlisting}
Subsequent paragraph.
end{document}
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
For an unknown reason lstlistings adds a leavevmode in the code, you can try to disable it until the problem is resolved in the code:
documentclass{article}
usepackage{listings}
makeatletter
lst@AddToHook{PreSet}{letleavevmoderelax}
makeatother
begin{document}
Preceding paragraph.
begin{lstlisting}{}
xxx
end{lstlisting}
Subsequent paragraph.
end{document}
For an unknown reason lstlistings adds a leavevmode in the code, you can try to disable it until the problem is resolved in the code:
documentclass{article}
usepackage{listings}
makeatletter
lst@AddToHook{PreSet}{letleavevmoderelax}
makeatother
begin{document}
Preceding paragraph.
begin{lstlisting}{}
xxx
end{lstlisting}
Subsequent paragraph.
end{document}
answered 19 hours ago
Ulrike Fischer
182k7288662
182k7288662
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461673%2fregression-in-spacing-before-lstlisting-environment-with-version-2018-09-02-afte%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
There is a new
leavevmode
in the definition. It looks rather odd there. Make a bug report to the author.– Ulrike Fischer
19 hours ago
@UlrikeFischer, I just saw this while comparing the style files. I emailed the maintainer. I'm still interested in the easiest temporary workaround.
– David Purton
19 hours ago