From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46999 Path: news.gmane.org!not-for-mail From: Alan Stone Newsgroups: gmane.comp.tex.context Subject: replacing words by underlines Date: Sat, 24 Jan 2009 19:00:26 +0100 Message-ID: <326847810901241000h3345d281k53824347606b63b9@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1972885599==" X-Trace: ger.gmane.org 1232820148 4303 80.91.229.12 (24 Jan 2009 18:02:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 Jan 2009 18:02:28 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 24 19:03:40 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LQmr5-0007rC-TB for gctc-ntg-context-518@m.gmane.org; Sat, 24 Jan 2009 19:03:39 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B77D61FE07; Sat, 24 Jan 2009 19:02:19 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32550-01; Sat, 24 Jan 2009 19:01:24 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CFD141FE0B; Sat, 24 Jan 2009 19:01:20 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 69A471FE0B for ; Sat, 24 Jan 2009 19:01:13 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 27645-02 for ; Sat, 24 Jan 2009 19:00:35 +0100 (CET) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by ronja.ntg.nl (Postfix) with ESMTP id AB9081FDEB for ; Sat, 24 Jan 2009 19:00:35 +0100 (CET) Original-Received: from mail-ew0-f13.google.com (mail-ew0-f13.google.com [209.85.219.13]) by filter1-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n0OI0YN5014261 for ; Sat, 24 Jan 2009 19:00:35 +0100 Original-Received: by ewy6 with SMTP id 6so5649078ewy.2 for ; Sat, 24 Jan 2009 10:00:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=tVz1MNITkvjPMaHPWHErJQLOMVltYQglCvKIbFJaTPE=; b=MXkgrmGypBEjlaQu8wCDGuFY5ZE0KJXPwrZpKHgGWnK5VXwUynUrXU/QfHMI9C6yb7 3qWBEkpciNxWvS8cFF44dxAaY2DnZsZEvPQUVtit3LuDIZQT25W9SBuU5thdGuQw2NUD 8sIXJkABoJNLKtuZd1zKyfDrZPQszBXeHcK+k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=QKJi01SCHzhQJVnY3lhM1uUn0Kz52rGHFJ0Xo1FGADGFYw7UCzf/HZolnHVnWp6NxM eyKUAoqTpZvLadOHuOvTILZNSr/JZZmlJt/RjxlN2CKhlYtJCIcvvmgV7kRBH52gKwzJ O9zjZJQGXGPpksZ5Xc/dAdTkCAoDz0MyAyD5Y= Original-Received: by 10.210.70.14 with SMTP id s14mr1667132eba.150.1232820027001; Sat, 24 Jan 2009 10:00:27 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.219.13; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 170030880 - ae898543af65 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:46999 Archived-At: --===============1972885599== Content-Type: multipart/alternative; boundary=0015174c3d10c80dfc04613e4730 --0015174c3d10c80dfc04613e4730 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, In the underneath example, how do you get each word replaced by an underline ? Or, if not possible, underlined word groups with correct underline breaks for multi-line phrases. \def\UnderlineA#1% {\underbars{#1}} \def\UnderlineB#1% {\underbars{\phantom{#1}}} %{\underbar{\phantom{#1}}} \definetextbackground[underline][% location=text, alternative=1, background=, frame=off] \def\UnderlineC{% \groupedcommand {\starttextbackground[underline]} {\stoptextbackground}} \starttext Thus, I came to \UnderlineA{the conclusion} that the designer of a new system \UnderlineA{must not only be the implementer and first} large--scale user; the designer should also write the first user manual. Thus, I came to \UnderlineB{the conclusion} that the designer of a new system \UnderlineB{must not only be the implementer and first} large--scale user; the designer should also write the first user manual. Thus, I came to \UnderlineC{the conclusion} that the designer of a new system \UnderlineC{must not only be the implementer and first} large--scale user; the designer should also write the first user manual. \stoptext Thanks, Alan --0015174c3d10c80dfc04613e4730 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

In the underneath example, how do you get each word replaced by = an underline ?

Or, if not possible, underlined word groups with corr= ect underline breaks for multi-line phrases.

\def\UnderlineA#1%
{\underbars{#1}}

\def\UnderlineB#1%
{\underbars{\phantom{#1}}}%{\underbar{\phantom{#1}}}

\definetextbackground[underline][%
&n= bsp;   location=3Dtext,
    alternative=3D1,    background=3D,
    frame=3Doff]

\def\UnderlineC{%
    \groupedcommand
  =       {\starttextbackground[underline]}
  =       {\stoptextbackground}}

\starttext

T= hus, I came to \UnderlineA{the conclusion} that the designer of a new syste= m \UnderlineA{must not only be the implementer and first} large--scale user= ; the designer should also write the first user manual.

Thus, I came to \UnderlineB{the conclusion} that the designer of a new = system \UnderlineB{must not only be the implementer and first} large--scale= user; the designer should also write the first user manual.

Thus, I= came to \UnderlineC{the conclusion} that the designer of a new system \Und= erlineC{must not only be the implementer and first} large--scale user; the = designer should also write the first user manual.

\stoptext


Thanks,
Alan
--0015174c3d10c80dfc04613e4730-- --===============1972885599== 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1972885599==--