From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/25660 Path: news.gmane.org!not-for-mail From: Adrian Drury Newsgroups: gmane.comp.tex.context Subject: Re: Dropped caps, \startlines\stoplines, and indentation question Date: Sat, 28 Jan 2006 17:50:50 -0800 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1518769397==" X-Trace: sea.gmane.org 1138499466 23078 80.91.229.2 (29 Jan 2006 01:51:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 29 Jan 2006 01:51:06 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 29 02:51:04 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1F31iV-0004AL-Tu for gctc-ntg-context-518@m.gmane.org; Sun, 29 Jan 2006 02:51:00 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6540E12847; Sun, 29 Jan 2006 02:50:59 +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 20477-03; Sun, 29 Jan 2006 02:50:56 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DB1F2127E4; Sun, 29 Jan 2006 02:50:56 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 639A0127E4 for ; Sun, 29 Jan 2006 02:50:54 +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 20483-02 for ; Sun, 29 Jan 2006 02:50:52 +0100 (CET) Original-Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.194]) by ronja.ntg.nl (Postfix) with SMTP id 8AEBF12793 for ; Sun, 29 Jan 2006 02:50:52 +0100 (CET) Original-Received: by zproxy.gmail.com with SMTP id 16so858368nzp for ; Sat, 28 Jan 2006 17:50:51 -0800 (PST) Original-Received: by 10.65.253.16 with SMTP id f16mr1258837qbs; Sat, 28 Jan 2006 17:50:50 -0800 (PST) Original-Received: by 10.64.178.18 with HTTP; Sat, 28 Jan 2006 17:50:50 -0800 (PST) Original-To: ntg-context@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:25660 Archived-At: --===============1518769397== Content-Type: multipart/alternative; boundary="----=_Part_8360_32630671.1138499450914" ------=_Part_8360_32630671.1138499450914 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Radhelorn wrote: > > Adrian Drury wrote: > > Hello, > > > > I'm having trouble using dropped caps within \startlines\stoplines. > > I'm trying to typeset some poetry and I'm using > > \setuplines[space=3Dyes]. I'd like to use dropped caps and have the > > indented lines be additionally indented by any space at the beginning > > of the lines. > > > > See the following example - the first part shows roughly the result I > > want (but with manual formatting/spacing), the second part shows the > > result of \DroppedCaps inside \startlines\stoplines, and the third > > part uses the lettrine module. The lettrine module comes close, but > > Nindent doesn't seem to affect the indented lines within > > \startlines\stoplines. > > > > \usemodule[lettrine] > > \def\MyDroppedCaps% > > { \DroppedCaps > > {} {Serif} {2\baselineskip} {2pt} {1\baselineskip} {2} > > } > > \setuplines[space=3Dyes] > > > > \starttext > > \MyDroppedCaps S{\sc umer} is icumen in,\crlf > > \hbox to .6em{}Lhude sing cuccu!\crlf > > Groweth sed, and bloweth med,\crlf > > \hbox to .6em{}And springth the wude nu---\crlf > > \hbox to 3.3em{}Sing cuccu! > > > > \startlines > > \MyDroppedCaps S{\sc umer} is icumen in, > > Lhude sing cuccu! > > Groweth sed, and bloweth med, > > And springth the wude nu--- > > Sing cuccu! > > \stoplines > > > > \startlines > > \lettrine{S}{umer} is icumen in, > > Lhude sing cuccu! > > Groweth sed, and bloweth med, > > And springth the wude nu--- > > Sing cuccu! > > \stoplines > > \stoptext > > > > Any suggestions for how to do this? I'm a beginning ConTeXt user, so > > if there's a better/different way to do this, I'd be happy to hear it! > > > > Also, I read the list in digest form. For the benefit of people using > > threaded mail readers, is there a better way to reply to individual > > messages than replying to the digest message and editing the Subject > > line appropriately? > > > > Thanks very much, > > Adrian Drury > > _______________________________________________ > > ntg-context mailing list > > ntg-context@ntg.nl > > http://www.ntg.nl/mailman/listinfo/ntg-context > > > > > > Try > > \startlines > \vbox{\lettrine{S}{umer} is icumen in,\crlf Lhude sing cuccu!} > Groweth sed, and bloweth med, > And springth the wude nu--- > Sing cuccu! > \stoplines > > -- > Radhelorn < radhelorn@mail.ru> > Thank you very much for your suggestion - it does most of what I want to do= . I have a follow-up question if anybody would like to provide more help! Because lines in \startlines\stoplines with \setuplines[space=3Dyes] can be indented by space characters, I want to set Nindent for the dropped cap to (N * ), so lines can be indented by the exact sam= e amount they would be with spaces in \startlines\stoplines. Is there a way to calculate the width of some number of characters (or a string of characters) to use as a dimension parameter? For example, a macro that returns the width in points of 5 space characters in the current font? I figured hardcoding the width of a space as a percentage of an em might work, but would probably not be consistent across fonts. Is that true, or i= s it really that simple? I'd also be happy with a way to preserve spaces in the text inside the vbox (and ignore any Nindent dimension calculation), because then I could just add the appropriate number of spaces for indentation after the \crlf, like this: \vbox{\lettrine{S}{umer} is icumen in,\crlf <2 spaces>Lhude sing cuccu!}, as I do in \startlines\stoplines. Thanks very much, Adrian Drury ------=_Part_8360_32630671.1138499450914 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Radhelorn wrote:

