ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* TreatFirstLine: loss of spaces
@ 2009-01-15 17:06 Bart C. Wise
  2009-01-15 17:44 ` Wolfgang Schuster
  2009-01-15 18:26 ` Hans Hagen
  0 siblings, 2 replies; 8+ messages in thread
From: Bart C. Wise @ 2009-01-15 17:06 UTC (permalink / raw)
  To: Context Mailing List


[-- Attachment #1.1: Type: text/plain, Size: 485 bytes --]

The code below changes the first line.  However, there are no spaces between 
words and therefore, the justification is also off.  You can even leave the first 
parameter empty and you get the same results.

Am I missing something?

\starttext
\TreatFirstLine {\sc} {} {} {}
The combined color and font effect is also possible,
although one must be careful in using macros that accumulate
grouping, but the commands used here are pretty save in that
respect.
\stoptext

Thanks,
Bart



[-- Attachment #1.2: Type: text/html, Size: 3187 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: TreatFirstLine: loss of spaces
  2009-01-15 17:06 TreatFirstLine: loss of spaces Bart C. Wise
@ 2009-01-15 17:44 ` Wolfgang Schuster
  2009-01-15 18:20   ` Bart C. Wise
  2009-01-15 18:26 ` Hans Hagen
  1 sibling, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2009-01-15 17:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 15.01.2009 um 18:06 schrieb Bart C. Wise:

> The code below changes the first line. However, there are no spaces  
> between words and therefore, the justification is also off. You can  
> even leave the first parameter empty and you get the same results.
> Am I missing something?
> \starttext
> \TreatFirstLine {\sc} {} {} {}
> The combined color and font effect is also possible,
> although one must be careful in using macros that accumulate
> grouping, but the commands used here are pretty save in that
> respect.
> \stoptext

http://archive.contextgarden.net/message/20060102.122124.6585f872.en.html

Wolfgang

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: TreatFirstLine: loss of spaces
  2009-01-15 17:44 ` Wolfgang Schuster
@ 2009-01-15 18:20   ` Bart C. Wise
  0 siblings, 0 replies; 8+ messages in thread
From: Bart C. Wise @ 2009-01-15 18:20 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 801 bytes --]

On Thursday 15 January 2009 10:44:07 am Wolfgang Schuster wrote:
> Am 15.01.2009 um 18:06 schrieb Bart C. Wise:
> > The code below changes the first line. However, there are no spaces
> > between words and therefore, the justification is also off. You can
> > even leave the first parameter empty and you get the same results.
> > Am I missing something?
> > \starttext
> > \TreatFirstLine {\sc} {} {} {}
> > The combined color and font effect is also possible,
> > although one must be careful in using macros that accumulate
> > grouping, but the commands used here are pretty save in that
> > respect.
> > \stoptext
>
> http://archive.contextgarden.net/message/20060102.122124.6585f872.en.html

That works, but it doesn't have the options that TreatFirstLine has.  Is 
TreatFirstLine broken?

Bart

[-- Attachment #1.2: Type: text/html, Size: 3927 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: TreatFirstLine: loss of spaces
  2009-01-15 17:06 TreatFirstLine: loss of spaces Bart C. Wise
  2009-01-15 17:44 ` Wolfgang Schuster
@ 2009-01-15 18:26 ` Hans Hagen
  2009-01-15 18:57   ` Bart C. Wise
  1 sibling, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2009-01-15 18:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 918 bytes --]

Bart C. Wise wrote:
> The code below changes the first line. However, there are no spaces 
> between words and therefore, the justification is also off. You can even 
> leave the first parameter empty and you get the same results.
> 
> Am I missing something?
> 
> \starttext
> 
> \TreatFirstLine {\sc} {} {} {}


\TreatFirstLine {\sc} {} {} { }
                              ^ space

attached is the output of a mkiv variant (i couldn't resist trying to do 
it otherwise; watch how this one nicely hyphenates)

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

[-- Attachment #2: oeps.pdf --]
[-- Type: application/pdf, Size: 10214 bytes --]

[-- Attachment #3: Type: text/plain, Size: 487 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: TreatFirstLine: loss of spaces
  2009-01-15 18:26 ` Hans Hagen
@ 2009-01-15 18:57   ` Bart C. Wise
  2009-01-15 19:05     ` Wolfgang Schuster
  2009-01-15 19:18     ` Hans Hagen
  0 siblings, 2 replies; 8+ messages in thread
From: Bart C. Wise @ 2009-01-15 18:57 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1141 bytes --]

On Thursday 15 January 2009 11:26:57 am Hans Hagen wrote:
> Bart C. Wise wrote:
> > The code below changes the first line. However, there are no spaces
> > between words and therefore, the justification is also off. You can even
> > leave the first parameter empty and you get the same results.
> >
> > Am I missing something?
> >
> > \starttext
> >
> > \TreatFirstLine {\sc} {} {} {}
>
> \TreatFirstLine {\sc} {} {} { }
>                               ^ space
>
> attached is the output of a mkiv variant (i couldn't resist trying to do
> it otherwise; watch how this one nicely hyphenates)
>

Hans,

Your output looks great.  However, with the code below, I still get no spaces 
on the first line.

Compile (w/ beta): texexec --lua <file>
ConTeXt  ver: 2009.01.14 11:29 MKIV  fmt: 2009.1.14
Luatex: Version snapshot-0.31.3-2008123108

I also tried with the "current" version as well.

\starttext
\TreatFirstLine{\sc}{}{}{}
The combined color and font effect is also possible,
although one must be careful in using macros that accumulate
grouping, but the commands used here are pretty save in that
respect.
\stoptext

Hints?

Thanks,
Bart

[-- Attachment #1.2: Type: text/html, Size: 7503 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: TreatFirstLine: loss of spaces
  2009-01-15 18:57   ` Bart C. Wise
@ 2009-01-15 19:05     ` Wolfgang Schuster
  2009-01-15 19:18     ` Hans Hagen
  1 sibling, 0 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2009-01-15 19:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 15.01.2009 um 19:57 schrieb Bart C. Wise:

> \starttext
> \TreatFirstLine{\sc}{}{}{}

\TreatFirstLine{\sc}{}{}{ }

> The combined color and font effect is also possible,
> although one must be careful in using macros that accumulate
> grouping, but the commands used here are pretty save in that
> respect.

Wolfgang

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: TreatFirstLine: loss of spaces
  2009-01-15 18:57   ` Bart C. Wise
  2009-01-15 19:05     ` Wolfgang Schuster
@ 2009-01-15 19:18     ` Hans Hagen
  2009-01-15 19:44       ` Bart C. Wise
  1 sibling, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2009-01-15 19:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Bart C. Wise wrote:
>  > \TreatFirstLine {\sc} {} {} { }
> 
>  > ^ space

> Your output looks great. However, with the code below, I still get no 
> spaces on the first line.

because (as i mentioned in the mail) you need to add a space as fourth 
argument

\TreatFirstLine {\sc} {} {} { }

or

\TreatFirstLine {\sc} {} {} {\space}

(i get the impression that your mail client behaves strange and mangles 
the mails; at least here i get funny formatted mails; do you use html mail?)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: TreatFirstLine: loss of spaces
  2009-01-15 19:18     ` Hans Hagen
@ 2009-01-15 19:44       ` Bart C. Wise
  0 siblings, 0 replies; 8+ messages in thread
From: Bart C. Wise @ 2009-01-15 19:44 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 765 bytes --]

On Thursday 15 January 2009 12:18:20 pm Hans Hagen wrote:
> Bart C. Wise wrote:
> >  > \TreatFirstLine {\sc} {} {} { }
> >  >
> >  > ^ space
> >
> > Your output looks great. However, with the code below, I still get no
> > spaces on the first line.
>
> because (as i mentioned in the mail) you need to add a space as fourth
> argument
>
> \TreatFirstLine {\sc} {} {} { }
>
> or
>
> \TreatFirstLine {\sc} {} {} {\space}
>
> (i get the impression that your mail client behaves strange and mangles
> the mails; at least here i get funny formatted mails; do you use html
> mail?)
>

I don't use html mail (kmail), so it used a proporational font.  So your "^ 
space" was pointing to the space between the first and second paragraphs!  My 
bad.

It works!

Thanks,
Bart

[-- Attachment #1.2: Type: text/html, Size: 5340 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-01-15 19:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-15 17:06 TreatFirstLine: loss of spaces Bart C. Wise
2009-01-15 17:44 ` Wolfgang Schuster
2009-01-15 18:20   ` Bart C. Wise
2009-01-15 18:26 ` Hans Hagen
2009-01-15 18:57   ` Bart C. Wise
2009-01-15 19:05     ` Wolfgang Schuster
2009-01-15 19:18     ` Hans Hagen
2009-01-15 19:44       ` Bart C. Wise

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).