ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* paragraphs indented from line 2 on
@ 2006-04-23 14:51 Karsten Heymann
  2006-04-23 16:15 ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: Karsten Heymann @ 2006-04-23 14:51 UTC (permalink / raw)



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

Hello,

what's the context'ish way of creating a start-stop environment in which
each paragraph is indented from the 2nd line on? As in

%
\startIndented
As with all computer languages, ConTeXt is much easier to use when one
has good documentation.

The official ConTeXt manual is a good place to start; this section
provides a complement to it, with alternate explanations and examples
for a number of key subjects, updates describing more recent additions
to ConTeXt, and detailed solutions to some tricky problems.
\stopIndented
%

becomes

%
As with all computer languages, ConTeXt is much easier to use when one
   has good documentation.
The official ConTeXt manual is a good place to start; this section
   provides a complement to it, with alternate explanations and examples
   for a number of key subjects, updates describing more recent
   additions to ConTeXt, and detailed solutions to some tricky problems.
%

Yours,
Karsten
-- 
|  ~ Karsten Heymann ~  | Christian-Albrecht-Universität zu Kiel |
| Fon: +49 431 880-1186 |    Netzwerkteam des Ökologiezentrum    |
| Fax: +49 431 880-4083 |     http://www.ecology.uni-kiel.de     |
| ----- Selbständiger EDV-Dienstleister im Auftrag des ÖZK ----- |




