From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95446 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Setting \textrules Date: Thu, 14 Jul 2016 06:41:38 +0200 Message-ID: <57871802.7070906@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============9088543510706403664==" X-Trace: ger.gmane.org 1468471348 30263 80.91.229.3 (14 Jul 2016 04:42:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Jul 2016 04:42:28 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 14 06:42:17 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 1bNYTY-0001aL-Kn for gctc-ntg-context-518@m.gmane.org; Thu, 14 Jul 2016 06:42:16 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2D68211A34; Thu, 14 Jul 2016 06:41:56 +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 E8M_vqvPpkSU; Thu, 14 Jul 2016 06:41:55 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 7ABB011A8B; Thu, 14 Jul 2016 06:41:55 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0BCAD11A3F for ; Thu, 14 Jul 2016 06:41:55 +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 DRprTEsWAHWy for ; Thu, 14 Jul 2016 06:41:52 +0200 (CEST) Original-Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) (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 6172511A34 for ; Thu, 14 Jul 2016 06:41:42 +0200 (CEST) Original-Received: by mail-wm0-f66.google.com with SMTP id x83so8074476wma.3 for ; Wed, 13 Jul 2016 21:41:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=j6dm28sCIH9zkUw4fdCwpwzJv3rmQSh2P5IBE2iqBmk=; b=bH2QWr4DgME76UidoQ/Jsp//bHKGVzsljKUrlLw0kKauG8oDfK0itG0en6+wTFJpDy +IYNQRVh2nmyKCktApSGhgOu58N86Tw2oLxiJwtkXgGMHrwen6Ch3JeYkF5jHDbw3Ng0 Sqjgehh7eMBEZYl3x89sAp6vnaR8LLyHhmzLtmIc/+Zhsvjymstx2ZLr7OTOvDIuW3WC NKm4a9/66xo+LwxCYcW4zSRNsXhhwY9WcHzh3dvHX2iSBkVe+KcELECv7El2OoEtJPt9 B5cNVDhKcTTIOdsT1MLMx9uaKUogBmwVVVUWZyXSVCY1HIfynbgqSc4t/RzYk6dWwbHb r8Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=j6dm28sCIH9zkUw4fdCwpwzJv3rmQSh2P5IBE2iqBmk=; b=TSpWaLl3D37YzJ8P6GYzFDuP+mcuRDPkrBSqq2Rr4UXLfiS7BuoZqlK711f1u2N4J6 8n2Um82loIVC7ruAZpQlYOU6tsiG6leWVQRucc67PkRpbuy/iOT734XbSauaOvv9EPhO 9eptzBwk/2bLhabMjcFwv3L/d5/F+Gezzes3dsWOBZ2hxTpL4nJypvi+W1esNM8sw9Og HACgpKmkcxaAiVOxFUsqLMv5tt+WXRB4fCVzR3M+0Gy2i9hDRGH52E93RiEbtCM4Mcuy FrpIMqmfn395gcm8SwcCs/BWgxp/CdidknQzuWXxXELOiIzPv2Jfk/r5pObyJO349zdP XscQ== X-Gm-Message-State: ALyK8tLs1wHwyaxtiXYKYevS4sxCeFxQUlFW4GTuMnaCAp0lhfVB+uX1ze9zlb9TFo+dWQ== X-Received: by 10.28.216.67 with SMTP id p64mr14193445wmg.56.1468471301771; Wed, 13 Jul 2016 21:41:41 -0700 (PDT) Original-Received: from keima.localdomain (x2f29edd.dyn.telefonica.de. [2.242.158.221]) by smtp.gmail.com with ESMTPSA id z5sm31072565wme.5.2016.07.13.21.41.40 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Jul 2016 21:41:41 -0700 (PDT) User-Agent: Postbox 4.0.8 (Macintosh/20151105) 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:95446 Archived-At: This is a multi-part message in MIME format. --===============9088543510706403664== Content-Type: multipart/alternative; boundary="------------090508040100000504000101" This is a multi-part message in MIME format. --------------090508040100000504000101 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable > Fabrice Couvreur > 13. Juli 2016 um 01:02 > Hello, > I would like the text of the property is in italic without using the=20 > 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=20 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=20 \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 --------------090508040100000504000101 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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}.
<= /span>
Use the enumeration environment.
Is this the b= est way when I use \setuptextrules[width=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 t= out 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
--------------090508040100000504000101-- --===============9088543510706403664== 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= --===============9088543510706403664==--