[NTG-context] Regression with label inright placement

2015-10-25 Thread Rik Kabel
The following code, a slight addition to test suite 
descriptions/labels-003.tex, when using ConTeXt from 20150904  and 
earlier works properly. Between that release and 20151004 something 
changed, and it fails with the labels shifted to reflect the temporarily 
narrowed text.


   \definelabel[MyLabel][way=bytext,text=OEPS]

   \starttext
\setuplabel[MyLabel][alternative=intext]
\MyLabel[labelname1] This is some text after \in[labelname1].
\blank
\MyLabel[labelname2] This is some text after \in[labelname2].
\blank
\setuplabel[MyLabel][alternative=inleft]
\MyLabel[labelname1] This is some text after \in[labelname1].
\blank
\MyLabel[labelname2] This is some text after \in[labelname2].
\blank
\setuplabel[MyLabel][alternative=inright]
\MyLabel[labelname1] This is some text after \in[labelname1].
\blank
\MyLabel[labelname2] This is some text after \in[labelname2].
\blank
\startnarrower
\MyLabel[labelname1] This is some text after \in[labelname1].
\blank
\MyLabel[labelname2] This is some text after \in[labelname2].
\stopnarrower
   \stoptext

Oeps indeed!
--
Rik
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Question on how to simple numbered sections or other headings

2015-10-25 Thread Alan BRASLAU
This works only because ConTeXt has some sanity checks, so a new
\startsubsection will implicitly stop an un-stopped subsection. But
it is bad practice to count on this, for I am sure that there are some
situations where something might fail.

The \startXXX ... \stopXXX syntax is generally better than using
simple, traditional (LaTeX) \chapter commands as this exports much
better or more cleanly to xml/xhtml, for example, and produces much
cleaner tagged PDF output as well.

Alan

On Sun, 25 Oct 2015 19:04:01 +
 wrote:

> I was wondering if the \stopchapter (or
> more generally \stop) were needed ? In my document I write in
> some instances:
> 
> \startsubsection
> 
> Bla bla
> 
> \startsubsection
> 
> etc ….
> 
> and it seems to work fine (but perhaps pure luck or is the
> \startsubsection implictly ends the previous one).


___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Question on how to simple numbered sections or other headings

2015-10-25 Thread josephcanedo
Thanks a lot, very concise. I was wondering if the \stopchapter (or more 
generally \stop) were needed ? In my document I write in some instances:


\startsubsection 


Bla bla 


\startsubsection 


etc ….


and it seems to work fine (but perhaps pure luck or is the \startsubsection 
implictly ends the previous one).


Best regards

Joseph






Sent from Windows Mail





From: Alan BRASLAU
Sent: ‎Sunday‎, ‎October‎ ‎25‎, ‎2015 ‎6‎:‎00‎ ‎PM
To: josephcan...@gmail.com
Cc: ntg-context@ntg.nl





Easier:

\setuplabeltext [chapter=Chapitre ] % with trailing space; blank by default
\starttext

 \startchapter
   Some text.
 \stopchapter

 \startchapter
   Some more text.
 \stopchapter

\stoptext


Alan


On Sun, 25 Oct 2015 17:32:30 +0100
"Thomas A. Schmitz"  wrote:

