ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Title without the parentheses
Date: Sun, 29 Jan 2017 12:02:11 +0100	[thread overview]
Message-ID: <3C30066D-183B-4F0D-9008-50D95845B57D@gmail.com> (raw)
In-Reply-To: <CACyK-eowpmFVxGrtpAu3KMyagwOU_SiqNFPUc2KnJA-rkVp-7g@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1345 bytes --]

Hi Fabrice,

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

\defineenumeration
  [ex]
  [text=Exercice,
   title=yes,
   titleleft=,
   titleright=,
   width=fit,
   numberconversionset=ACCONVERSION,
   alternative=top,
   number=yes]

In order to put the word « Exercice » in the frame you should define a special command, for instance \MyTextCommand and the say text = \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=off,
>    offset=0pt,
>    location=low,
>    width=\struttotal,
>    background=color,
>    backgroundcolor=darkred,
>    foregroundcolor=white,
>    forgroundstyle=bold]
> 
> \defineprocessor[ACPROCESSOR][command=\EXFRAME]
> \defineconversionset[ACCONVERSION][][ACPROCESSOR->n]
> 
> \defineenumeration
>   [ex]
>   [text=Exercice,
>    title=yes,
>    width=fit,
>    numberconversionset=ACCONVERSION,
>    alternative=top,
>    number=yes]
> 
> \starttext
> 
> \startex{Pour tous les candidats \hfill 5 points}
>   \input ward
> \stopex
> 
> \stoptext


[-- Attachment #1.2: Type: text/html, Size: 3596 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2017-01-29 11:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-29  8:07 Fabrice Couvreur
2017-01-29 11:02 ` Otared Kavian [this message]
2017-01-29 22:04   ` Fabrice Couvreur
2017-01-30 11:09     ` Otared Kavian
2017-01-30 13:54     ` Otared Kavian
2017-01-31 14:53       ` Fabrice Couvreur

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3C30066D-183B-4F0D-9008-50D95845B57D@gmail.com \
    --to=otared@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).