From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/97172 Path: news.gmane.org!.POSTED!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Re: Title without the parentheses Date: Mon, 30 Jan 2017 12:09:30 +0100 Message-ID: <3E67B496-45BE-40CE-AAC5-CE6533E4A32E@gmail.com> References: <3C30066D-183B-4F0D-9008-50D95845B57D@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3263\)) Content-Type: multipart/mixed; boundary="===============7111543996914280336==" X-Trace: blaine.gmane.org 1485774599 27521 195.159.176.226 (30 Jan 2017 11:09:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 30 Jan 2017 11:09:59 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 30 12:09:54 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 1cY9qI-0006qN-OM for gctc-ntg-context-518@m.gmane.org; Mon, 30 Jan 2017 12:09:50 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E061B12601E3; Mon, 30 Jan 2017 12:09:45 +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 Up6qyjEZ9qOE; Mon, 30 Jan 2017 12:09:45 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 2F46B126025B; Mon, 30 Jan 2017 12:09:45 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6EC2112601BD for ; Mon, 30 Jan 2017 12:09:43 +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 XGquVqERBPuu for ; Mon, 30 Jan 2017 12:09:42 +0100 (CET) Original-Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) (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 404F012600DE for ; Mon, 30 Jan 2017 12:09:32 +0100 (CET) Original-Received: by mail-wm0-f44.google.com with SMTP id c85so209399443wmi.1 for ; Mon, 30 Jan 2017 03:09:32 -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=N6Y8NUWL263kFwyG4AUohrdk7gsFGHU//BD02L06k20=; b=k0xDIxCRD9p1vYqI6wfYvVaHmSffeU4L9sbBZRu13uSDdM74RGsAkn+yNeBtoPZxag gtncCz6ldXD+25z1jAUR34rpvzqnpUiCIxcbNHcwyWxsBbvoOnkFXtdbBXJpvE99RClK 2z0LhBdccSNEY+vZ854r+RmVM8NPr5KnADbWj4HSexMeZ8i0ZhUnKl2oOnC9o6ILq4Rf 8NetU0+yLOeHtkS4xPgFNSlqs36Qy495L1Qn+RXOhtqewQSprNwqgXwWfREnppY5MJ9u yZaUi17IGPa51r4y2zMfJoaAbutGRdKEBl8ryi9/712FPVSIHNAK+Awz2mfe5I2/bX+j o5uQ== 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=N6Y8NUWL263kFwyG4AUohrdk7gsFGHU//BD02L06k20=; b=VcypBs3vpczNXInV3oxF4QuqM4++RVll7GJUYuVfn3oTtPPEOYYVRDlN/CcA/67JsF DXl2hOJRGfYP1aBajGD40CvbzT4aLdxp4LVbJT0uOQEbADFqVA7dimTjUThZeha7vNJA mPld3BmcfgSolboZUHJ5/846bMKCMsTaYGHNV0P6CBtaXdJcvOEGhW6ljcXBpJkd84dP DxLoEpD7GUuqdCfZuXPbRu3u+Nzo+y8O5S45GK3ETedDKyy97TieUH3TJbnefNH1h5GF zRjnMocekj6SKgwSZaZuVjRDFoXRQrdKQZsUOGsUnEwFxU84RfaiHAVmoqBGbHUDu3QG UrGQ== X-Gm-Message-State: AIkVDXKCcm/fItCJmHFMFbcFNUZWeK/SapUJ9+kxucJqEGwCBTUlhceX0S2maNFNu3DFXw== X-Received: by 10.223.136.197 with SMTP id g5mr17605313wrg.56.1485774571628; Mon, 30 Jan 2017 03:09:31 -0800 (PST) Original-Received: from ?IPv6:2a01:e34:ec02:4760:9dd6:d13d:c71:a325? ([2a01:e34:ec02:4760:9dd6:d13d:c71:a325]) by smtp.gmail.com with ESMTPSA id 36sm22202060wrz.8.2017.01.30.03.09.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Jan 2017 03:09:30 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3263) 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:97172 Archived-At: --===============7111543996914280336== Content-Type: multipart/alternative; boundary="Apple-Mail=_D54FABBF-FA43-4824-A4B1-AA09BAA5EF5C" --Apple-Mail=_D54FABBF-FA43-4824-A4B1-AA09BAA5EF5C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Fabrice, Below you have an example which may help you to achieve what you want, = but in the example I am sending there is an issue with the alignment of = the title. I could not solve the issue, sorry=E2=80=A6 Best regards: Otared K. %% begin example boxed-title.tex \startuniqueMPgraphic{MyShape} path p ;=20 p :=3D unitsquare xscaled \overlaywidth yscaled \overlayheight ; pickup pencircle scaled \overlaylinewidth ; fill p withcolor \MPcolor{\overlaycolor} ; draw p withcolor \MPcolor{\overlaylinecolor} ; \stopuniqueMPgraphic \defineoverlay[MyBackgroundLayer][\uniqueMPgraphic{MyShape}] \define[1]\MyExoCommand{% \startframed [background=3DMyBackgroundLayer, frame=3Doff, width=3D3cm, backgroundcolor=3Ddarkred] {\white Exercice #1} \stopframed } \defineenumeration[ex] [text=3D, title=3Dyes, titleleft=3D, titleright=3D, width=3Dfit, alternative=3Dtop, number=3Dyes, numbercommand=3D\MyExoCommand] \showgrid \starttext \startex{Pour tous les candidats \hfill 5 points} \input ward \stopex \stoptext %% end example boxed-title.tex > On 29 Jan 2017, at 23:04, Fabrice Couvreur = wrote: >=20 > Hello Kavian, > Thank you for your answer, it's good for the parentheses. For the = command, I found only this which does not exactly answer what I want to = do. > Fabrice >=20 > \defineenumeration > [ex] > [text=3D{Exercice}, > headcommand=3D\EXFRAME, > titleleft=3D, > titleright=3D, > title=3Dyes, > width=3Dfit, > numberconversionset=3DACCONVERSION, > alternative=3Dtop, > number=3Dyes] >=20 > 2017-01-29 12:02 GMT+01:00 Otared Kavian >: > Hi Fabrice, >=20 > To suppress the parentheses in the title, you can use the keys = titleleft and titleright as in the following: >=20 > \defineenumeration > [ex] > [text=3DExercice, > title=3Dyes, > titleleft=3D, > titleright=3D, > width=3Dfit, > numberconversionset=3DACCONVERSION, > alternative=3Dtop, > number=3Dyes] >=20 > 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 >=20 > Best regrads: OK >=20 >> 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 >=20 >=20 > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ >=20 > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ --Apple-Mail=_D54FABBF-FA43-4824-A4B1-AA09BAA5EF5C Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi Fabrice,

Below you have an example which may help you to achieve what = you want, but in the example I am sending there is an issue with the = alignment of the title.
I could not solve the = issue, sorry=E2=80=A6

Best regards: Otared K.

%% begin example = boxed-title.tex
\startuniqueMPgraphic{MyShape}
path p = ; 
p :=3D unitsquare xscaled = \overlaywidth yscaled \overlayheight ;
pickup = pencircle scaled \overlaylinewidth ;
fill p = withcolor \MPcolor{\overlaycolor} ;
draw p = withcolor \MPcolor{\overlaylinecolor} ;
\stopuniqueMPgraphic

\defineoverlay[MyBackgroundLayer][\uniqueMPgraphic{MyShape}]

\define[1]\MyExoCommand{%
= \startframed
= [background=3DMyBackgroundLayer,
= frame=3Doff,
width=3D3cm,
= backgroundcolor=3Ddarkred]
= {\white Exercice #1}
= \stopframed
}
\defineenumeration[ex]
= [text=3D,
title=3Dyes,
= titleleft=3D,
titleright=3D,
= width=3Dfit,
alternative=3Dtop,
= number=3Dyes,
= numbercommand=3D\MyExoCommand]


\showgrid
\starttext

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

\stoptext
%% = end example boxed-title.tex


On 29 Jan 2017, at 23:04, Fabrice Couvreur <fabrice1.couvreur@gmail.com> wrote:

Hello Kavian,
Thank you for = your answer, it's good for the parentheses. For the command, I found only this which does not = exactly answer what I want to do.
Fabrice


\defineenumeration
  [ex]
  [text=3D{Exercice},
   = headcommand=3D\EXFRAME,
   titleleft=3D,
   titleright=3D,
   = title=3Dyes,
   width=3Dfit,
   numberconversionset=3DACCONVERSION,
   alternative=3Dtop,
   = number=3Dyes]

2017-01-29 12:02 GMT+01:00 Otared = Kavian <otared@gmail.com>:
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


___________________________________________________________________________________
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
_______________________________________________________________= ____________________

= --Apple-Mail=_D54FABBF-FA43-4824-A4B1-AA09BAA5EF5C-- --===============7111543996914280336== 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 --===============7111543996914280336==--