ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \definestartstop
@ 2000-05-16 20:20 Hraban
  2000-05-17 15:30 ` \definestartstop Hans Hagen
  0 siblings, 1 reply; 11+ messages in thread
From: Hraban @ 2000-05-16 20:20 UTC (permalink / raw)


Hello TeXperts!

I use the "verse" environment in my LaTeX document that I try to
translate to ConTeXt. The lines are separated by \\

Since I converted all \start{environment} to \startenvironment, I defined
\definestartstop[verse][???]

What command should I write into the second braces to get an indent and
to let ConTeXt accept the \\ ?
Generally: How can I use an other \startxxx ... \stopxxx in an
\definestartstop ?

-- 
Grüßlis vom Hraban!
---


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

* Re: \definestartstop
  2000-05-16 20:20 \definestartstop Hraban
@ 2000-05-17 15:30 ` Hans Hagen
  2000-05-18 13:42   ` \definestartstop Hraban
  0 siblings, 1 reply; 11+ messages in thread
From: Hans Hagen @ 2000-05-17 15:30 UTC (permalink / raw)
  Cc: ConTeXt

At 10:20 PM 5/16/2000 +0200, Hraban wrote:
>Hello TeXperts!
>
>I use the "verse" environment in my LaTeX document that I try to
>translate to ConTeXt. The lines are separated by \\

How exactly should the verse look like? Maybe there is something better. 

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


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

* Re: \definestartstop
  2000-05-17 15:30 ` \definestartstop Hans Hagen
@ 2000-05-18 13:42   ` Hraban
  2000-05-18 22:25     ` \definestartstop Hans Hagen
  0 siblings, 1 reply; 11+ messages in thread
From: Hraban @ 2000-05-18 13:42 UTC (permalink / raw)


Hans Hagen wrote:
> >I use the "verse" environment in my LaTeX document that I try to
> >translate to ConTeXt. The lines are separated by \\
> 
> How exactly should the verse look like? Maybe there is something better.

The text should be indented right and left (Indent like at the beginning
of a paragraph), that's all for now. I'd like to define it as an own
environment, for I don't know, if the editors want to get all verses changed.

The point is that I don't want to search for all \\ in verses in several
large documents. I could delete *all* \\ with sed and use \startlines,
but there are more \\, e.g. in tables that I didn't converted yet.

-- 
Grüßlis vom Hraban!
---
Henning Hraban Ramm
Ebenreuther Str.22b
D-90482   Nuernberg
Tel. (0911) 5487697
---
http://angerweit.tikon.ch/lieder/
http://www.planet-interkom.de/fiee.visuelle/formelsammlung.html


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

* Re: \definestartstop
  2000-05-18 13:42   ` \definestartstop Hraban
@ 2000-05-18 22:25     ` Hans Hagen
  2000-05-26 17:41       ` \definestartstop Hraban
  0 siblings, 1 reply; 11+ messages in thread
From: Hans Hagen @ 2000-05-18 22:25 UTC (permalink / raw)
  Cc: ConTeXt

At 03:42 PM 5/18/2000 +0200, Hraban wrote:

>The text should be indented right and left (Indent like at the beginning
>of a paragraph), that's all for now. I'd like to define it as an own
>environment, for I don't know, if the editors want to get all verses changed.
>
>The point is that I don't want to search for all \\ in verses in several
>large documents. I could delete *all* \\ with sed and use \startlines,
>but there are more \\, e.g. in tables that I didn't converted yet.

Eh, what do you mean: 

xxxxxx
  yyyyyy
xxxxxx
  yyyyyy

is explained in the manual (startlines...stoplines with odd even indent) 

You can assign \\ a value like in: 

\definestartstop
  [verses]
  [before=\blank\startpacked,
   after=\stoppacked\blank,
   commands={\let\\=\crlf}]

How exactly is a verse coded now? 

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


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

* Re: \definestartstop
  2000-05-18 22:25     ` \definestartstop Hans Hagen
@ 2000-05-26 17:41       ` Hraban
  2000-05-27  8:40         ` \definestartstop Hans Hagen
  0 siblings, 1 reply; 11+ messages in thread
From: Hraban @ 2000-05-26 17:41 UTC (permalink / raw)