Adrian Drury wrote:
> Hello,
>
> I'm having trouble using dropped caps within \startlines\s= toplines.
> I'm trying to typeset some poetry and I'm using
> \= setuplines[space=3Dyes]. I'd like to use dropped caps and have the
> = indented lines be additionally indented by any space at the beginning
> of the lines.
>
> See the following example - the firs= t part shows roughly the result I
> want (but with manual formatting/= spacing), the second part shows the
> result of \DroppedCaps inside \= startlines\stoplines, and the third
> part uses the lettrine module. The lettrine module comes close, bu= t
> Nindent doesn't seem to affect the indented lines within
> = \startlines\stoplines.
>
> \usemodule[lettrine]
> \def\My= DroppedCaps%
> {     \DroppedCaps
>   &n= bsp;     {} {Serif} {2\baselineskip} {2pt} {1\baselines= kip} {2}
> }
> \setuplines[space=3Dyes]
>
> \startt= ext
> \MyDroppedCaps S{\sc umer} is icumen in,\crlf
> \hbox to .6em{}Lhude sing cuccu!\crlf
> Groweth sed, and bloweth= med,\crlf
> \hbox to .6em{}And springth the wude nu---\crlf
> = \hbox to 3.3em{}Sing cuccu!
>
> \startlines
> \MyDroppedC= aps S{\sc umer} is icumen in,
>   Lhude sing cuccu!
> Groweth sed, and bloweth med= ,
>   And springth the wude nu---
>   =         Sing cuccu!
> \stoplines>
> \startlines
> \lettrine{S}{umer} is icumen in,
>   Lhude sing cuccu!
> Groweth sed, and bloweth med= ,
>   And springth the wude nu---
>   =         Sing cuccu!
> \stoplines> \stoptext
>
> Any suggestions for how to do this? I'm a = beginning ConTeXt user, so
> if there's a better/different way to do this, I'd be happy to hear= it!
>
> Also, I read the list in digest form. For the benefit = of people using
> threaded mail readers, is there a better way to rep= ly to individual
> messages than replying to the digest message and editing the Subje= ct
> line appropriately?
>
> Thanks very much,
> Ad= rian Drury
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
&g= t; http://www.ntg.nl/mailman/listinfo/ntg-context
>
>

T= ry

\startlines
\vbox{\lettrine{S}{umer} is icumen in,\crlf Lhude sing cuccu!}
 = ; Groweth sed, and bloweth med,
    And springt= h the wude nu---
         &= nbsp;  Sing cuccu!
\stoplines

--
Radhelorn < radhelorn@mail.ru>

Thank you very much for= your suggestion - it does most of what I want to do. I have a follow-up qu= estion if anybody would like to provide more help!

Because lines in= \startlines\stoplines with \setuplines[space=3Dyes] can be indented by spa= ce characters, I want to set Nindent for the dropped cap to (N * <width = of space character>), so lines can be indented by the exact same amount = they would be with spaces in \startlines\stoplines.

Is there a way to calculate the width of some number of characters = (or a string of characters) to use as a dimension parameter? For example, a= macro that returns the width in points of 5 space characters in the curren= t font? I figured hardcoding the width of a space as a percentage of an em = might work, but would probably not be consistent across fonts. Is that true= , or is it really that simple?

I'd also be happy with a way to preserve spaces in the text inside = the vbox (and ignore any Nindent dimension calculation), because then I could just add the appropriate number of spaces for indentation after the \crlf, like this: \vbox{\lettrine{S}{umer} is icumen in,\crlf <2 spaces>Lhude sing cuccu!}, as I do in \startlines\stoplines.
Thanks very much,
Adrian Drury

------=_Part_8360_32630671.1138499450914-- --===============1518769397== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --===============1518769397==--