From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101628 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Logo in the margin at the bottom of the page Date: Thu, 16 Aug 2018 18:14:55 +0200 Message-ID: References: <8428f2b2-0e36-6822-6d0b-6ae46e45a2b0@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0456965657185979485==" X-Trace: blaine.gmane.org 1534436004 995 195.159.176.226 (16 Aug 2018 16:13:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 16 Aug 2018 16:13:24 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 PostboxApp/6.1.1 To: mailing list for ConTeXt users , Fabrice Couvreur Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 16 18:13:19 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fqKtj-0000AD-R1 for gctc-ntg-context-518@m.gmane.org; Thu, 16 Aug 2018 18:13:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 869EF51024; Thu, 16 Aug 2018 18:15:10 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HA2wz1gOWNHV; Thu, 16 Aug 2018 18:15:09 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id BC79C5102F; Thu, 16 Aug 2018 18:15:09 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D6D3C5102F for ; Thu, 16 Aug 2018 18:15:08 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tdmuS-jj0Sh1 for ; Thu, 16 Aug 2018 18:15:08 +0200 (CEST) Original-Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 48F1A51024 for ; Thu, 16 Aug 2018 18:14:58 +0200 (CEST) Original-Received: by mail-ed1-f53.google.com with SMTP id s24-v6so2979693edr.8 for ; Thu, 16 Aug 2018 09:14:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=QgbmWyCSX/esszncVzftP/xWcn7gYyfOJ6FzS8j+gMc=; b=EDmy7e8UcVvi20nqSdjxDMLE9EzM0sG/JsafmlOUWY1WE1XgPNRIJskOIWyVkl/wOj JeaofwOcZddWiH4nnw93RZ9iMD3MIS/Hu9sCNuojJ8uYnKyqC1YE3V+KICphNe550Wv8 JOb8JHWyia+CqNjVnYFTqrwOrwf8gZCAC33qeQR3GvB1I8+rHlRpF8wb8f21Y7P2j7Bp qZTmTIxNLKJbg8fMMBZ3tTQsEJTPpG9/VTcfrPFLHOwk10usUjr/KhacQpxjbq1kk8U3 zSYne7NvTNlrHKtTCRQQBZpWgmT/BuiPxl0IcKdbsdMzWUWO5zdyaEsLvn0MbSxcsEwt CoTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=QgbmWyCSX/esszncVzftP/xWcn7gYyfOJ6FzS8j+gMc=; b=pal6ojHL3GUETZfsAN7FNeIbzlBFhuyQn3wYuOxhiC96Xug22iMcHHxR7ycldoBSC4 46E6lr+s/VgzbiJRitTFCz6lchYi4wLUbIavWbAryzI31L6bEi3xcuMJvnKUJV+htN49 p/uymd+YSLtUQX/Jqb/O881nEluSILifCk5jkmBzwO+KgRBDWQDYYAbgcweos/dDf9Nm NBF/MWMi/ikVh8cavrpcRzwJWKLo9r+C/v2fhWA09jN97W8Xs6tr8ZVQxFAMqQ6mzZnf ntDuZPsCbkB+LsluYESH9phZo3tvn9vckphr1GRw9MVLMbsxJeWVZW7JNpcczM0wmSY1 ulmg== X-Gm-Message-State: AOUpUlHLMKhNIKzusK661J1gbFCN/Xc7Rb8eC4orJuHJzShBQypvLhCg aU9t+ryOWB/J0Xk6Y/+2JRg= X-Google-Smtp-Source: AA+uWPwvbtUnvEx6SOxtJ2aCfBATjNC2xF0T7wfCF5doyhsn28D3lrMafokddVKVrmu1IQRxs70MRQ== X-Received: by 2002:a50:c9c3:: with SMTP id c3-v6mr39933316edi.56.1534436098010; Thu, 16 Aug 2018 09:14:58 -0700 (PDT) Original-Received: from [192.168.1.11] (x4e303fc8.dyn.telefonica.de. [78.48.63.200]) by smtp.gmail.com with ESMTPSA id h8-v6sm637025edi.68.2018.08.16.09.14.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Aug 2018 09:14:57 -0700 (PDT) In-Reply-To: Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:101628 Archived-At: This is a multi-part message in MIME format. --===============0456965657185979485== Content-Type: multipart/alternative; boundary="------------E1FE071D71DE6F03071327A1" Content-Language: en-US This is a multi-part message in MIME format. --------------E1FE071D71DE6F03071327A1 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Fabrice Couvreur schrieb am 16.08.18 um 11:20: > Hi Henry, > Sorry for the late response. In fact, I want a margin of 20 mm around > the text box. In addition, playing with the options weight = and > height = some images are distorted, including the one that I join. > Thank you > Fabrice > > [...] > > \setupfooter[margin][strut=no] This has no effect because the strut for the pagenumber text effects all entries in the footer area. The following example to demonstrates this (line 2): \starttext \ruledhbox to \hsize{\hbox{A}\hss\hbox{B}} \ruledhbox to \hsize{\hbox{\strut A}\hss\hbox{B}} \ruledhbox to \hsize{\hbox{Q}\hss\hbox{B}} \ruledhbox to \hsize{\hbox{\smash[d]{Q}}\hss\hbox{B}} \stoptext > \setupfootertexts > [margin] > [] > [{\externalfigure[logo.png][height=]}] > [] > [{\externalfigure[logo.png][height=]}] \setupfootertexts[{Page \pagenumber\ of \goto{\lastpagenumber}[lastpage]}] \setupfootertexts [margin] [] [{\offset[y=\strutdp]{\externalfigure[logo.png][factor=max]}}] [] [{\offset[y=\strutdp]{\externalfigure[logo.png][factor=max]}}] or \setupfooter[strut=no] \setupfootertexts[\undepthed{Page \pagenumber\ of \goto{\lastpagenumber}[lastpage]}] \setupfootertexts [margin] [] [{\externalfigure[logo.png][factor=max]}] [] [{\externalfigure[logo.png][factor=max]}] or \setupfooter[strut=no] \setupfootertexts[{\framed[frame=off,offset=0pt]{Page \pagenumber\ of \goto{\lastpagenumber}[lastpage]}}] \setupfootertexts [margin] [] [{\externalfigure[logo.png][factor=max]}] [] [{\externalfigure[logo.png][factor=max]}] Wolfgang --------------E1FE071D71DE6F03071327A1 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

