From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95519 Path: news.gmane.org!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: Setting \textrules Date: Wed, 20 Jul 2016 20:17:53 +0200 Message-ID: References: <57871802.7070906@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2082848013013835412==" X-Trace: ger.gmane.org 1469038721 15894 80.91.229.3 (20 Jul 2016 18:18:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Jul 2016 18:18:41 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 20 20:18:27 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bPw4h-0007Zh-6M for gctc-ntg-context-518@m.gmane.org; Wed, 20 Jul 2016 20:18:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 764B012778; Wed, 20 Jul 2016 20:18:09 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1ZO3jWdgKeyg; Wed, 20 Jul 2016 20:18:08 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id BF2B312785; Wed, 20 Jul 2016 20:18:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 11F7E12778 for ; Wed, 20 Jul 2016 20:18:07 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p3iDwJd1VUPl for ; Wed, 20 Jul 2016 20:18:06 +0200 (CEST) Original-Received: from mail-it0-f48.google.com (mail-it0-f48.google.com [209.85.214.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id EC2B51276B for ; Wed, 20 Jul 2016 20:17:55 +0200 (CEST) Original-Received: by mail-it0-f48.google.com with SMTP id u186so122513632ita.0 for ; Wed, 20 Jul 2016 11:17:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=xydKYprlOQ1BAnZUBTQywt5RQuVU9/8xdzByLCZgHrY=; b=WGWIub9NQLqx0iv03F3IPhztyfMmg5TJ+EjvRhWCWNIWTk9VEMPIbRXbomULzuRARh i5Fby2VqN4e43vh/l23BVGRdqZfdTYgyShr4ba20wxXdp/mt/OMB9fxkcjVtvy0x2FHA XNsDGfc4hI9w0AU3aa+ptExyHFN0jCtrfMoMUwcP4ujcL6ZSYUtY6nesZMTtNK3uTtWo gJs7I3EaNFYXrh3HDrgfmGRhGMFnOuvjF4YtmosOiLAp4Mg4eJzpqZwEeqma+kGFIHPT Oils21LY9QY0hYiqfCRBG+VjxuoR9+fx/GtcvScMEh6sw8ssb8qhyZEl+4sl7BowFo/M DMVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=xydKYprlOQ1BAnZUBTQywt5RQuVU9/8xdzByLCZgHrY=; b=Va5Nwj+sS34zrtTBMuzsJvh5qKZRzC3LwQKA6Z3kFNJi3rghZgkDPreHPObcxRgyGq QlnVxDk3PzSAL5zWDqY8ZlE7zFceUoYdGjZXGkUdOD1+LCTGgSH1/p19X4mBDeVLPh5d bBLokDk6GXcAkXFz8tepscoKFOXVD43Ruknru8ERkhTZmJCBNX6eMWpGzJI/ZC8KKhgT BskmlDdcejR0phPP8qJst7mT+GGOzU9bkls0ML2wksK6KtodwQDM7IJwOWFSXhhkKIDR kwgweXlyKKutkfd6Yo0P5mBrcxtmKRiYYv/dFAuhSIHn5+H0CD3HQQtEK+pX7YKz0wve l7xw== X-Gm-Message-State: ALyK8tKs6JgX7mIQZc/b45rppADacWYdf68gAIDNmI7wQ421r6ho56BH94omFka4GWeh5IEUFEaNrFB/ZJTwYw== X-Received: by 10.36.62.133 with SMTP id s127mr11242000its.98.1469038674298; Wed, 20 Jul 2016 11:17:54 -0700 (PDT) Original-Received: by 10.64.10.2 with HTTP; Wed, 20 Jul 2016 11:17:53 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:95519 Archived-At: --===============2082848013013835412== Content-Type: multipart/alternative; boundary=001a113fe08c57cc6c05381538a1 --001a113fe08c57cc6c05381538a1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Wolfgang, Is there a simple way to add a light gray background ? thanks, Fabrice 2016-07-14 11:57 GMT+02:00 Fabrice Couvreur : > Hi Wolfgang, > it's perfect ! > thanks, > Fabrice > > 2016-07-14 6:41 GMT+02:00 Wolfgang Schuster = : > >> Fabrice Couvreur >> 13. Juli 2016 um 01:02 >> Hello, >> I would like the text of the property is in italic without using the >> environment {\it}. >> >> Use the enumeration environment. >> >> Is this the best way when I use \setuptextrules[width=3D-1ex] ? >> >> You can set the width and distance values to 0pt and put a space after >> the counter. >> >> %%%% begin example >> \setupbodyfont[pagella,11pt] >> >> \define[1]\ProprieteHeadcommand >> {\textrule[top]{#1}} >> >> \defineenumeration >> [propriete] >> [text=3DPropri=C3=A9t=C3=A9 , >> style=3Ditalic, >> headcommand=3D\ProprieteHeadcommand, >> numbercommand=3D\groupedcommand{}{\nbsp}, >> after=3D\textrule] >> >> \setuptextrules[width=3D0pt,distance=3D0pt] >> >> \starttext >> >> \startpropriete >> Soit \math{q} un r=C3=A9el \math{\neq 1}, alors pour tout entier nat= urel >> \math{n\geqslant 1} on a : >> \startformula >> S=3D1+q+q^2+\dots+q^n=3D\frac{1-q^{n+1}}{1-q}. >> \stopformula >> \stoppropriete >> >> \stoptext >> %%%% end example >> >> Wolfgang >> >> >> ________________________________________________________________________= ___________ >> If your question is of interest to others as well, please add an entry t= o >> 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 >> >> ________________________________________________________________________= ___________ >> > > --001a113fe08c57cc6c05381538a1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Wolfga= ng,
Is there a simple way
to add a light gray background ?
thanks,
Fabrice
=