Hans Hagen wrote:
> Eh, what do you mean:
> 
> xxxxxx
>   yyyyyy
> xxxxxx
>   yyyyyy
> 
> is explained in the manual (startlines...stoplines with odd even indent)

I meant something like:

---
This is the first line of the first paragraph of a chapter. It isn't indented.
   This is normal text. The first line is indented. We will interrupt it with
a sample from a flemish folk song (you can't see the right indenting;
and it is not really necessary):

   Allen die willen naar Island gaan
   om kabeljauw te vangen
   en te vissen met verlangen.

   Naar Iseland, naar Iseland,
   naar Island toe;
   tot 33 reizen zij zijn nog niet moe.

And this is normal text again.
---

> \definestartstop
>   [verses]
>   [before=\blank\startpacked,
>    after=\stoppacked\blank,
>    commands={\let\\=\crlf}]

It doesn't work -- TeX claims some errors...

> How exactly is a verse coded now?

\startverse % was: \begin{verse}
Allen die willen naar Island gaan \\
om kabeljauw te vangen \\
en te vissen met verlangen.

Naar Iseland, naar Iseland, \\
naar Island toe; \\
tot 33 reizen zij zijn nog niet moe.
\stopverse % was: \end{verse}

(verse is a standard environment of LaTeX)

But I removed all \\ now.

-- 
Grüßlis vom Hraban!
---
http://angerweit.tikon.ch/lieder/
http://www.planet-interkom.de/fiee.visuelle/formelsammlung.html


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

* Re: \definestartstop
  2000-05-26 17:41       ` \definestartstop Hraban
@ 2000-05-27  8:40         ` Hans Hagen
  0 siblings, 0 replies; 11+ messages in thread
From: Hans Hagen @ 2000-05-27  8:40 UTC (permalink / raw)
  Cc: ConTeXt

At 07:41 PM 5/26/2000 +0200, Hraban wrote:

>I meant something like:
>
>---
>This is the first line of the first paragraph of a chapter. It isn't
indented.
>   This is normal text. The first line is indented. We will interrupt it with
>a sample from a flemish folk song (you can't see the right indenting;
>and it is not really necessary):
>
>   Allen die willen naar Island gaan
>   om kabeljauw te vangen
>   en te vissen met verlangen.
>
>   Naar Iseland, naar Iseland,
>   naar Island toe;
>   tot 33 reizen zij zijn nog niet moe.
>
>And this is normal text again.

\setupindenting
  [medium]

\definestartstop
  [Poetry]
  [before={\setuplines[indenting=yes]\startlines},
   after=\stoplines]

Misschien bedoel je: 

\startPoetry
welnu zei de tex-er tevree
dat valt me uiteindelijk nog mee
met wat start en wat stop en wat macro gedoe
kom ik eindelijk weer eens aan wat echt dichtwerk toe
\stopPoetry

dus. 

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


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

* Re: \definestartstop
  2000-02-22  9:14 ` \definestartstop Gilbert van den Dobbelsteen
@ 2000-02-22 12:52   ` Hans Hagen
  0 siblings, 0 replies; 11+ messages in thread
From: Hans Hagen @ 2000-02-22 12:52 UTC (permalink / raw)
  Cc: Michal Kvasnicka, Context

At 10:14 AM 2/22/2000 +0100, Gilbert van den Dobbelsteen wrote:

>This doesn't work in conTeXt due to the nature of TeX *and* due to the
>implementation of \stopitemize. \stopitemize is a special macro, which does
>special thing.

In this case the {} as taco suggested will work ok. 

>The way to implement custom itemisation is too change the behaviour of
>startitemize usding \setupitemize.

On my todo list is something: 

\defineitemize [instance] 
\setupitemize  [instance] [level] [vals] [vars]

(the less settings in the source, the better)

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


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

* Re: \definestartstop
  2000-02-21 16:35 \definestartstop Michal Kvasnicka
  2000-02-22  9:14 ` \definestartstop Gilbert van den Dobbelsteen
  2000-02-22  9:15 ` \definestartstop Gilbert van den Dobbelsteen
