From: jbf <roma83537@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: short filler rule either side of a text
Date: Tue, 25 Aug 2020 11:32:02 +1000 [thread overview]
Message-ID: <e9a09850-a058-d65b-4854-a235d2c07b07@gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1160 bytes --]
I know it is possible to get a rule to act as a filler either side of,
say, a chapter head text by using \definefiller with alternative=rule
and, as explained in an earlier post
<https://tex.stackexchange.com/questions/497352/context-heading-text-surrounded-by-lines/497389#497389>,
define a left and right version. So, for example, for the left version:
\definefiller
[ChapterLeftRule]
[ChapterRule]
[left=\zerowidthnobreakspace,
right=\quad]
This gives me a rule that extends to the margins. What if I want the
rule to be, say, 2 cm either side of my centered header text? I tried
experimenting by replacing left=\zerowidthnobreakspace with
left=\quads[3] and that did shorten the rule somewhat, but when I did
the same for the other side, it did not balance correctly. So maybe I
need to deal with the 'left=' differently to achieve the desired
result... or try an entirely different method!
Of course, I don't want the rule at the baseline, but raised, as the
original stackexchange
<https://tex.stackexchange.com/questions/497352/context-heading-text-surrounded-by-lines/497389#497389>
example gives. Any clues?
Julian
[-- Attachment #1.2: Type: text/html, Size: 1522 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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:[~2020-08-25 1:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=e9a09850-a058-d65b-4854-a235d2c07b07@gmail.com \
--to=roma83537@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).