Hi Fabrice,

Is this what you are looking for?
Best regards: OK

\setuptextrules[width=.5cm]

\define[1]\ProprieteHeadcommand
        {\textrule[top]{Propriété}}

\defineenumeration[propriete]
        [headstyle={bold},
        style=italic,
        number=no,
        headcommand=\ProprieteHeadcommand,
        numbercommand=\groupedcommand{}{\nbsp},
        after=\textrule]

\starttext
\startpropriete
  \input ward
\stoppropriete
\stoptext

> On 1 Oct 2019, at 11:09, Fabrice Couvreur <fabrice1.couvr...@gmail.com> wrote:
> 
> Hello,
> The top line is in the text, how to fix this problem ?
> Thank you.
> Fabrice
> 
> \setuptextrules[width=0.5cm]
> 
> \define[1]\ProprieteHeadcommand
>   {\textrule[top]{#1}}
> 
> \defineenumeration
>   [propriete]
>   [text=Propriété,
>    title=yes,
>    headstyle={bold},
>    alternative=serried,
>    style=italic,
>    number=no,
>    headcommand=\ProprieteHeadcommand,
>    numbercommand=\groupedcommand{}{\nbsp},
>    after=\textrule]
> 
> \starttext
> \startpropriete
>   \input ward
> \stoppropriete
> \stoptext
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to