* [NTG-context] Framed Blockquote?
@ 2025-09-16 5:31 Matthias Weber
2025-09-16 7:07 ` [NTG-context] " Henning Hraban Ramm
2025-09-16 16:48 ` Wolfgang Schuster
0 siblings, 2 replies; 7+ messages in thread
From: Matthias Weber @ 2025-09-16 5:31 UTC (permalink / raw)
To: mailing list for ConTeXt users
Dear All,
I am trying to set up block quotes within a frame as below.
How can I make the frame fit the block quote?
The parameter location=… doesn’t seem to have any effect, regardless of what I put there.
Thanks!
Matthias
\setupcolors[state=start]
\setupcolor[rgb]
\definecolor[quotecolor][r=.95,g=.99,b=.99]
\definecolor[quotetxt][r=.2,g=.2,b=.1]
\defineframedtext [quotebackground]
[backgroundcolor=quotecolor,
location=paragraph,
background=color,
corner=round,
width=broad,
frame=on,
framecolor=black,
color=quotetxt]
\setupdelimitedtext[blockquote][style=\slx,
leftmargin=.5\textwidth,
rightmargin=no,
before={\startquotebackground},
after={\stopquotebackground\blank[2cm]}]
\starttext
\startsubject[title={Introduction}]
\startblockquote
\quotation{Need must find,} said the sea-thing child.
\\
\quotation{Find what?} said the crab.
\\
\quotation{Whatever there is,} said the sea-thing child.
\\
\SmallCapped{Russel Hoban}, {\em The Sea-Thing Child}
\par
\stopblockquote
\input{tufte}
\stopsubject
\stoptext
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread* [NTG-context] Re: Framed Blockquote? 2025-09-16 5:31 [NTG-context] Framed Blockquote? Matthias Weber @ 2025-09-16 7:07 ` Henning Hraban Ramm 2025-09-16 11:23 ` Matthias Weber 2025-09-16 16:48 ` Wolfgang Schuster 1 sibling, 1 reply; 7+ messages in thread From: Henning Hraban Ramm @ 2025-09-16 7:07 UTC (permalink / raw) To: ntg-context Am 16.09.25 um 07:31 schrieb Matthias Weber: > Dear All, > > I am trying to set up block quotes within a frame as below. > How can I make the frame fit the block quote? > The parameter location=… doesn’t seem to have any effect, regardless of what I put there. Try offset=overlay, that eliminates the space between frame and text. Hraban ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* [NTG-context] Re: Framed Blockquote? 2025-09-16 7:07 ` [NTG-context] " Henning Hraban Ramm @ 2025-09-16 11:23 ` Matthias Weber [not found] ` <64e4d6b1-8e21-420b-8b75-afd638aace22@fiee.net> 0 siblings, 1 reply; 7+ messages in thread From: Matthias Weber @ 2025-09-16 11:23 UTC (permalink / raw) To: mailing list for ConTeXt users Thanks, Hraban, Unfortunately, offset=overlay Eliminates the space on all sides *except* on the left, so it doesn’t quite help yet… Matthias > On Sep 16, 2025, at 3:07 AM, Henning Hraban Ramm <texml@fiee.net> wrote: > > Am 16.09.25 um 07:31 schrieb Matthias Weber: >> Dear All, >> I am trying to set up block quotes within a frame as below. >> How can I make the frame fit the block quote? >> The parameter location=… doesn’t seem to have any effect, regardless of what I put there. > > Try offset=overlay, that eliminates the space between frame and text. > > Hraban > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to the Wiki! > > maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > ___________________________________________________________________________________ ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <64e4d6b1-8e21-420b-8b75-afd638aace22@fiee.net>]
[parent not found: <803C5509-4B10-4DD4-A2CD-352B8CFF350A@gmail.com>]
* [NTG-context] Re: Framed Blockquote? [not found] ` <803C5509-4B10-4DD4-A2CD-352B8CFF350A@gmail.com> @ 2025-09-16 16:47 ` Henning Hraban Ramm 2025-09-16 17:23 ` Wolfgang Schuster 0 siblings, 1 reply; 7+ messages in thread From: Henning Hraban Ramm @ 2025-09-16 16:47 UTC (permalink / raw) To: mailing list for ConTeXt users Sorry, I answered privately by accident. I don’t think you need delimitedtext at all. Did you try your framedtext within \startalignment[flushright]? Or \hbox to \textwidth{\hfill\framedtext … }? Hraban Am 16.09.25 um 16:20 schrieb Matthias Weber: > Thanks, Hraban, > > The frame now has the right size. However, I wanted the whole blockquote on the right side of the page, which is why I set the left margin so big. > How do I “shift” the quote to the right? I have played with \indentation without success. > > Matthias > >> On Sep 16, 2025, at 9:24 AM, Henning Hraban Ramm <texml@fiee.net> wrote: >> >> Am 16.09.25 um 13:23 schrieb Matthias Weber: >>> Unfortunately, >>> offset=overlay >>> Eliminates the space on all sides *except* on the left, so it doesn’t quite help yet >> >> You set a left margin explicitely. >> >> \defineframedtext [quotebackground] >> [backgroundcolor=quotecolor, >> background=color, >> corner=round, >> width=fit, >> frame=on, >> framecolor=black, >> offset=overlay, >> color=quotetxt] >> >> \setupdelimitedtext[blockquote][style=\slx, >> leftmargin=0pt, >> rightmargin=0pt, >> before={\startquotebackground}, >> after={\stopquotebackground\blank[2cm]}] >> >> Hraban > ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* [NTG-context] Re: Framed Blockquote? 2025-09-16 16:47 ` Henning Hraban Ramm @ 2025-09-16 17:23 ` Wolfgang Schuster 0 siblings, 0 replies; 7+ messages in thread From: Wolfgang Schuster @ 2025-09-16 17:23 UTC (permalink / raw) To: ntg-context Am 16.09.2025 um 18:47 schrieb Henning Hraban Ramm: > Sorry, I answered privately by accident. > > I don’t think you need delimitedtext at all. > Did you try your framedtext within \startalignment[flushright]? > Or \hbox to \textwidth{\hfill\framedtext … }? No need for low level tricks: %%%% begin example \showframe[text][text] \starttext \startframedtext[location=left] On the left side! \stopframedtext \startframedtext[location=middle] In the middle! \stopframedtext \startframedtext[location=right] On the right side! \stopframedtext \stoptext %%%% end example Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* [NTG-context] Re: Framed Blockquote? 2025-09-16 5:31 [NTG-context] Framed Blockquote? Matthias Weber 2025-09-16 7:07 ` [NTG-context] " Henning Hraban Ramm @ 2025-09-16 16:48 ` Wolfgang Schuster 2025-09-16 17:08 ` Matthias Weber 1 sibling, 1 reply; 7+ messages in thread From: Wolfgang Schuster @ 2025-09-16 16:48 UTC (permalink / raw) To: ntg-context Am 16.09.2025 um 07:31 schrieb Matthias Weber: > Dear All, > > I am trying to set up block quotes within a frame as below. > How can I make the frame fit the block quote? > The parameter location=… doesn’t seem to have any effect, regardless of what I put there. > > Thanks! > > Matthias > > > > \setupcolors[state=start] > \setupcolor[rgb] > > \definecolor[quotecolor][r=.95,g=.99,b=.99] > \definecolor[quotetxt][r=.2,g=.2,b=.1] > \defineframedtext [quotebackground] > [backgroundcolor=quotecolor, > location=paragraph, > background=color, > corner=round, > width=broad, > frame=on, > framecolor=black, > color=quotetxt] > > \setupdelimitedtext[blockquote][style=\slx, > leftmargin=.5\textwidth, > rightmargin=no, > before={\startquotebackground}, > after={\stopquotebackground\blank[2cm]}] > > > \starttext > \startsubject[title={Introduction}] > > \startblockquote > > \quotation{Need must find,} said the sea-thing child. > \\ > \quotation{Find what?} said the crab. > \\ > \quotation{Whatever there is,} said the sea-thing child. > \\ > \SmallCapped{Russel Hoban}, {\em The Sea-Thing Child} > \par > \stopblockquote > > > \input{tufte} > \stopsubject > \stoptext Like this? %%%% begin example \definecolor [quotecolor] [r=.95,g=.99,b=.99] \definecolor [quotetxt] [r=.2,g=.2,b=.1] \defineframedtext [EpigraphFrame] [width=fit, corner=round, location=right, background=color, backgroundcolor=quotecolor, foregroundcolor=quotetxt, after={\blank[2*line]}] \definelines [Epigraph] [before=\startEpigraphFrame, after=\stopEpigraphFrame] \starttext \startsubject[title={Introduction}] \startEpigraph \quotation{Need must find,} said the sea-thing child. \quotation{Find what?} said the crab. \quotation{Whatever there is,} said the sea-thing child. \SmallCapped{Russel Hoban}, {\em The Sea-Thing Child} \stopEpigraph \input{tufte} \stopsubject \stoptext %%%% end example Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
* [NTG-context] Re: Framed Blockquote? 2025-09-16 16:48 ` Wolfgang Schuster @ 2025-09-16 17:08 ` Matthias Weber 0 siblings, 0 replies; 7+ messages in thread From: Matthias Weber @ 2025-09-16 17:08 UTC (permalink / raw) To: mailing list for ConTeXt users Perfect! Thanks Wolfgang (and Hraban). Matthias > On Sep 16, 2025, at 12:48 PM, Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> wrote: > > Am 16.09.2025 um 07:31 schrieb Matthias Weber: >> Dear All, >> I am trying to set up block quotes within a frame as below. >> How can I make the frame fit the block quote? >> The parameter location=… doesn’t seem to have any effect, regardless of what I put there. >> Thanks! >> Matthias >> \setupcolors[state=start] >> \setupcolor[rgb] >> \definecolor[quotecolor][r=.95,g=.99,b=.99] >> \definecolor[quotetxt][r=.2,g=.2,b=.1] >> \defineframedtext [quotebackground] >> [backgroundcolor=quotecolor, >> location=paragraph, >> background=color, >> corner=round, >> width=broad, >> frame=on, >> framecolor=black, >> color=quotetxt] >> \setupdelimitedtext[blockquote][style=\slx, >> leftmargin=.5\textwidth, >> rightmargin=no, >> before={\startquotebackground}, >> after={\stopquotebackground\blank[2cm]}] >> \starttext >> \startsubject[title={Introduction}] >> \startblockquote >> \quotation{Need must find,} said the sea-thing child. >> \\ >> \quotation{Find what?} said the crab. >> \\ >> \quotation{Whatever there is,} said the sea-thing child. >> \\ >> \SmallCapped{Russel Hoban}, {\em The Sea-Thing Child} >> \par >> \stopblockquote >> \input{tufte} >> \stopsubject >> \stoptext > > Like this? > > %%%% begin example > \definecolor [quotecolor] [r=.95,g=.99,b=.99] > \definecolor [quotetxt] [r=.2,g=.2,b=.1] > > \defineframedtext > [EpigraphFrame] > [width=fit, > corner=round, > location=right, > background=color, > backgroundcolor=quotecolor, > foregroundcolor=quotetxt, > after={\blank[2*line]}] > > \definelines > [Epigraph] > [before=\startEpigraphFrame, > after=\stopEpigraphFrame] > > \starttext > > \startsubject[title={Introduction}] > > \startEpigraph > \quotation{Need must find,} said the sea-thing child. > \quotation{Find what?} said the crab. > \quotation{Whatever there is,} said the sea-thing child. > \SmallCapped{Russel Hoban}, {\em The Sea-Thing Child} > \stopEpigraph > > \input{tufte} > > \stopsubject > > \stoptext > %%%% end example > > Wolfgang > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to the Wiki! > > maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > ___________________________________________________________________________________ ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-09-16 17:37 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-16 5:31 [NTG-context] Framed Blockquote? Matthias Weber
2025-09-16 7:07 ` [NTG-context] " Henning Hraban Ramm
2025-09-16 11:23 ` Matthias Weber
[not found] ` <64e4d6b1-8e21-420b-8b75-afd638aace22@fiee.net>
[not found] ` <803C5509-4B10-4DD4-A2CD-352B8CFF350A@gmail.com>
2025-09-16 16:47 ` Henning Hraban Ramm
2025-09-16 17:23 ` Wolfgang Schuster
2025-09-16 16:48 ` Wolfgang Schuster
2025-09-16 17:08 ` Matthias Weber
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).