Fabrice Couvreur schrieb am 16.08.18 um 11:20:
Hi Henry,
Sorry for the late response. In fact, I want a margin of 20 mm around the text box. In addition, playing with the options weight = and height = some images are distorted, including the one that I join.
Thank you
Fabrice

[...]

  \setupfooter[margin][strut=no]

This has no effect because the strut for the pagenumber text effects all entries in the footer area.

The following example to demonstrates this (line 2):

\starttext

\ruledhbox to \hsize{\hbox{A}\hss\hbox{B}}

\ruledhbox to \hsize{\hbox{\strut A}\hss\hbox{B}}

\ruledhbox to \hsize{\hbox{Q}\hss\hbox{B}}

\ruledhbox to \hsize{\hbox{\smash[d]{Q}}\hss\hbox{B}}

\stoptext

  \setupfootertexts
    [margin]
    []
    [{\externalfigure[logo.png][height=]}]
    []
    [{\externalfigure[logo.png][height=]}]


\setupfootertexts[{Page \pagenumber\ of \goto{\lastpagenumber}[lastpage]}]

\setupfootertexts
  [margin]
  []
  [{\offset[y=\strutdp]{\externalfigure[logo.png][factor=max]}}]
  []
  [{\offset[y=\strutdp]{\externalfigure[logo.png][factor=max]}}]


or


\setupfooter[strut=no]

\setupfootertexts[\undepthed{Page \pagenumber\ of \goto{\lastpagenumber}[lastpage]}]

\setupfootertexts
  [margin]
  []
  [{\externalfigure[logo.png][factor=max]}]
  []
  [{\externalfigure[logo.png][factor=max]}]


or


\setupfooter[strut=no]

\setupfootertexts[{\framed[frame=off,offset=0pt]{Page \pagenumber\ of \goto{\lastpagenumber}[lastpage]}}]

\setupfootertexts
  [margin]
  []
  [{\externalfigure[logo.png][factor=max]}]
  []
  [{\externalfigure[logo.png][factor=max]}]


Wolfgang
--------------E1FE071D71DE6F03071327A1-- --===============0456965657185979485== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============0456965657185979485==--