From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/21621 Path: news.gmane.org!not-for-mail From: Eugene Toporov Newsgroups: gmane.comp.tex.context Subject: Position margin text block near previous paragraph Date: Tue, 26 Jul 2005 20:17:54 +0300 Message-ID: Reply-To: Eugene Toporov , mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1103792107==" X-Trace: sea.gmane.org 1122398340 9430 80.91.229.2 (26 Jul 2005 17:19:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Jul 2005 17:19:00 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 26 19:18:58 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DxT47-0006H1-Mz for gctc-ntg-context-518@m.gmane.org; Tue, 26 Jul 2005 19:18:03 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 46262127D0; Tue, 26 Jul 2005 19:18:03 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 20364-05; Tue, 26 Jul 2005 19:17:58 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B84A7127B1; Tue, 26 Jul 2005 19:17:57 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 15CAE127B1 for ; Tue, 26 Jul 2005 19:17:57 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 20317-05-2 for ; Tue, 26 Jul 2005 19:17:56 +0200 (CEST) Original-Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.195]) by ronja.ntg.nl (Postfix) with ESMTP id 90455127B0 for ; Tue, 26 Jul 2005 19:17:55 +0200 (CEST) Original-Received: by rproxy.gmail.com with SMTP id 1so39753rny for ; Tue, 26 Jul 2005 10:17:54 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=NKhz60Wx0joTyU1nRUHzEgLOwHfAR3jybr1smvFKH03CwjBVNlvwEhpcbC3dQkQb8YGILEDuvONB5TdeDHlDh/g85CKje1eRZfrGGXJF3KO+FUEdH7LQxR/Ekt8hcpR2qtYevjZ1NxDqlRUUn3G3BGk6J8V7dT1R4I1m0v1Jexk= Original-Received: by 10.11.119.52 with SMTP id r52mr12743cwc; Tue, 26 Jul 2005 10:17:54 -0700 (PDT) Original-Received: by 10.11.117.74 with HTTP; Tue, 26 Jul 2005 10:17:54 -0700 (PDT) Original-To: ntg-context@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:21621 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:21621 --===============1103792107== Content-Type: multipart/alternative; boundary="----=_Part_1275_7654227.1122398274299" ------=_Part_1275_7654227.1122398274299 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello! This time I have a task like this: I have margin text blocks (like Note, Tip) that follow some paragraph in my= =20 document flow.=20 In the produced document I get them in margin, but vertically they are just= =20 below the paragraph (as in text flow)=20 I really need then to start exactly where the previous paragraph starts=20 (vertically). I.e. I need to move them several (unknown number) lines=20 higher. My realization: \setupinmargin[style=3D\sl\tx\setupinterlinespace,location=3Dleft,align=3Dr= ight] \def\Note#1{ \strut \inmargin{ \em{#1} } \strut} \starttext This is the para with unknown length that can be any number of lines high.= =20 And I have a note below it that should be located to the left of this=20 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= =20 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 --=20 Regards. Eugene Toporov ------=_Part_1275_7654227.1122398274299 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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=3D\sl\tx\setupinterlinespace,location=3Dleft,align=3Dr= ight]
\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 ------=_Part_1275_7654227.1122398274299-- --===============1103792107== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --===============1103792107==--