* \underbar problem
@ 2013-09-05 15:43 Alan Bowen
2013-09-06 16:52 ` Hans Hagen
0 siblings, 1 reply; 5+ messages in thread
From: Alan Bowen @ 2013-09-05 15:43 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 435 bytes --]
In a lengthy document, \underbar occasionally has no effect. From the wiki,
I have learned that this can be rectified using
\inframed[frame=off]{\underbar{….}}. The problem is that this only works
for short text: lengthy text, say a paragraph, gets printed as a single
line.
Is there a way (a key?) that will allow \underbar to work with \inframed or
perhaps another way of getting \underbar to work 100% of the time?
Alan
[-- Attachment #1.2: Type: text/html, Size: 559 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: \underbar problem
2013-09-05 15:43 \underbar problem Alan Bowen
@ 2013-09-06 16:52 ` Hans Hagen
2013-09-06 20:51 ` Alan Bowen
0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2013-09-06 16:52 UTC (permalink / raw)
To: ntg-context
On 9/5/2013 5:43 PM, Alan Bowen wrote:
> In a lengthy document, \underbar occasionally has no effect. From the
> wiki, I have learned that this can be rectified using
> \inframed[frame=off]{\underbar{….}}. The problem is that this only works
> for short text: lengthy text, say a paragraph, gets printed as a single
> line.
>
> Is there a way (a key?) that will allow \underbar to work with \inframed
> or perhaps another way of getting \underbar to work 100% of the time?
no example ?
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: \underbar problem
2013-09-06 16:52 ` Hans Hagen
@ 2013-09-06 20:51 ` Alan Bowen
2013-09-06 21:24 ` Hans Hagen
2013-09-07 11:52 ` Hans Hagen
0 siblings, 2 replies; 5+ messages in thread
From: Alan Bowen @ 2013-09-06 20:51 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2754 bytes --]
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:
- 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?
Alan
On Fri, Sep 6, 2013 at 12:52 PM, Hans Hagen <pragma@wxs.nl> wrote:
> On 9/5/2013 5:43 PM, Alan Bowen wrote:
>
>> In a lengthy document, \underbar occasionally has no effect. From the
>> wiki, I have learned that this can be rectified using
>> \inframed[frame=off]{\**underbar{….}}. The problem is that this only
>> works
>> for short text: lengthy text, say a paragraph, gets printed as a single
>> line.
>>
>> Is there a way (a key?) that will allow \underbar to work with \inframed
>> or perhaps another way of getting \underbar to work 100% of the time?
>>
>
> no example ?
>
> 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 <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/<http://foundry.supelec.fr/projects/contextrev/>
> wiki : http://contextgarden.net
> ______________________________**______________________________**
> _______________________
>
[-- Attachment #1.2: Type: text/html, Size: 5079 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: \underbar problem
2013-09-06 20:51 ` Alan Bowen
@ 2013-09-06 21:24 ` Hans Hagen
2013-09-07 11:52 ` Hans Hagen
1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2013-09-06 21:24 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: \underbar problem
2013-09-06 20:51 ` Alan Bowen
2013-09-06 21:24 ` Hans Hagen
@ 2013-09-07 11:52 ` Hans Hagen
1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2013-09-07 11:52 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
a kind of fix in the upcoming beta
-----------------------------------------------------------------
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-09-07 11:52 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-05 15:43 \underbar problem Alan Bowen
2013-09-06 16:52 ` Hans Hagen
2013-09-06 20:51 ` Alan Bowen
2013-09-06 21:24 ` Hans Hagen
2013-09-07 11:52 ` Hans Hagen
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).