@ 2000-02-22  9:58 ` Taco Hoekwater
  2 siblings, 0 replies; 11+ messages in thread
From: Taco Hoekwater @ 2000-02-22  9:58 UTC (permalink / raw)


>>>>> "Michal" == Michal Kvasnicka <qasar@econ.muni.cz> writes:

    Michal> Hallo!  Why this stuff doesn't work (and to improve it)?

    Michal> \definestartstop[vycet][before=\startitemize,after=\stopitemize]

this should work

    Michal> \definestartstop[vycet][before=\startitemize[n],after=\stopitemize]

this not.

But this should also work:

\definestartstop[vycet][before={\startitemize[n]},after=\stopitemize]

greetings, taco


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

* Re: \definestartstop
  2000-02-21 16:35 \definestartstop Michal Kvasnicka
  2000-02-22  9:14 ` \definestartstop Gilbert van den Dobbelsteen
@ 2000-02-22  9:15 ` Gilbert van den Dobbelsteen
  2000-02-22  9:58 ` \definestartstop Taco Hoekwater
  2 siblings, 0 replies; 11+ messages in thread
From: Gilbert van den Dobbelsteen @ 2000-02-22  9:15 UTC (permalink / raw)


> Hallo!
>
> Why this stuff doesn't work (and to improve it)?
>
> \definestartstop[vycet][before=\startitemize,after=\stopitemize]
>
> or rather
>
> \definestartstop[vycet][before=\startitemize[n],after=\stopitemize]

This doesn't work in conTeXt due to the nature of TeX *and* due to the
implementation of \stopitemize. \stopitemize is a special macro, which does
special thing.

The way to implement custom itemisation is too change the behaviour of
startitemize usding \setupitemize.

Gilbert.


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

* Re: \definestartstop
  2000-02-21 16:35 \definestartstop Michal Kvasnicka
@ 2000-02-22  9:14 ` Gilbert van den Dobbelsteen
  2000-02-22 12:52   ` \definestartstop Hans Hagen
  2000-02-22  9:15 ` \definestartstop Gilbert van den Dobbelsteen
  2000-02-22  9:58 ` \definestartstop Taco Hoekwater
  2 siblings, 1 reply; 11+ messages in thread
From: Gilbert van den Dobbelsteen @ 2000-02-22  9:14 UTC (permalink / raw)


> Hallo!
>
> Why this stuff doesn't work (and to improve it)?
>
> \definestartstop[vycet][before=\startitemize,after=\stopitemize]
>
> or rather
>
> \definestartstop[vycet][before=\startitemize[n],after=\stopitemize]

This doesn't work in conTeXt due to the nature of TeX *and* due to the
implementation of \stopitemize. \stopitemize is a special macro, which does
special thing.

The way to implement custom itemisation is too change the behaviour of
startitemize usding \setupitemize.

Gilbert.


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

* \definestartstop
@ 2000-02-21 16:35 Michal Kvasnicka
  2000-02-22  9:14 ` \definestartstop Gilbert van den Dobbelsteen
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Michal Kvasnicka @ 2000-02-21 16:35 UTC (permalink / raw)


Hallo!

Why this stuff doesn't work (and to improve it)?

\definestartstop[vycet][before=\startitemize,after=\stopitemize]

or rather

\definestartstop[vycet][before=\startitemize[n],after=\stopitemize]

Many thanks

M.K.


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

end of thread, other threads:[~2000-05-27  8:40 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-16 20:20 \definestartstop Hraban
2000-05-17 15:30 ` \definestartstop Hans Hagen
2000-05-18 13:42   ` \definestartstop Hraban
2000-05-18 22:25     ` \definestartstop Hans Hagen
2000-05-26 17:41       ` \definestartstop Hraban
2000-05-27  8:40         ` \definestartstop Hans Hagen
  -- strict thread matches above, loose matches on Subject: below --
2000-02-21 16:35 \definestartstop Michal Kvasnicka
2000-02-22  9:14 ` \definestartstop Gilbert van den Dobbelsteen
2000-02-22 12:52   ` \definestartstop Hans Hagen
2000-02-22  9:15 ` \definestartstop Gilbert van den Dobbelsteen
2000-02-22  9:58 ` \definestartstop Taco Hoekwater

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