ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	denis.maier@ub.unibe.ch
Subject: Re: quotes potruding out in the left margin
Date: Fri, 4 Jun 2021 14:23:17 +0200	[thread overview]
Message-ID: <f2202896-73d1-f157-0fa6-dcb87dbfccc1@xs4all.nl> (raw)
In-Reply-To: <94f19b2ea8ce478b8d6e7f7fbab2a17e@ub.unibe.ch>

On 6/4/2021 11:20 AM, denis.maier@ub.unibe.ch wrote:
>> -----Ursprüngliche Nachricht-----
>> Von: ntg-context <ntg-context-bounces@ntg.nl> Im Auftrag von Wolfgang
>> Schuster
>> Gesendet: Freitag, 4. Juni 2021 10:08
>> An: mailing list for ConTeXt users <ntg-context@ntg.nl>
>> 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
___________________________________________________________________________________

  reply	other threads:[~2021-06-04 12:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-04  6:44 Sandra Snan
2021-06-04  7:16 ` Wolfgang Schuster
2021-06-04  7:52   ` Sandra Snan
2021-06-04  8:08     ` Wolfgang Schuster
2021-06-04  9:20       ` denis.maier
2021-06-04 12:23         ` Hans Hagen [this message]
2021-06-05  5:36         ` Sandra Snan
2021-06-05 17:03           ` Michael Guravage

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f2202896-73d1-f157-0fa6-dcb87dbfccc1@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=denis.maier@ub.unibe.ch \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).