[NTG-context] Logo in the margin at the bottom of the page

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Thu Aug 16 18:14:55 CEST 2018



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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20180816/71c20b0c/attachment.html>


More information about the ntg-context mailing list