* How to typeset a line as if it had zero height
@ 2016-08-02 20:16 Joseph Canedo
2016-08-02 21:40 ` Henri Menke
0 siblings, 1 reply; 4+ messages in thread
From: Joseph Canedo @ 2016-08-02 20:16 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 652 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 2500 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to typeset a line as if it had zero height
2016-08-02 20:16 How to typeset a line as if it had zero height Joseph Canedo
@ 2016-08-02 21:40 ` Henri Menke
2016-08-03 14:11 ` Wolfgang Schuster
0 siblings, 1 reply; 4+ messages in thread
From: Henri Menke @ 2016-08-02 21:40 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-08-04 4:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-02 20:16 How to typeset a line as if it had zero height Joseph Canedo
2016-08-02 21:40 ` Henri Menke
2016-08-03 14:11 ` Wolfgang Schuster
[not found] ` <57a24a76.47cbc20a.13c7.3dde@mx.google.com>
2016-08-04 4:56 ` Wolfgang Schuster
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).