> Is that what you're looking for?
> 
> 
> \define[2]\MyChapterTitle%
> {#2: #1}
> 
> \setuphead[chapter]
>[command=\MyChapterTitle]
> 
> \starttext
> 
> \startchapter [title=Some Title]
> 
> Some text.
> 
> \stoptext
> 
> When you define a command, #1 is your chapter/section/whatever
> number, #2 is your title.
> 
> (For future reference: please make minimal examples when asking a
> question.)
> 
> Thomas___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Question on how to simple numbered sections or other headings

2015-10-25 Thread josephcanedo
Yes, that’s correct. I guess command= attribute kind of replaces the “default” 
processing for the head ? Because when I use it the “align = center” does not 
seem to be taken in account.

Thanks a lot


Joseph






Sent from Windows Mail





From: Thomas A. Schmitz
Sent: ‎Sunday‎, ‎October‎ ‎25‎, ‎2015 ‎5‎:‎32‎ ‎PM
To: ntg-context@ntg.nl





Is that what you're looking for?


\define[2]\MyChapterTitle%
{#2: #1}

\setuphead[chapter]
   [command=\MyChapterTitle]

\starttext

\startchapter [title=Some Title]

Some text.

\stoptext

When you define a command, #1 is your chapter/section/whatever number, 
#2 is your title.

(For future reference: please make minimal examples when asking a question.)

Thomas
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
__
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Question on how to simple numbered sections or other headings

2015-10-25 Thread Alan BRASLAU
Easier:

\setuplabeltext [chapter=Chapitre ] % with trailing space; blank by default
\starttext

 \startchapter
   Some text.
 \stopchapter

 \startchapter
   Some more text.
 \stopchapter

\stoptext


Alan


On Sun, 25 Oct 2015 17:32:30 +0100
"Thomas A. Schmitz"  wrote:

> Is that what you're looking for?
> 
> 
> \define[2]\MyChapterTitle%
> {#2: #1}
> 
> \setuphead[chapter]
> [command=\MyChapterTitle]
> 
> \starttext
> 
> \startchapter [title=Some Title]
> 
> Some text.
> 
> \stoptext
> 
> When you define a command, #1 is your chapter/section/whatever
> number, #2 is your title.
> 
> (For future reference: please make minimal examples when asking a
> question.)
> 
> Thomas
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Question on how to simple numbered sections or other headings

2015-10-25 Thread Thomas A. Schmitz

Is that what you're looking for?


\define[2]\MyChapterTitle%
{#2: #1}

\setuphead[chapter]
  [command=\MyChapterTitle]

\starttext

\startchapter [title=Some Title]

Some text.

\stoptext

When you define a command, #1 is your chapter/section/whatever number, 
#2 is your title.


(For future reference: please make minimal examples when asking a question.)

Thomas
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Question on how to simple numbered sections or other headings

2015-10-25 Thread josephcanedo
Hello all,


I have an another newbie ConTeXt user question (very powerful but the learning 
curve is a bit steep at least for me 😊). Sorry if this is documented in the 
Wiki but could not find an example to do this. 


I would like to have text splitted in chapters (or sections) with some title, 
which I can do fine and have these divided in sections (or subsections) whose 
title is just for example: Chapitre 1, Chapitre 2, … ie a simple label + a 
counter after it.


How can I do this please ? I tried using \setupheads[number=no] to not print 
the number at left side of title but this makes \structurenumber or 
\headnumber[section] empty.


Basically what is a way to have (for example): 


Chapitre 1


instead of


1 Chapitre


Many thanks


Best regards


Joseph Canedo___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] list with individual item indications

2015-10-25 Thread dr. Hans van der Meer
I want to typeset a series of items in the itemize-list structure. But not 
numbered 1. 2. etc, but each item a separate indication, in fact in this case 
years. In \startitemize \startitem .. \stopitem .. \stopitemize I am not able 
to realize this and the ConTeXt Wiki on these commands didn't help me further.
How to accomplish?

Hans van der Meer

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Question on typesetting paragraphs with non rectangle shape

2015-10-25 Thread Renaud AUBIN
Page 441 of http://www.pragma-ade.com/general/manuals/metafun-s.pdf

Cheers 

Le 20 oct. 2015 10:32 PM, Joseph Canedo  a écrit :
>
> Hello all,
>
> I am quite new to ConTeXt and I wished to know if it was possible to easily 
> typeset paragraphs with non rectangle shape. More specifically I’d like to 
> make a paragraph which ends with a tailpiece, ie finishes like a triangle 
> (the text width decreases until reaching very narrow width at last line).
>
> Many thanks
>
> Best regards
>
> Joseph Canedo
>
>
>
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___