ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: \underbar problem
Date: Fri, 06 Sep 2013 23:24:40 +0200	[thread overview]
Message-ID: <522A4818.1050504@wxs.nl> (raw)
In-Reply-To: <CAFMOkGUc7YThFmEHxXfLEHf8Wc=v64_Kddoh5UULX_0dSqEyag@mail.gmail.com>

On 9/6/2013 10:51 PM, Alan Bowen wrote:
> Sorry, Hans—I had thought that it would be very complicated to produce
> one, but actually it was easy:
>
> \usemodule[simplefonts]
>
> \setmainfont[Antykwa-Poltawskiego][protrusion=pure,
> expansion=quality,
> mode=node,
> script=latn,
> smallcaps]
>
> \setupalign[hanging,hz]
>
> \starttext
>
> \underbar{\dorecurse{5}{\input knuth}}
>
> \stoptext
>
> Note from the wiki (http://wiki.contextgarden.net/Command/overstrike):
>
>     If you are using microtypography with |\setupalign[hz,hanging]|,
>     then with some fonts the rule may end up off-target, above the
>     characters instead of through them. (The problem was experienced
>     with Linux Libertine and mkiv, and not with Latin Modern.) The
>     workarounds are:
>
>       o Put the overstriked text in a |\inframed[frame=off]{}|.
>
>
> As with \overstrike, with \underbar “off target” can mean “nowhere”.
>
> \underbar and Latin Modern witrh microtypography works but not \underbar
> and Antykwa-Poltawskiego—unless one turns off microtypography.
>
>
> So, if I must use \inframed—can I get it to allow for proper
> linebreaking/paragraphing?

hm, it relates to hz, which is weird as that is only messign with 
characters ... (i must admit that i never use that)

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2013-09-06 21:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-05 15:43 Alan Bowen
2013-09-06 16:52 ` Hans Hagen
2013-09-06 20:51   ` Alan Bowen
2013-09-06 21:24     ` Hans Hagen [this message]
2013-09-07 11:52     ` Hans Hagen

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=522A4818.1050504@wxs.nl \
    --to=pragma@wxs.nl \
    --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).