From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/60221 Path: news.gmane.org!not-for-mail From: "Bowen Alan C." Newsgroups: gmane.comp.tex.context Subject: meta post query (MK2) re underlining Date: Fri, 16 Jul 2010 11:00:20 -0400 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: multipart/mixed; boundary="===============1558397716==" X-Trace: dough.gmane.org 1279292459 22182 80.91.229.12 (16 Jul 2010 15:00:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 16 Jul 2010 15:00:59 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 16 17:00:58 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OZmPK-0002lD-5Q for gctc-ntg-context-518@m.gmane.org; Fri, 16 Jul 2010 17:00:58 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C1D4BC9AAF; Fri, 16 Jul 2010 17:00:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id atleIZgzP1US; Fri, 16 Jul 2010 17:00:54 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0166AC9B8D; Fri, 16 Jul 2010 17:00:54 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E9495C9B8D for ; Fri, 16 Jul 2010 17:00:52 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id CHJWjSFbNAFw for ; Fri, 16 Jul 2010 17:00:41 +0200 (CEST) Original-Received: from vms173003pub.verizon.net (vms173003pub.verizon.net [206.46.173.3]) by balder.ntg.nl (Postfix) with ESMTP id CCCA1C9AAF for ; Fri, 16 Jul 2010 17:00:40 +0200 (CEST) Original-Received: from w144173.wireless.ias.edu ([unknown] [192.16.204.74]) by vms173003.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L5N00LGGOCL8W00@vms173003.mailsrvcs.net> for ntg-context@ntg.nl; Fri, 16 Jul 2010 10:00:22 -0500 (CDT) X-Mailer: Apple Mail (2.1081) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:60221 Archived-At: --===============1558397716== Content-type: multipart/alternative; boundary=Apple-Mail-1-337510373 --Apple-Mail-1-337510373 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii I have been using \definetextbackground[underline] = [location=3Dtext,alternative=3D1,background=3D,frame=3Doff] for underlining in my documents and=20 \startuseMPgraphic{mpos:par:columnset} \iftracepositions show_multi_pars \else draw_multi_pars \fi ; path p ; p :=3D boundingbox currentpicture ; currentpicture :=3D currentpicture shifted (0,-StrutDepth/2) ; setbounds currentpicture to p ; \stopuseMPgraphic to control the depth of the underlining. Unfortunately, this underlining is still sometimes too far beneath the = word underlined. I had thought the problem is the -StrutDepth/2. But = even if I change it to an absolute value, the underlines to not appear = at the same distance even when the word. Try this test file: \definetextbackground[underline] = [location=3Dtext,alternative=3D1,background=3D,frame=3Doff] \startuseMPgraphic{mpos:par:columnset}=20 \iftracepositions show_multi_pars \else draw_multi_pars \fi ; path p ; p :=3D boundingbox currentpicture ; currentpicture :=3D currentpicture shifted (0,-.50) ; setbounds currentpicture to p ; \stopuseMPgraphic \starttext Donec \startunderline{gravida}\stopunderline{} posuere arcu.=20 Donec \startunderline{gravida}\stopunderline{} posuere arcu.=20 Donec \startunderline{gravida}\stopunderline{} posuere arcu.=20 Donec \startunderline{gravida}\stopunderline{} posuere arcu. Donec \startunderline{gravida}\stopunderline{} posuere arcu. Donec \startunderline{gravida}\stopunderline{} posuere arcu. Donec \startunderline{gravida}\stopunderline{} posuere arcu. Donec \startunderline{gravida}\stopunderline{} posuere arcu. Donec \startunderline{gravida}\stopunderline{} posuere arcu. Donec \startunderline{gravida}\stopunderline{} posuere arcu. \stoptext What I need is underlining that occurs at a fixed/constant distance = below the words underlined (allowing for descenders, of course, when = they are present). Any suggestions? Alan= --Apple-Mail-1-337510373 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii I = have been using

\definetextbackground[underline]   =  [location=3Dtext,alternative=3D1,background=3D,frame=3Doff]

for underlining in my documents = and 

\startuseMPgraphic{mpos:par:columnset}
   = \iftracepositions show_multi_pars \else draw_multi_pars \fi = ;
   path p ; p :=3D boundingbox = currentpicture ;
  currentpicture :=3D currentpicture = shifted (0,-StrutDepth/2) ;
   setbounds = currentpicture to p ;
\stopuseMPgraphic

to control the depth of the = underlining.

Unfortunately, this underlining is = still sometimes too far beneath the word underlined. I had thought the = problem is the -StrutDepth/2. But even if I change it to an = absolute value, the underlines to not appear at the same distance even = when the word.

Try this test = file:

\definetextbackground[underline]   =  [location=3Dtext,alternative=3D1,background=3D,frame=3Doff]

\startuseMPgraphic{mpos:par:columnset} 
   = \iftracepositions show_multi_pars \else draw_multi_pars \fi = ;
   path p ; p :=3D boundingbox = currentpicture ;
  currentpicture :=3D currentpicture = shifted (0,-.50) ;
   setbounds currentpicture to p = ;
\stopuseMPgraphic

\sta= rttext

Donec = \startunderline{gravida}\stopunderline{} posuere = arcu. 
Donec \startunderline{gravida}\stopunderline{} = posuere arcu. 
Donec = \startunderline{gravida}\stopunderline{} posuere = arcu. 
Donec \startunderline{gravida}\stopunderline{} = posuere arcu.
Donec \startunderline{gravida}\stopunderline{} = posuere arcu.
Donec \startunderline{gravida}\stopunderline{} = posuere arcu.
Donec \startunderline{gravida}\stopunderline{} = posuere arcu.
Donec \startunderline{gravida}\stopunderline{} = posuere arcu.
Donec \startunderline{gravida}\stopunderline{} = posuere arcu.
Donec \startunderline{gravida}\stopunderline{} = posuere = arcu.

\stoptext

Wh= at I need is underlining that occurs at a fixed/constant distance below = the words underlined (allowing for descenders, of course, when they are = present).

Any = suggestions?

Alan
= --Apple-Mail-1-337510373-- --===============1558397716== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1558397716==--