[NTG-context] About \textrule [ ]

Otared Kavian otared at gmail.com
Tue Oct 1 11:31:15 CEST 2019


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.couvreur at 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 at 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
> ___________________________________________________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20191001/31f3d3be/attachment-0001.html>


More information about the ntg-context mailing list