2016= -07-14 11:57 GMT+02:00 Fabrice Couvreur <fabrice1.couvreur@gmail= .com>:
Hi Wolfgang,
it's perfect !
thanks,
=
Fabrice

2016-07-= 14 6:41 GMT+02:00 Wolfgang Schuster <schuster.wolfgang@gmail.com= >:
13.=20 Juli 2016 um 01:02
=
Hello,
I would like=20 the text of the property is in italic without using the environment {\it}.
Use the enumeration environment.
Is this the best way when I use \setuptextrules[wi= dth=3D-1ex] ?
You can set the width and distance values to 0pt and put a space after=20 the counter.

%%%% begin example
\setupbodyfont[pagella,11pt]

\define[1]\ProprieteHeadcommand
=C2=A0 {\textrule[top]{#1}}

\defineenumeration
=C2=A0 [propriete]
=C2=A0 [text=3DPropri=C3=A9t=C3=A9 ,
=C2=A0=C2=A0 style=3Ditalic,
=C2=A0=C2=A0 headcommand=3D\ProprieteHeadcommand,
=C2=A0=C2=A0 numbercommand=3D\groupedcommand{}{\nbsp},
=C2=A0=C2=A0 after=3D\textrule]

\setuptextrules[width=3D0pt,distance=3D0pt]

\starttext

\startpropriete
=C2=A0=C2=A0=C2=A0 Soit \math{q} un r=C3=A9el \math{\neq 1}, alors pour tou= t entier naturel=20 \math{n\geqslant 1} on a :
=C2=A0=C2=A0=C2=A0 \startformula
=C2=A0=C2=A0=C2=A0 S=3D1+q+q^2+\dots+q^n=3D\frac{1-q^{n+1}}{1-q}.
=C2=A0=C2=A0=C2=A0 \stopformula
\stoppropriete

\stoptext
%%%% end example

Wolfgang

___________________________________________________________= ________________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://tex.aanhet.net
archive=C2=A0 : http://foundry.supelec.fr/projects/con= textrev/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________


--001a113fe08c57cc6c05381538a1-- --===============2082848013013835412== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============2082848013013835412==--