ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: juh <juh+ntg-context@mailbox.org>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: My own backgroundcolor in a frame
Date: Fri, 8 Mar 2019 17:20:42 +0100	[thread overview]
Message-ID: <20190308162042.y37t3qmfwxyyrstl@sokrates> (raw)
In-Reply-To: <e4fe4043b2fe45bebc00c379478ce5c9@univie.ac.at>

Am Fri, Mar 08, 2019 at 03:43:20PM +0000 schrieb Ursula Hermann:
> Dear List!
> 
> I have the following example:
> 
> \defineframedtext
>   [prettyblock]
>   [width=10cm,
>    indenting={yes, small},
>    background=color, backgroundcolor=lightgreen,
>    foreground=color, foregroundcolor=black ,
>    offset=2mm,
>    align=flushleft]
> 
> My problem is now:
> how can I write,  if I have an Rgb Color and I do not know the name. I have looked at the  list, but cannot  find the color.
> Can I say: background=color, backgroundcolor=rgb and put the numbers in (lets say: r=200, g=112, b=300)?
> Is that correct, or do I have to take a special way? Or do I have to define it?

I would define a color and use it:

\definecolor  [myblue]   [r=0.000, g=0.314, b=0.580]

You can use the color anywhere with "color=myblue".

juh

-- 
Autoren-Homepage: ......... http://literatur.hasecke.com
Satiren & Essays: ......... http://www.sudelbuch.de
Privater Blog: ............ http://www.hasecke.eu
Netzliteratur-Projekt: .... http://www.generationenprojekt.de


___________________________________________________________________________________
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:[~2019-03-08 16:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-08 15:43 Ursula Hermann
2019-03-08 16:20 ` juh [this message]

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=20190308162042.y37t3qmfwxyyrstl@sokrates \
    --to=juh+ntg-context@mailbox.org \
    --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).