From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80292 Path: news.gmane.org!not-for-mail From: Devendra Ghate Newsgroups: gmane.comp.tex.context Subject: \margintext overflows in bottom margin Date: Thu, 17 Jan 2013 15:05:17 +0530 Message-ID: <50F7C5D5.7040607@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1049919957==" X-Trace: ger.gmane.org 1358415330 31317 80.91.229.3 (17 Jan 2013 09:35:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Jan 2013 09:35:30 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 17 10:35:49 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tvlsx-00059i-Jw for gctc-ntg-context-518@m.gmane.org; Thu, 17 Jan 2013 10:35:47 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 53740101E2; Thu, 17 Jan 2013 10:35:28 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 2K8azyZGr1YU; Thu, 17 Jan 2013 10:35:27 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id EEC96101E5; Thu, 17 Jan 2013 10:35:26 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 77053101E5 for ; Thu, 17 Jan 2013 10:35:25 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id j+9h2jCLg5g8 for ; Thu, 17 Jan 2013 10:35:24 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 8CAA2101E2 for ; Thu, 17 Jan 2013 10:35:24 +0100 (CET) Original-Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0H9Oovu001217 for ; Thu, 17 Jan 2013 10:24:51 +0100 Original-Received: by mail-pa0-f43.google.com with SMTP id fb10so1376674pad.30 for ; Thu, 17 Jan 2013 01:35:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=7LGpSyezPXLDEY1Q5T3U1TMKnBQTrrqiDr4JBgoMVV4=; b=Ak6ZtcEICthfqKeKb180FZwJK/Kn/ZRP8z5GSGaqd6kiGsLFwPe2Sk+AtVhe+FR054 4BvxF5lOsR7gERq9LhLkJkbWAvoCAaAOivwd9W7qWpuJJITdwmZVdZ6plIesmLYRNaZM stP0GmmPKuNofJ85pi6iZU+k07yrQ/e1Y5Ig7f/JbOUri/GnO+FqIaFhK1jjNd3hh+XL DPICZvKURuRMvCod3y2w57vL5Fzfd/CWw7EyqssT75Qo0pmUFNg26pYEfVulIi8vfhFY 9rrCyUEnV6TwE9ATImHKtXZ5CDvWh82OXQvdE8LaltSeiZbMbmMp6hER1zEVO2cr8Fsx l3Ng== X-Received: by 10.68.248.70 with SMTP id yk6mr11446906pbc.160.1358415321928; Thu, 17 Jan 2013 01:35:21 -0800 (PST) Original-Received: from [61.11.102.153] ([61.11.102.153]) by mx.google.com with ESMTPS id j1sm1021735pax.10.2013.01.17.01.35.19 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 17 Jan 2013 01:35:20 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.220.43; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WIMVoPGw - 327302d5e9cd - 20130117 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:80292 Archived-At: This is a multi-part message in MIME format. --===============1049919957== Content-Type: multipart/alternative; boundary="------------010902060505040200040302" This is a multi-part message in MIME format. --------------010902060505040200040302 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I am using*\margintext* for comments in the margin. When a comment falls on the last line of a page, I have to manually add *\setupmargintext[voffset=-2em] *everytime to stop it from flowing into bottom margin. Is there a way to automatically offset margin text to stop it from flowing into bottom margin. I took a look at *typo-mar.mkiv* to see if an option exists to correct this without any success. *MWE* \setuplayout[height=6cm,width=5cm,rightmargin=5cm] \unprotect % setup the side notes \setupmargindata [margintext] [location=outer, width=4.5cm, align=flushleft, stack=yes] \starttext \showframe A \crlf A\crlf A\crlf %\setupmargindata[margintext][voffset=-2em] A\margintext{A margin text.A margin text.A margin text.A margin text.} \stoptext Devendra --------------010902060505040200040302 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I am using \margintext for comments in the margin. When a comment falls on
the last line of a page, I have to manually add \setupmargintext[voffset=-2em]
everytime to stop it from flowing into bottom margin.
Is there a way to automatically offset margin text to stop it from flowing into bottom margin.
I took a look at typo-mar.mkiv to see if an option exists to correct this without any success.

MWE

\setuplayout[height=6cm,width=5cm,rightmargin=5cm]
\unprotect
% setup the side notes
\setupmargindata
    [margintext]
    [location=outer,
     width=4.5cm,
     align=flushleft,
     stack=yes]
    
\starttext
  \showframe
  A \crlf A\crlf A\crlf
 %\setupmargindata[margintext][voffset=-2em]
  A\margintext{A margin text.A margin text.A margin text.A margin text.}
\stoptext

Devendra
--------------010902060505040200040302-- --===============1049919957== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1049919957==--