From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: Benjamin Buchmuller <benjamin.buchmuller@gmail.com>
Cc: NTG-Context ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Changing default rule thickness (globally)
Date: Sat, 28 Mar 2020 16:27:31 +0100 [thread overview]
Message-ID: <d2fb7cfd-7522-3a23-683e-b6d5ac84183e@gmail.com> (raw)
In-Reply-To: <0B43A82E-7B4D-4B92-A61E-49504B491898@gmail.com>
Benjamin Buchmuller schrieb am 25.03.2020 um 14:47:
> Thanks, perfect!
>
>> On 25 Mar 2020, at 14:34, Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> wrote:
>>
>> Benjamin Buchmuller schrieb am 25.03.2020 um 09:27:
>>> Hi!
>>> I would like to change the rule thickness that is used by default in ConTeXt. However, from the command documentation (http://www.pragma-ade.nl/general/qrcs/setup-en.pdf), I see that I would need to basically change this for
>>> [...]
>>> (And for \setupbackgrounds for [top header text footer bottom].) I’m sure there is a more elegant way to do this. But how?
>>
>> You can use \setuplinewidth[<DIMENSION>] to change the default value for all (there can be lines which have a fixed value) lines.
Just to be clear, the \setuplinewidth command sets only the value of the
\linewidth register and not the rulethickness value itself.
Most setups apply to the \linewidth value to rulethickness and this is
why \setuplinewidth affects all commands which do this.
\starttext
\starttabulate[|r|l|][EQ={=}]
\BC \tex{setuplinewidth[...]} \BC \tex{linewidth}
\NC\NR
\NC small \EQ \setuplinewidth[small] \the\linewidth
\NC\NR
\NC medium (default) \EQ \setuplinewidth[medium] \the\linewidth
\NC\NR
\NC big \EQ \setuplinewidth[big] \the\linewidth
\NC\NR
\NC 2pt \EQ \setuplinewidth[2pt] \the\linewidth
\NC\NR
\stoptabulate
\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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2020-03-28 15:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-25 8:27 Benjamin Buchmuller
2020-03-25 13:34 ` Wolfgang Schuster
[not found] ` <0B43A82E-7B4D-4B92-A61E-49504B491898@gmail.com>
2020-03-28 15:27 ` Wolfgang Schuster [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=d2fb7cfd-7522-3a23-683e-b6d5ac84183e@gmail.com \
--to=wolfgang.schuster.lists@gmail.com \
--cc=benjamin.buchmuller@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).