additional space with sidebar and narrower
![](https://secure.gravatar.com/avatar/e5aa6984b53b8925e405ebbdbc051ad9.jpg?s=120&d=mm&r=g)
Ahoi, I’m trying to mark examples in a book with indent (\startnarrower) and a rule in the margin (\startsidebar). Each of those works on its own as it should, but combined there’s an additional empty line before and after introduced that I can’t get rid of. Any hints? \starttext \input tufte \startsidebar \startnarrower \input knuth \stopnarrower \stopsidebar \input tufte \stoptext Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD
![](https://secure.gravatar.com/avatar/5faea8b4fa0adb143383811dc94f0d22.jpg?s=120&d=mm&r=g)
Hi, If the issue is the size of the sidebar, I think if you add something like \setupsidebar[topoffset=-5mm,bottomoffset=-5mm] you can get rid of the spurious length of the sidebar. Indeed here 5mm should be replaced with what looks better with your setting of interlinespace. Best regards: OK
On 26 Mar 2019, at 11:16, Henning Hraban Ramm
wrote: Ahoi, I’m trying to mark examples in a book with indent (\startnarrower) and a rule in the margin (\startsidebar). Each of those works on its own as it should, but combined there’s an additional empty line before and after introduced that I can’t get rid of. Any hints?
\starttext
\input tufte
\startsidebar \startnarrower \input knuth \stopnarrower \stopsidebar
\input tufte
\stoptext
Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/e5aa6984b53b8925e405ebbdbc051ad9.jpg?s=120&d=mm&r=g)
Thank you, I found that myself (could have written).
But the problem is that there’s space introduced if I use both environments, but not if I use only one. And I didn’t find how I can avoid that.
Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD
Am 2019-03-26 um 15:22 schrieb Otared Kavian
Hi,
If the issue is the size of the sidebar, I think if you add something like
\setupsidebar[topoffset=-5mm,bottomoffset=-5mm]
you can get rid of the spurious length of the sidebar. Indeed here 5mm should be replaced with what looks better with your setting of interlinespace.
Best regards: OK
On 26 Mar 2019, at 11:16, Henning Hraban Ramm
wrote: Ahoi, I’m trying to mark examples in a book with indent (\startnarrower) and a rule in the margin (\startsidebar). Each of those works on its own as it should, but combined there’s an additional empty line before and after introduced that I can’t get rid of. Any hints?
\starttext
\input tufte
\startsidebar \startnarrower \input knuth \stopnarrower \stopsidebar
\input tufte
\stoptext
![](https://secure.gravatar.com/avatar/74d41c3215dcdd377343cdc47311757c.jpg?s=120&d=mm&r=g)
Henning Hraban Ramm schrieb am 26.03.19 um 16:04:
Thank you, I found that myself (could have written).
But the problem is that there’s space introduced if I use both environments, but not if I use only one. And I didn’t find how I can avoid that. Change the order of both environment and put sidebar in the narrower block.
The reason for the extra lien is that \startsidebar begins a new paragraph but \startnarrower end the lest paragraph which results in a single empty line. Wolfgang
![](https://secure.gravatar.com/avatar/e5aa6984b53b8925e405ebbdbc051ad9.jpg?s=120&d=mm&r=g)
Am 2019-03-26 um 17:22 schrieb Wolfgang Schuster
Henning Hraban Ramm schrieb am 26.03.19 um 16:04:
Thank you, I found that myself (could have written).
But the problem is that there’s space introduced if I use both environments, but not if I use only one. And I didn’t find how I can avoid that. Change the order of both environment and put sidebar in the narrower block.
The reason for the extra line is that \startsidebar begins a new paragraph but \startnarrower end the lest paragraph which results in a single empty line.
Thank you, that works in my MWE, but not in my real life book. (I was sure I tested that approach already...) I’ll investigate further. Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD
![](https://secure.gravatar.com/avatar/e5aa6984b53b8925e405ebbdbc051ad9.jpg?s=120&d=mm&r=g)
Am 2019-03-27 um 00:06 schrieb Henning Hraban Ramm
Am 2019-03-26 um 17:22 schrieb Wolfgang Schuster
: Henning Hraban Ramm schrieb am 26.03.19 um 16:04:
Thank you, I found that myself (could have written).
But the problem is that there’s space introduced if I use both environments, but not if I use only one. And I didn’t find how I can avoid that. Change the order of both environment and put sidebar in the narrower block.
The reason for the extra line is that \startsidebar begins a new paragraph but \startnarrower end the lest paragraph which results in a single empty line.
Thank you, that works in my MWE, but not in my real life book. (I was sure I tested that approach already...) I’ll investigate further.
I finally found out what’s the problem: \starttext \input tufte \startnarrower \startsidebar \startparagraph \input knuth \stopparagraph \stopsidebar \stopnarrower \input tufte \stoptext As soon as I use \start/stopparagraph within narrower and sidebar, there’s additional space introduced. How can I avoid that? Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD
![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
On 4/7/2019 8:44 PM, Henning Hraban Ramm wrote:
Am 2019-03-27 um 00:06 schrieb Henning Hraban Ramm
: Am 2019-03-26 um 17:22 schrieb Wolfgang Schuster
: Henning Hraban Ramm schrieb am 26.03.19 um 16:04:
Thank you, I found that myself (could have written).
But the problem is that there’s space introduced if I use both environments, but not if I use only one. And I didn’t find how I can avoid that. Change the order of both environment and put sidebar in the narrower block.
The reason for the extra line is that \startsidebar begins a new paragraph but \startnarrower end the lest paragraph which results in a single empty line.
Thank you, that works in my MWE, but not in my real life book. (I was sure I tested that approach already...) I’ll investigate further.
I finally found out what’s the problem:
\starttext
\input tufte
\startnarrower \startsidebar \startparagraph \input knuth \stopparagraph \stopsidebar \stopnarrower
\input tufte
\stoptext
As soon as I use \start/stopparagraph within narrower and sidebar, there’s additional space introduced. How can I avoid that? swap 'm
\startnarrower \startparagraph \startsidebar \input knuth \stopsidebar \stopparagraph \stopnarrower ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/e5aa6984b53b8925e405ebbdbc051ad9.jpg?s=120&d=mm&r=g)
Am 2019-04-07 um 21:32 schrieb Hans Hagen
On 4/7/2019 8:44 PM, Henning Hraban Ramm wrote:
Am 2019-03-27 um 00:06 schrieb Henning Hraban Ramm
: Am 2019-03-26 um 17:22 schrieb Wolfgang Schuster
: Henning Hraban Ramm schrieb am 26.03.19 um 16:04:
Thank you, I found that myself (could have written).
But the problem is that there’s space introduced if I use both environments, but not if I use only one. And I didn’t find how I can avoid that. Change the order of both environment and put sidebar in the narrower block.
The reason for the extra line is that \startsidebar begins a new paragraph but \startnarrower end the lest paragraph which results in a single empty line.
Thank you, that works in my MWE, but not in my real life book. (I was sure I tested that approach already...) I’ll investigate further. I finally found out what’s the problem: \starttext \input tufte \startnarrower \startsidebar \startparagraph \input knuth \stopparagraph \stopsidebar \stopnarrower \input tufte \stoptext As soon as I use \start/stopparagraph within narrower and sidebar, there’s additional space introduced. How can I avoid that? swap 'm
\startnarrower \startparagraph \startsidebar \input knuth \stopsidebar \stopparagraph \stopnarrower
Thank you, but I need the sidebar over several paragraphs. (And I wrapped narrower and sidebar in its own startstop.) Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD
participants (4)
-
Hans Hagen
-
Henning Hraban Ramm
-
Otared Kavian
-
Wolfgang Schuster