From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Frame and rulethickness
Date: Sat, 28 Mar 2015 12:44:48 +0100 [thread overview]
Message-ID: <37A94FCF-4061-485E-9577-499E592DC96C@gmail.com> (raw)
In-Reply-To: <CACyK-ep-x8eWTMShscRo3nQSwzP0qv8LWVKkNF46Bp6o+WjTPw@mail.gmail.com>
> Am 28.03.2015 um 12:06 schrieb Fabrice Couvreur <fabrice1.couvreur@gmail.com>:
>
> Hi,
> Is it possible to have a different line thickness right and bottom ?
> Best regards,
> Fabrice
>
>
> \defineframed
> [ACFRAME]
> [topframe=off,
> bottomframe=on,
> rightframe=off,
> leftframe=on,
> framecolor=green,
> rulethickness=2pt,
> width=fit,
> align=flushleft,
> location=low,
> background=color,
> backgroundcolor=lightgray]
>
> \defineenumeration
> [exemple]
> [text={Exemple},
> headstyle={\bf\feature[+][f:smallcaps]},
> headcommand=\ACFRAME,
> numberconversionset=ACCONVERSION,
> inbetween={\blank[big]},
> ]
>
> \starttext
> \startexemple
> \dorecurse{10}{blabla}
> \stopexemple
> \stoptext
Use MetaPost.
\startuseMPgraphic{ACFRAME}
fill OverlayBox withcolor \MPcolor{lightgray} ;
draw leftboundary OverlayBox withpen pencircle scaled 2pt withcolor \MPcolor{green} ;
draw rightboundary OverlayBox withpen pencircle scaled 3pt withcolor \MPcolor{green} ;
draw bottomboundary OverlayBox withpen pencircle scaled 1pt withcolor \MPcolor{green} ;
clip currentpicture to OverlayBox leftenlarged 1pt rightenlarged 1.5pt bottomenlarged 0.5pt ;
\stopuseMPgraphic
\defineoverlay[ACFRAME][\useMPgraphic{ACFRAME}]
\defineframed
[ACFRAME]
[frame=off,
background=ACFRAME]
\starttext
\ACFRAME{ Example }
\stoptext
Wolfgang
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2015-03-28 11:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-28 11:06 Fabrice Couvreur
2015-03-28 11:44 ` Wolfgang Schuster [this message]
2015-03-29 9:25 ` Fabrice
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=37A94FCF-4061-485E-9577-499E592DC96C@gmail.com \
--to=schuster.wolfgang@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).