From: Henri Menke <henrimenke@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: How to typeset a line as if it had zero height
Date: Tue, 2 Aug 2016 23:40:52 +0200 [thread overview]
Message-ID: <51980bcd-b44a-a821-4c54-ca4277e2add5@gmail.com> (raw)
In-Reply-To: <57a0ff86.c310c20a.42ec2.6f7d@mx.google.com>
Joseph,
I have come up with this very plain TeXy solution.
Cheers, Henri
---
\starttext
\startsection[title=Section]
\dontleavehmode% manually start a paragraph (smash does not)
\smash{% remove height
\rlap{% remove width
\raise \baselineskip \hbox to \textwidth{% shift one line back
\rightaligned{Line}% typset right aligned
}%
}%
}%
\input knuth
\stopsection
\stoptext
On 08/02/2016 10:16 PM, Joseph Canedo wrote:
> Dear all,
>
>
>
> I have this simple MWE :
>
>
>
> \starttext
>
> \startsection[title=Section]
>
> \startalignment[flushright]Line.\stopalignment %% how to make this « 0 height » ?
>
> \input knuth
>
> \stopsection
>
> \stoptext
>
>
>
> How can I, with ConTeXt or plain TeX, modify this simple example to typeset the text above as if the right aligned line (‘Line’ just below the section) had 0 height (ie the main paragraph with knuth quot is just after the section without blank line) ? By « 0 height » I mean it takes no vertical space but it is still typeset.
>
>
>
> I hope my question makes sense.
>
> Thanks a lot for any insiight.
>
>
>
> Best regards
>
>
>
> Joseph Canedo
>
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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:[~2016-08-02 21:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-02 20:16 Joseph Canedo
2016-08-02 21:40 ` Henri Menke [this message]
2016-08-03 14:11 ` Wolfgang Schuster
[not found] ` <57a24a76.47cbc20a.13c7.3dde@mx.google.com>
2016-08-04 4:56 ` Wolfgang Schuster
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=51980bcd-b44a-a821-4c54-ca4277e2add5@gmail.com \
--to=henrimenke@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).