From: Eugene Toporov <eugene.toporov@gmail.com>
Subject: Position margin text block near previous paragraph
Date: Tue, 26 Jul 2005 20:17:54 +0300 [thread overview]
Message-ID: <ecca0b27050726101734df43d9@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1124 bytes --]
Hello!
This time I have a task like this:
I have margin text blocks (like Note, Tip) that follow some paragraph in my
document flow.
In the produced document I get them in margin, but vertically they are just
below the paragraph (as in text flow)
I really need then to start exactly where the previous paragraph starts
(vertically). I.e. I need to move them several (unknown number) lines
higher.
My realization:
\setupinmargin[style=\sl\tx\setupinterlinespace,location=left,align=right]
\def\Note#1{
\strut
\inmargin{
\em{#1}
}
\strut}
\starttext
This is the para with unknown length that can be any number of lines high.
And I have a note below it that should be located to the left of this
paragraph and not just below it. That's the case. \par
\Note{ And here is the note that should be in margin.}
\stoptext
The easiest would to put it above the target paragraph, but that's not the
solution for me as the same text is rendered to HTML where no margins exist.
Can I do it plainly in tex code?
Thanks a lot. I appreciate your help
--
Regards.
Eugene Toporov
[-- Attachment #1.2: Type: text/html, Size: 1299 bytes --]
[-- Attachment #2: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
next reply other threads:[~2005-07-26 17:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-26 17:17 Eugene Toporov [this message]
2005-07-27 7:50 ` Hans Hagen
2005-07-26 18:31 Elena Fraboschi
2005-07-26 21:47 ` Hans Hagen
2005-07-27 7:30 ` Taco Hoekwater
2005-07-26 22:13 Elena Fraboschi
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=ecca0b27050726101734df43d9@mail.gmail.com \
--to=eugene.toporov@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).