ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Renaud AUBIN <aubin@nibua-r.org>
To: ntg-context@ntg.nl
Subject: \inmargin / full textwidth line interaction (was  Toward the use of inleft…)
Date: Thu, 25 Nov 2010 21:27:22 +0100	[thread overview]
Message-ID: <4CEEC6AA.6030906@nibua-r.org> (raw)
In-Reply-To: <4CED5A51.6090705@nibua-r.org>

Since my previous post doesn't seem inspiring at all (sniff), here is a
simplified and more precise description of what need to be done:

1 − I need a full textwidth black line as separator with a short title
centered vertically at left
2 − This separator must be followed by text, and the inbetween vertical
space must be configurable (i.e. .5lineheight or a full lineheight
doesn't satisfy me)

My first idea has been to combine a vertically centered line with inleft
or inmargin but that introduces an annoying afterspace…
Another idea could be to combine some \hairlines or full textwidth
fillinline but then don't know how to vertically align my inmargin text…

−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− TEST
\setuplayout[reset]
\setuplayout[
  location=singlesided,
  leftedge=0mm,
  leftmargin=25mm,
  rightedge=0mm,
  rightmargin=0mm,
  backspace=40mm,
  topspace=10mm,
  bottomspace=10mm,
  header=0mm,
  headerdistance=0mm,
  footer=0mm,
  footerdistance=0mm,
  margindistance=0mm,
  height=fit,
  width=fit,
  grid=yes]

\setuppagenumbering[state=stop]

\setupinmargin[style=normal,align=outer]

\starttext

\inmargin{blurp}{\line{\leaders\hbox{\vrule width 1pt height .5\strutht
depth -\dimexpr.5\strutht-\linewidth\relax} \hfil}}
This is not a test

\stoptext
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2010-11-25 20:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-24 18:32 Toward the use of inleft for custom section's command… or not… Renaud AUBIN
2010-11-25 20:27 ` Renaud AUBIN [this message]
2010-11-26 10:52   ` \inmargin / full textwidth line interaction (was Toward the use of inleft…) Wolfgang Schuster
2010-11-26 19:25     ` BUG? Strange behavior (vertical space added!!!) with accentuated letters (was \inmargin / full textwidth line interaction) Renaud AUBIN
2010-11-26 21:06       ` Renaud AUBIN
2010-11-27  8:17       ` Otared Kavian
2010-11-27  8:57         ` Strange behavior (vertical space added!!!) with accentuated letters Wolfgang Schuster
2010-11-27 12:03           ` Renaud AUBIN

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=4CEEC6AA.6030906@nibua-r.org \
    --to=aubin@nibua-r.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).