Re: [NTG-context] quotes potruding out in the left margin
If you were to add a start-stopquotation block to Wolfgang's example, you'd see that the resulting paragraph has lost its narrowness. Is there a way to allow quotes to protrude into the left margin while preserving the narrowness of start-stopquotation blocks? My own solution is not to \setupquotation[method=font] but to define a delimited text environment whose method=font, and use it when a paragraph begins with a quotation. I have attached my own mwe. You can toggle the \setquotation command with --mode=font. Does anyone have a more elegant, or better yet, a correct solution? With kind regards, Michael On Sat, Jun 5, 2021 at 7:36 AM Sandra Snan wrote: > Thank you both for your help. Additionally, I needed to make sure that > \setupbodyfont comes after all this. But now I've finally got the > margin-potruding quotations of my dreams. > > writes: > > >> -Ursprüngliche Nachricht- > >> Von: ntg-context Im Auftrag von Wolfgang > >> Schuster > >> Gesendet: Freitag, 4. Juni 2021 10:08 > >> An: mailing list for ConTeXt users > >> Betreff: Re: [NTG-context] quotes potruding out in the left margin > >> > >> Sandra Snan schrieb am 04.06.2021 um 09:52: > >> > Oh, the example you just posted doesn't work on live.contextgarden, > >> > let alone on my installation. The quotation marks still don't potrude. > >> > >> I tested my example on the garden and got the expected output with the > >> quotation marks in the margin (only partially but this is normal with > the > >> quality setting). > >> > > > > I can confirm that this works. As Wolfgang notes protrusion is only > partial with the default settings, but you can tweak it with > \setupfontprotrusion (see below). > > \setupfontprotrusion [quality] [left=2] is probably what you want since > this puts the complete quotation mark into the margin. > > > > I don't know what the numbers mean. Maybe someone can add to this. > > > > Denis > > > > > > %\setupfontprotrusion [quality] [left=0] % no protrusion on the left > margin > > \setupfontprotrusion [quality] [left=1] % default > > %\setupfontprotrusion [quality] [left=1.5] % more protrustion > > %\setupfontprotrusion [quality] [left=2] % even more protrustion > > %\setupfontprotrusion [quality] [left=2.5] % too much protrusion > > > > \definefontfeature > > [default] > > [default] > > [protrusion=quality, > >expansion=quality] > > > > \setupquotation > > [method=font] > > > > \setupalign > > [hz,hanging] > > > > \showframe > > [text] > > [text] > > > > \starttext > > > > oh hi there > > > > “you are so” > > > > \quotation{you are so} > > > > here here > > > > \stoptext > > > > > ___ > > 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 > > > ___ > > ___ > 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 > > ___ > \showgrid \showframe[text][text] \setupwhitespace[medium] \setuplayout[grid=yes] \definefontfeature [default] [default] [protrusion=quality, expansion=quality] \setupalign[hz,hanging] % Definition inherits, followed by setting up \definedelimitedtext[parquote][quotation] \setupdelimitedtext[parquote][method=font] \def\parquotation#1{\startparquote{#1}\stopparquote} % Provide protrusion for quotations. \startmode[font] \setupquotation[method=font] % Toggle this line to see the effect. \stopmode \starttext \quotation{Love makes the world go round,}as an old proverb has it\ldots “Love makes the world go round,” as an old proverb has it\ldots \parquotation{Love makes the world go round,} as an old proverb has it\ldots \startquotation \input tufte \stopquotation \stoptext___ 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 ___
Re: [NTG-context] quotes potruding out in the left margin
Thank you both for your help. Additionally, I needed to make sure that \setupbodyfont comes after all this. But now I've finally got the margin-potruding quotations of my dreams. writes: >> -Ursprüngliche Nachricht- >> Von: ntg-context Im Auftrag von Wolfgang >> Schuster >> Gesendet: Freitag, 4. Juni 2021 10:08 >> An: mailing list for ConTeXt users >> Betreff: Re: [NTG-context] quotes potruding out in the left margin >> >> Sandra Snan schrieb am 04.06.2021 um 09:52: >> > Oh, the example you just posted doesn't work on live.contextgarden, >> > let alone on my installation. The quotation marks still don't potrude. >> >> I tested my example on the garden and got the expected output with the >> quotation marks in the margin (only partially but this is normal with the >> quality setting). >> > > I can confirm that this works. As Wolfgang notes protrusion is only partial > with the default settings, but you can tweak it with \setupfontprotrusion > (see below). > \setupfontprotrusion [quality] [left=2] is probably what you want since this > puts the complete quotation mark into the margin. > > I don't know what the numbers mean. Maybe someone can add to this. > > Denis > > > %\setupfontprotrusion [quality] [left=0] % no protrusion on the left margin > \setupfontprotrusion [quality] [left=1] % default > %\setupfontprotrusion [quality] [left=1.5] % more protrustion > %\setupfontprotrusion [quality] [left=2] % even more protrustion > %\setupfontprotrusion [quality] [left=2.5] % too much protrusion > > \definefontfeature > [default] > [default] > [protrusion=quality, >expansion=quality] > > \setupquotation > [method=font] > > \setupalign > [hz,hanging] > > \showframe > [text] > [text] > > \starttext > > oh hi there > > “you are so” > > \quotation{you are so} > > here here > > \stoptext > > ___ > 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 > ___ ___ 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 ___
Re: [NTG-context] quotes potruding out in the left margin
On 6/4/2021 11:20 AM, denis.ma...@ub.unibe.ch wrote: -Ursprüngliche Nachricht- Von: ntg-context Im Auftrag von Wolfgang Schuster Gesendet: Freitag, 4. Juni 2021 10:08 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] quotes potruding out in the left margin Sandra Snan schrieb am 04.06.2021 um 09:52: Oh, the example you just posted doesn't work on live.contextgarden, let alone on my installation. The quotation marks still don't potrude. I tested my example on the garden and got the expected output with the quotation marks in the margin (only partially but this is normal with the quality setting). I can confirm that this works. As Wolfgang notes protrusion is only partial with the default settings, but you can tweak it with \setupfontprotrusion (see below). \setupfontprotrusion [quality] [left=2] is probably what you want since this puts the complete quotation mark into the margin. I don't know what the numbers mean. Maybe someone can add to this. multiplication factors btw, in lmtx you can locally disable protrusion with: {\noprotrusion \quotation{you are so}} Denis %\setupfontprotrusion [quality] [left=0] % no protrusion on the left margin \setupfontprotrusion [quality] [left=1] % default %\setupfontprotrusion [quality] [left=1.5] % more protrustion %\setupfontprotrusion [quality] [left=2] % even more protrustion %\setupfontprotrusion [quality] [left=2.5] % too much protrusion \definefontfeature [default] [default] [protrusion=quality, expansion=quality] \setupquotation [method=font] \setupalign [hz,hanging] \showframe [text] [text] \starttext oh hi there “you are so” \quotation{you are so} here here \stoptext ___ 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 ___ -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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 ___
Re: [NTG-context] quotes potruding out in the left margin
> -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Wolfgang > Schuster > Gesendet: Freitag, 4. Juni 2021 10:08 > An: mailing list for ConTeXt users > Betreff: Re: [NTG-context] quotes potruding out in the left margin > > Sandra Snan schrieb am 04.06.2021 um 09:52: > > Oh, the example you just posted doesn't work on live.contextgarden, > > let alone on my installation. The quotation marks still don't potrude. > > I tested my example on the garden and got the expected output with the > quotation marks in the margin (only partially but this is normal with the > quality setting). > I can confirm that this works. As Wolfgang notes protrusion is only partial with the default settings, but you can tweak it with \setupfontprotrusion (see below). \setupfontprotrusion [quality] [left=2] is probably what you want since this puts the complete quotation mark into the margin. I don't know what the numbers mean. Maybe someone can add to this. Denis %\setupfontprotrusion [quality] [left=0] % no protrusion on the left margin \setupfontprotrusion [quality] [left=1] % default %\setupfontprotrusion [quality] [left=1.5] % more protrustion %\setupfontprotrusion [quality] [left=2] % even more protrustion %\setupfontprotrusion [quality] [left=2.5] % too much protrusion \definefontfeature [default] [default] [protrusion=quality, expansion=quality] \setupquotation [method=font] \setupalign [hz,hanging] \showframe [text] [text] \starttext oh hi there “you are so” \quotation{you are so} here here \stoptext ___ 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 ___
Re: [NTG-context] quotes potruding out in the left margin
Sandra Snan schrieb am 04.06.2021 um 09:52: Oh, the example you just posted doesn't work on live.contextgarden, let alone on my installation. The quotation marks still don't potrude. I tested my example on the garden and got the expected output with the quotation marks in the margin (only partially but this is normal with the quality setting). I attached the example to ensure nothing was added when I send it. Wolfgang \definefontfeature [default] [default] [protrusion=quality, expansion=quality] \setupquotation [method=font] \setupalign [hz,hanging] \showframe [text] [text] \starttext oh hi there “you are so” \quotation{you are so} here here \stoptext ___ 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 ___
Re: [NTG-context] quotes potruding out in the left margin
Oh, the example you just posted doesn't work on live.contextgarden, let alone on my installation. The quotation marks still don't potrude. Wolfgang Schuster writes: > Sandra Snan schrieb am 04.06.2021 um 08:44: >> Hi♥ >> >> How do I get the quotes to potrude out in the left margin? >> >> For example in the following text, I want the "y" in "you are so" to be >> aligned with the "oh" in "oh hi there" and the "here" in "here here". >> >> \definefontfeature >>[default] >>[default] >>[protrusion=quality,expansion=quality] >> >> \setupalign[hz,hanging] >> >> \starttext >> oh hi there >> >> "you are so" >> >> here here >> \stoptext >> >> Also in the real text I'll also be using >> \definefontfamily [praise][serif][junicode] >> but, the above min via behavior I couldn't get to work at live.contextgarden > > You need proper quotation mark (as shown in my example below) sand not > ". Another option is to use the \quotation command and enable the > protrusion option for (see \setupquotation). > > When you have a text with a lot of quotation marks but your system has > no easy way to input them you can check if your text editor has smart > quotes feature which replaces " with the proper quotes. > > \definefontfeature > [default] > [default] > [protrusion=quality,expansion=quality] > > \setupquotation > [method=font] > > \setupalign[hz,hanging] > > \starttext > > oh hi there > > “you are so” > > \quotation{you are so} > > here here > > \stoptext > > Wolfgang > > ___ > 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 > ___ ___ 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 ___
Re: [NTG-context] quotes potruding out in the left margin
Sandra Snan schrieb am 04.06.2021 um 08:44: Hi♥ How do I get the quotes to potrude out in the left margin? For example in the following text, I want the "y" in "you are so" to be aligned with the "oh" in "oh hi there" and the "here" in "here here". \definefontfeature [default] [default] [protrusion=quality,expansion=quality] \setupalign[hz,hanging] \starttext oh hi there "you are so" here here \stoptext Also in the real text I'll also be using \definefontfamily [praise][serif][junicode] but, the above min via behavior I couldn't get to work at live.contextgarden You need proper quotation mark (as shown in my example below) sand not ". Another option is to use the \quotation command and enable the protrusion option for (see \setupquotation). When you have a text with a lot of quotation marks but your system has no easy way to input them you can check if your text editor has smart quotes feature which replaces " with the proper quotes. \definefontfeature [default] [default] [protrusion=quality,expansion=quality] \setupquotation [method=font] \setupalign[hz,hanging] \starttext oh hi there “you are so” \quotation{you are so} here here \stoptext Wolfgang ___ 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 ___
[NTG-context] quotes potruding out in the left margin
Hi♥ How do I get the quotes to potrude out in the left margin? For example in the following text, I want the "y" in "you are so" to be aligned with the "oh" in "oh hi there" and the "here" in "here here". \definefontfeature [default] [default] [protrusion=quality,expansion=quality] \setupalign[hz,hanging] \starttext oh hi there "you are so" here here \stoptext Also in the real text I'll also be using \definefontfamily [praise][serif][junicode] but, the above min via behavior I couldn't get to work at live.contextgarden ___ 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 ___