From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/97169 Path: news.gmane.org!.POSTED!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Re: Title without the parentheses Date: Sun, 29 Jan 2017 12:02:11 +0100 Message-ID: <3C30066D-183B-4F0D-9008-50D95845B57D@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Content-Type: multipart/mixed; boundary="===============0063005397461191988==" X-Trace: blaine.gmane.org 1485687770 32643 195.159.176.226 (29 Jan 2017 11:02:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 29 Jan 2017 11:02:50 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 29 12:02:45 2017 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 blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cXnFp-0007kf-7G for gctc-ntg-context-518@m.gmane.org; Sun, 29 Jan 2017 12:02:41 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 460BD12602EE; Sun, 29 Jan 2017 12:02:26 +0100 (CET) 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 pcMev-NA36Uh; Sun, 29 Jan 2017 12:02:25 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 7DB0C126026E; Sun, 29 Jan 2017 12:02:25 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0748912601EC for ; Sun, 29 Jan 2017 12:02:25 +0100 (CET) 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 VzQiP3YM2L_8 for ; Sun, 29 Jan 2017 12:02:24 +0100 (CET) Original-Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) (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 7841D12601CD for ; Sun, 29 Jan 2017 12:02:14 +0100 (CET) Original-Received: by mail-wm0-f49.google.com with SMTP id v77so7938528wmv.0 for ; Sun, 29 Jan 2017 03:02:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=kkgdPRyiN7yjU0OOW8pHjbFqHNfv6P4H2TD2Nkwh0ks=; b=sfe1ygaV3qp7RRer0Dc9vO6h0P1dYnlC5R0Vi2++FqvbvtAe2/Uidah8CV6wwbw6x0 zGadW1cQOZOBotXbAwFFjs23PdoiOYnbZoFa9RiD8CkRqe5q0imzje7c/4YhpPqvZ6Xw +reUAKgmY905jYc1SyoL/LVerBHhHLw/+ByB0Lphe5uRzLvpmBwNyfxsnlL7V5uZMuEJ UOt9fNEl7fUPb1c+6XMjdb4ffYxXWgbCGvsEp46HK4eayAlhXic4Sz818v3lT2fuuuFh 5X+yoSuUzj221XxBm6t5v8ial1Vj6nLs/Cf7Rh2L3fKmQthmIA/nyi5jSzvbkIrsxHNq AFwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=kkgdPRyiN7yjU0OOW8pHjbFqHNfv6P4H2TD2Nkwh0ks=; b=RRiOz7+ZdwxJAyA675NXPQ7fZ8/iFlyurTbYFWDAUAa6KgBercumAORnSVQApvQ8gB Dzu9XJXg1+sjILwVEoAafkbFcCRc2o3y0bUFyrT1ZRxgD68Bh399Re74vVEliTalV+fi K1K6Zrnz5bi/Y6l30tfCoOPAYwc6VhlWNBBBU2uLoMs2zCTb9Wju8JJKzH3Kkg2akbCX 7OqHFWnwW5MKlZ0QG1HhHYBkkZentBY2ZP0/TDRy1StHDJhVWUAWS+KVQf4wc0gr6DmE eX+BYZDiu7Z/rs/lZuzsv0HQbwLWPuZjHk1+K86IRg6VKK2cLsoY8r+C7CQ1KNBcp/NT bQcA== X-Gm-Message-State: AIkVDXIe/kbLBpgI5Z/p5x+CqPNahJWkeXhdv8rBLknXZ5OcNwvEOOgNvZrftkY1AiAkOA== X-Received: by 10.28.19.207 with SMTP id 198mr9248328wmt.70.1485687733874; Sun, 29 Jan 2017 03:02:13 -0800 (PST) Original-Received: from [172.20.0.118] (62.100.102.254.static.user.ono.com. [62.100.102.254]) by smtp.gmail.com with ESMTPSA id n13sm17153929wrn.40.2017.01.29.03.02.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 Jan 2017 03:02:12 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3259) 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:97169 Archived-At: --===============0063005397461191988== Content-Type: multipart/alternative; boundary="Apple-Mail=_3C7DEB57-67BB-4773-83CC-059CEA419851" --Apple-Mail=_3C7DEB57-67BB-4773-83CC-059CEA419851 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Fabrice, To suppress the parentheses in the title, you can use the keys titleleft = and titleright as in the following: \defineenumeration [ex] [text=3DExercice, title=3Dyes, titleleft=3D, titleright=3D, width=3Dfit, numberconversionset=3DACCONVERSION, alternative=3Dtop, number=3Dyes] In order to put the word =C2=AB Exercice =C2=BB in the frame you should = define a special command, for instance \MyTextCommand and the say text =3D= \MyTextCommand Best regrads: OK > On 29 Jan 2017, at 09:07, Fabrice Couvreur = wrote: >=20 > Hello, > I would like a title without the parentheses and the text "Exercice" = in the frame with the number. > Thank you. > Fabrice >=20 > \defineframed > [EXFRAME] > [frame=3Doff, > offset=3D0pt, > location=3Dlow, > width=3D\struttotal, > background=3Dcolor, > backgroundcolor=3Ddarkred, > foregroundcolor=3Dwhite, > forgroundstyle=3Dbold] >=20 > \defineprocessor[ACPROCESSOR][command=3D\EXFRAME] > \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] >=20 > \defineenumeration > [ex] > [text=3DExercice, > title=3Dyes, > width=3Dfit, > numberconversionset=3DACCONVERSION, > alternative=3Dtop, > number=3Dyes] >=20 > \starttext >=20 > \startex{Pour tous les candidats \hfill 5 points} > \input ward > \stopex >=20 > \stoptext --Apple-Mail=_3C7DEB57-67BB-4773-83CC-059CEA419851 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi Fabrice,

To suppress the parentheses in the title, you can use the = keys titleleft and titleright as in the following:

\defineenumeration
  [ex]
  [text=3DExercice,
  =  title=3Dyes,
  =  titleleft=3D,
  =  titleright=3D,
  =  width=3Dfit,
  =  numberconversionset=3DACCONVERSION,
  =  alternative=3Dtop,
  =  number=3Dyes]

In order to put the word =C2=AB Exercice =C2=BB in the frame = you should define a special command, for instance \MyTextCommand and the = say text =3D \MyTextCommand

Best regrads: OK

On = 29 Jan 2017, at 09:07, Fabrice Couvreur <fabrice1.couvreur@gmail.com> wrote:

Hello,
I would = like a title without the parentheses and the text "Exercice" in the = frame with the number.
Thank = you.
Fabrice

\defineframed
  [EXFRAME]
  [frame=3Doff,
   = offset=3D0pt,
   location=3Dlow,
   width=3D\struttotal,
   = background=3Dcolor,
   = backgroundcolor=3Ddarkred,
   = foregroundcolor=3Dwhite,
   = forgroundstyle=3Dbold]

\defineprocessor[ACPROCESSOR][command=3D\EXFRAME]
\defineconversionset[ACCONVERSION][][ACPROCESSOR->n]

\defineenumeration
  = [ex]
  [text=3DExercice,
   = title=3Dyes,
   width=3Dfit,
   numberconversionset=3DACCONVERSION,
   alternative=3Dtop,
   = number=3Dyes]

\starttext

\startex{Pour tous les candidats \hfill 5 points}
  \input ward
\stopex

\stoptext

= --Apple-Mail=_3C7DEB57-67BB-4773-83CC-059CEA419851-- --===============0063005397461191988== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============0063005397461191988==--