From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86420 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Hanging punctuation misalignment in footnotes Date: Sun, 23 Feb 2014 19:50:44 +0100 Message-ID: References: <00c101cf2f5a$dccfc600$966f5200$@tosovsky@tiscali.cz> <5307ee93.437e0e0a.70d2.413eSMTPIN_ADDED_BROKEN@mx.google.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1393181453 13048 80.91.229.3 (23 Feb 2014 18:50:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Feb 2014 18:50:53 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Feb 23 19:51:03 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WHe8l-0002zk-7F for gctc-ntg-context-518@m.gmane.org; Sun, 23 Feb 2014 19:51:03 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 58EAC101E1; Sun, 23 Feb 2014 19:51:02 +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 W+GgiugmOMty; Sun, 23 Feb 2014 19:51:00 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 59989101E3; Sun, 23 Feb 2014 19:51:00 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B9981101E3 for ; Sun, 23 Feb 2014 19:50:58 +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 t30Hq81+IXGY for ; Sun, 23 Feb 2014 19:50:57 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 4E244101E1 for ; Sun, 23 Feb 2014 19:50:47 +0100 (CET) Original-Received: from mail-bk0-x22f.google.com (mail-bk0-x22f.google.com [IPv6:2a00:1450:4008:c01::22f]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s1NJ662j019961 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sun, 23 Feb 2014 20:06:06 +0100 Original-Received: by mail-bk0-f47.google.com with SMTP id d7so1611642bkh.34 for ; Sun, 23 Feb 2014 10:50:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=PRoc643B573f33fCVHA5eeWkn3hWIjnZA2Dyz/lKedU=; b=WI4Am9w3up/Hw5ix7Hx7BCrOcSR0x6EE5U0+JUNSW4nydHHz/uIpjq6VjdF/GG3JkT RPp97VzJ5+oiB2Si0YetRSMOUgctH7xeGymUbEtbMrJSMKqL24V4CvQ50MsXPGspoA5d 6ysTrvVqZRdqOUFt1m0gKj51UOo14pGk52hLPJS57xxgyiRo7po2QgKuly7gfwy81/wn wBfZo6PkPw9RXAUm2MvfAw32x1ndQYKJiZEpvgSOZf207iur7husbAg5kVC2wNpk9RHf nwEYryJr/Al1ElnNZpq8tBQMLixsnnecvm16zpdr2Ur19jX1rtKY9iRAcQ6OPnGtSfG0 UY9Q== X-Received: by 10.205.20.202 with SMTP id qp10mr4066309bkb.100.1393181446746; Sun, 23 Feb 2014 10:50:46 -0800 (PST) Original-Received: from keima.localdomain (x2f22143.dyn.telefonica.de. [2.242.33.67]) by mx.google.com with ESMTPSA id yt4sm13244686bkb.7.2014.02.23.10.50.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 23 Feb 2014 10:50:45 -0800 (PST) In-Reply-To: <5307ee93.437e0e0a.70d2.413eSMTPIN_ADDED_BROKEN@mx.google.com> X-Mailer: Apple Mail (2.1827) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:4008:c01::22f; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01LtT66iu - 6b14edc284ac - 20140223 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:86420 Archived-At: Am 22.02.2014 um 01:25 schrieb Jan Tosovsky : > On 2014-02-22 Jan Tosovsky wrote: >> = >> when hanging in footnotes is enabled and the starting character is a >> punctuation, it is not protruded. However, the same character in the >> footnote body works fine. When both cases are close each other, it >> looks weird, see the screenshot: >> = >> http://drifted.in/other/footnote_alignment.png >> = >> Would it be possible make this behaviour uniform - either do not >> protrude it >> on the starting (left) edge or protrude it everywhere? >> = > = > A minimal example is available at = > http://drifted.in/other/sample.tex There are two things which prevent the protrusion of the opening quote at t= he begin of the paragraph. One of these can be avoided with a change in the= setup for footnotes but not the other without destroying the layout of the= footnote text. One problem is the way how context places the footnote number in front of t= he text, by default context uses the \llap command to move the number into = the left margin but this prevents also the protrusion of the opening quote.= You can avoid this problem when you change the footnote setup to \setupnot= ation[footnote][alternative=3Dmargin]. \definefontfeature[default][default][expansion=3Dquality,protrusion=3Dquali= ty] \setupbodyfont[modern] \setupalign[hanging] \showframe[text][text] \starttext =BBText=AB \noindent\hbox to 0pt{}=BBText=AB \noindent\hbox to 0pt{\hss}=BBText=AB \stoptext The second problem which prevents the opening quote to protrude are the str= uts which are added by context at the begin and end of the footnote content= and there is no way to disable them because they are needed to have proper= spacing between the individual footnote texts on the same page. \definefontfeature[default][default][expansion=3Dquality,protrusion=3Dquali= ty] \setupbodyfont[modern] \setupalign[hanging] \showframe[text][text] \starttext =BBText=AB \strut =BBText=AB \stoptext In the example below where I took care of these two problems (don=92t take = care of \begstrut in this way in your real document because it will cause m= any problems, it=92s just for educational purpose) to show you this is what= caused the unwanted output. \definefontfeature[default][default][expansion=3Dquality,protrusion=3Dquali= ty] \setupbodyfont[modern] \setupalign[hanging] \showframe[text][text] \setupnotation[footnote][alternative=3Dmargin,align=3Dhanging] \starttext \let\begstrut\relax First Footnote.\footnote{=BB\input{ward}=AB} Second Footnote.\footnote{=BB\input{ward}=AB} \stoptext Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________