From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Is this possible for the Frames
Date: Fri, 18 Oct 2013 14:56:29 +0200 [thread overview]
Message-ID: <9102B569-1B5E-401D-B5B8-C7006E434EA4@gmail.com> (raw)
In-Reply-To: <6C9B92A4-9818-427B-A6EB-9CCB78841E30@uni-trier.de>
Am 18.10.2013 um 11:25 schrieb "Keith J. Schultz" <schultzk@uni-trier.de>:
> Hi everbody,
>
> I would like to do some very special settings using frames possibly structures to!
>
> NMW
> % declartion of MyFarme and setup
> \defineframed[MyFrame][framed]
> \setupframed[MyFrame][\rulethickness=3pt, frameoffset=.8 rulethickness]
> …
> startext
>
>
> \MyFrame[\rulethickness=3pt{What goes into the frame}
> stop
>
> I would like to adjust the frameoffset according to the value of \rulethickness,
> to be exact I would prefer using a command that calulates a value.
>
> How do I go about it. According to the Manuals and the Wiki I can use a command
>
> How can I access rulethickness in such a manner?
>
> I know I could right a command in lua that injects the proper output into the TeX stream,
> but I am afraid that the the side effects.
>
> Could do it in TeX to, but I am not that comfortable with TeX and processing key values therein.
>
> Any help and ideas appreciated.
\defineframed
[MyFrame]
[rulethickness=3pt,
frameoffset=\dimexpr\framedparameter{rulethickness}*3/10\relax]
\starttext
\MyFrame{What goes into the frame}
\blank
\MyFrame[rulethickness=1pt]{What goes into the frame}
\blank
\MyFrame[rulethickness=10pt]{What goes into the frame}
\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:[~2013-10-18 12:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-18 9:25 Keith J. Schultz
2013-10-18 12:56 ` Wolfgang Schuster [this message]
2013-10-21 6:41 ` Keith J. Schultz
2013-10-21 7:38 ` Keith J. Schultz
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=9102B569-1B5E-401D-B5B8-C7006E434EA4@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).