[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: paragraphs indented from line 2 on
  2006-04-23 14:51 paragraphs indented from line 2 on Karsten Heymann
@ 2006-04-23 16:15 ` Hans Hagen
  2006-04-23 17:47   ` Karsten Heymann
  2006-04-23 18:08   ` Karsten Heymann
  0 siblings, 2 replies; 8+ messages in thread
From: Hans Hagen @ 2006-04-23 16:15 UTC (permalink / raw)


Karsten Heymann wrote:
> Hello,
>
> what's the context'ish way of creating a start-stop environment in which
> each paragraph is indented from the 2nd line on? As in
>
> %
> \startIndented
> As with all computer languages, ConTeXt is much easier to use when one
> has good documentation.
>
> The official ConTeXt manual is a good place to start; this section
> provides a complement to it, with alternate explanations and examples
> for a number of key subjects, updates describing more recent additions
> to ConTeXt, and detailed solutions to some tricky problems.
> \stopIndented
> %
>
> becomes
>
> %
> As with all computer languages, ConTeXt is much easier to use when one
>    has good documentation.
> The official ConTeXt manual is a good place to start; this section
>    provides a complement to it, with alternate explanations and examples
>    for a number of key subjects, updates describing more recent
>    additions to ConTeXt, and detailed solutions to some tricky problems.
> %
>
> Yours,
> Karsten
>   
\starttext

\definestartstop
  [exdent]
  [before={\startnarrower[left]\setupindenting[-\leftskip,yes]},
   after=\stopnarrower]

\startexdent
\input tufte \endgraf
\input tufte \endgraf
\stopexdent

\stoptext

wikifyable 

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

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

* Re: paragraphs indented from line 2 on
  2006-04-23 16:15 ` Hans Hagen
@ 2006-04-23 17:47   ` Karsten Heymann
  2006-04-23 18:27     ` Hans Hagen
  2006-04-23 18:08   ` Karsten Heymann
  1 sibling, 1 reply; 8+ messages in thread
From: Karsten Heymann @ 2006-04-23 17:47 UTC (permalink / raw)



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

Hans Hagen wrote:

> Karsten Heymann wrote:

>> what's the context'ish way of creating a start-stop environment in
>> which each paragraph is indented from the 2nd line on?

> \definestartstop
>   [exdent]
>   [before={\startnarrower[left]\setupindenting[-\leftskip,yes]},
>    after=\stopnarrower]

Great, works like a charm! By the way: What's the benefit of
\definestartstop over \def\start..., \def\stop...?

> wikifyable 

instantly.

Yours,
Karsten
-- 
|  ~ Karsten Heymann ~  | Christian-Albrecht-Universität zu Kiel |
| Fon: +49 431 880-1186 |    Netzwerkteam des Ökologiezentrum    |
| Fax: +49 431 880-4083 |     http://www.ecology.uni-kiel.de     |
| ----- Selbständiger EDV-Dienstleister im Auftrag des ÖZK ----- |


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: paragraphs indented from line 2 on
  2006-04-23 16:15 ` Hans Hagen
  2006-04-23 17:47   ` Karsten Heymann
@ 2006-04-23 18:08   ` Karsten Heymann
  2006-04-23 18:31     ` Hans Hagen
  1 sibling, 1 reply; 8+ messages in thread
From: Karsten Heymann @ 2006-04-23 18:08 UTC (permalink / raw)



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

Hans Hagen wrote:
> \definestartstop
>   [exdent]
>   [before={\startnarrower[left]\setupindenting[-\leftskip,yes]},
>    after=\stopnarrower]

Can you make the following work too? Adding \indenting[yes] to before=
doesn't help.

\startexdent
\section{Test}
\input tufte \endgraf
\input tufte \endgraf
\stopexdent

\stoptext

Yours,
Karsten
-- 
|  ~ Karsten Heymann ~  | Christian-Albrecht-Universität zu Kiel |
| Fon: +49 431 880-1186 |    Netzwerkteam des Ökologiezentrum    |
| Fax: +49 431 880-4083 |     http://www.ecology.uni-kiel.de     |
| ----- Selbständiger EDV-Dienstleister im Auftrag des ÖZK ----- |



[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: paragraphs indented from line 2 on
  2006-04-23 17:47   ` Karsten Heymann
@ 2006-04-23 18:27     ` Hans Hagen
  2006-04-24  4:48       ` Karsten Heymann
  0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2006-04-23 18:27 UTC (permalink / raw)


Karsten Heymann wrote:
>> \definestartstop
>>   [exdent]
>>   [before={\startnarrower[left]\setupindenting[-\leftskip,yes]},
>>    after=\stopnarrower]
>>     
>
> Great, works like a charm! By the way: What's the benefit of
> \definestartstop over \def\start..., \def\stop...?
>   
looks nicer and is configurable (style,color etc) 


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

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

* Re: paragraphs indented from line 2 on
  2006-04-23 18:08   ` Karsten Heymann
@ 2006-04-23 18:31     ` Hans Hagen
  2006-04-24  4:50       ` Karsten Heymann
  0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2006-04-23 18:31 UTC (permalink / raw)


Karsten Heymann wrote:
> Hans Hagen wrote:
>   
>> \definestartstop
>>   [exdent]
>>   [before={\startnarrower[left]\setupindenting[-\leftskip,yes]},
>>    after=\stopnarrower]
>>     
>
>   
\setuphead[section][indentnext=first]

> Can you make the following work too? Adding \indenting[yes] to before=
> doesn't help.
>
> \startexdent
> \section{Test}
> \input tufte \endgraf
> \input tufte \endgraf
> \stopexdent
>
> \stoptext
>
> Yours,
> Karsten
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>   


-- 

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

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

* Re: paragraphs indented from line 2 on
  2006-04-23 18:27     ` Hans Hagen
@ 2006-04-24  4:48       ` Karsten Heymann
  0 siblings, 0 replies; 8+ messages in thread
From: Karsten Heymann @ 2006-04-24  4:48 UTC (permalink / raw)



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

Hans Hagen wrote:

> Karsten Heymann wrote:

>> Great, works like a charm! By the way: What's the benefit of
>> \definestartstop over \def\start..., \def\stop...?

> looks nicer and is configurable (style,color etc) 

So it doesn't insert a extra level ouf grouping or the like -- fine to know.

Yours,
Karsten


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: paragraphs indented from line 2 on
  2006-04-23 18:31     ` Hans Hagen
@ 2006-04-24  4:50       ` Karsten Heymann
  0 siblings, 0 replies; 8+ messages in thread
From: Karsten Heymann @ 2006-04-24  4:50 UTC (permalink / raw)



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

Hans Hagen wrote:
> \setuphead[section][indentnext=first]

Oh, I should have known that by now ...

Thanks Hans, I'll add it to the wiki.

Yours,
karsten
-- 
|  ~ Karsten Heymann ~  | Christian-Albrecht-Universität zu Kiel |
| Fon: +49 431 880-1186 |    Netzwerkteam des Ökologiezentrum    |
| Fax: +49 431 880-4083 |     http://www.ecology.uni-kiel.de     |
| ----- Selbständiger EDV-Dienstleister im Auftrag des ÖZK ----- |



[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

end of thread, other threads:[~2006-04-24  4:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-23 14:51 paragraphs indented from line 2 on Karsten Heymann
2006-04-23 16:15 ` Hans Hagen
2006-04-23 17:47   ` Karsten Heymann
2006-04-23 18:27     ` Hans Hagen
2006-04-24  4:48       ` Karsten Heymann
2006-04-23 18:08   ` Karsten Heymann
2006-04-23 18:31     ` Hans Hagen
2006-04-24  4:50       ` Karsten Heymann

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