ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Logo in the margin at the bottom of the page
@ 2018-08-14 10:13 Fabrice Couvreur
  2018-08-14 10:18 ` Henri Menke
  2018-08-14 11:11 ` Henning Hraban Ramm
  0 siblings, 2 replies; 8+ messages in thread
From: Fabrice Couvreur @ 2018-08-14 10:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 618 bytes --]

Hello,
I wish to place a small logo at the bottom of the page.
It works almost but it is not very well adjusted.
How to cure it ?
Thank you.
fabrice

\showframe
\useMPlibrary[dum]
\setuplayout
  [height=middle,
   width=middle,
   backspace=2cm,
   topspace=10mm,
   bottomspace=10mm,
   header=10mm,
   footer=10mm,
   footerdistance=10mm,
   headerdistance=10mm]

\setupfootertexts
    [margin]
    []
    [{\externalfigure[dummy][width=\marginwidth,height=\footerheight]}]
    []
    [{\externalfigure[dummy][width=\marginwidth,height=\footerheight]}]

    \starttext
    \dorecurse{10}{\page[dummy]}
    \stoptext

[-- Attachment #1.2: Type: text/html, Size: 2017 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Logo in the margin at the bottom of the page
  2018-08-14 10:13 Logo in the margin at the bottom of the page Fabrice Couvreur
@ 2018-08-14 10:18 ` Henri Menke
  2018-08-14 10:50   ` Fabrice Couvreur
  2018-08-14 11:11 ` Henning Hraban Ramm
  1 sibling, 1 reply; 8+ messages in thread
From: Henri Menke @ 2018-08-14 10:18 UTC (permalink / raw)
  To: ntg-context



On 14/08/18 22:13, Fabrice Couvreur wrote:
> Hello,
> I wish to place a small logo at the bottom of the page.
> It works almost but it is not very well adjusted.
> How to cure it ?
> Thank you.
> fabrice
> 
> \showframe
> \useMPlibrary[dum]
> \setuplayout
>    [height=middle,
>     width=middle,
>     backspace=2cm,
>     topspace=10mm,
>     bottomspace=10mm,
>     header=10mm,
>     footer=10mm,
>     footerdistance=10mm,
>     headerdistance=10mm]
> 

\setupfooter[margin][strut=no]

> \setupfootertexts
>      [margin]
>      []
>      [{\externalfigure[dummy][width=\marginwidth,height=\footerheight]}]
>      []
>      [{\externalfigure[dummy][width=\marginwidth,height=\footerheight]}]
> 
>      \starttext
>      \dorecurse{10}{\page[dummy]}
>      \stoptext
> 
> 
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
> 
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Logo in the margin at the bottom of the page
  2018-08-14 10:18 ` Henri Menke
@ 2018-08-14 10:50   ` Fabrice Couvreur
  2018-08-15  4:10     ` Henri Menke
  0 siblings, 1 reply; 8+ messages in thread
From: Fabrice Couvreur @ 2018-08-14 10:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2736 bytes --]

Hi Henri,
Thank you for your suggestion.
However, I believe that my way of doing should not be the best because
fixing width=\marginwidth the image is cropped.
Fabrice


\showframe
\useMPlibrary[dum]
\setuplayout
  [height=middle,
   width=middle,
   backspace=2cm,
   topspace=10mm,
   bottomspace=10mm,
   header=10mm,
   footer=10mm,
   footerdistance=10mm,
   headerdistance=10mm]

\setupfooter[margin][strut=no]

\setupfootertexts
    [margin]
    []
    [{\externalfigure[dummy][width=,height=\footerheight]}]
    []
    [{\externalfigure[dummy][width=\marginwidth,height=\footerheight]}]

    \starttext
    \dorecurse{10}{\page[dummy]}
    \stoptext


Le mar. 14 août 2018 à 12:18, Henri Menke <henrimenke@gmail.com> a écrit :

>
>
> On 14/08/18 22:13, Fabrice Couvreur wrote:
> > Hello,
> > I wish to place a small logo at the bottom of the page.
> > It works almost but it is not very well adjusted.
> > How to cure it ?
> > Thank you.
> > fabrice
> >
> > \showframe
> > \useMPlibrary[dum]
> > \setuplayout
> >    [height=middle,
> >     width=middle,
> >     backspace=2cm,
> >     topspace=10mm,
> >     bottomspace=10mm,
> >     header=10mm,
> >     footer=10mm,
> >     footerdistance=10mm,
> >     headerdistance=10mm]
> >
>
> \setupfooter[margin][strut=no]
>
> > \setupfootertexts
> >      [margin]
> >      []
> >      [{\externalfigure[dummy][width=\marginwidth,height=\footerheight]}]
> >      []
> >      [{\externalfigure[dummy][width=\marginwidth,height=\footerheight]}]
> >
> >      \starttext
> >      \dorecurse{10}{\page[dummy]}
> >      \stoptext
> >
> >
> >
> ___________________________________________________________________________________
> > 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://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > wiki     : http://contextgarden.net
> >
> ___________________________________________________________________________________
> >
>
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________

[-- Attachment #1.2: Type: text/html, Size: 5958 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Logo in the margin at the bottom of the page
  2018-08-14 10:13 Logo in the margin at the bottom of the page Fabrice Couvreur
  2018-08-14 10:18 ` Henri Menke
@ 2018-08-14 11:11 ` Henning Hraban Ramm
  2018-08-14 21:31   ` Fabrice Couvreur
  1 sibling, 1 reply; 8+ messages in thread
From: Henning Hraban Ramm @ 2018-08-14 11:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 2018-08-14 um 12:13 schrieb Fabrice Couvreur <fabrice1.couvreur@gmail.com>:

> Hello,
> I wish to place a small logo at the bottom of the page. 
> It works almost but it is not very well adjusted.
> How to cure it ?

Salut,
while the footer text approach may be viable, I’d use layers for exact placement.
http://wiki.contextgarden.net/Layers

Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD


___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Logo in the margin at the bottom of the page
  2018-08-14 11:11 ` Henning Hraban Ramm
@ 2018-08-14 21:31   ` Fabrice Couvreur
  0 siblings, 0 replies; 8+ messages in thread
From: Fabrice Couvreur @ 2018-08-14 21:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1238 bytes --]

Hi Hraban,
It seems a little more complicated but I have never used the layers.
Fabrice

Le mar. 14 août 2018 à 13:11, Henning Hraban Ramm <texml@fiee.net> a écrit :

> Am 2018-08-14 um 12:13 schrieb Fabrice Couvreur <
> fabrice1.couvreur@gmail.com>:
>
> > Hello,
> > I wish to place a small logo at the bottom of the page.
> > It works almost but it is not very well adjusted.
> > How to cure it ?
>
> Salut,
> while the footer text approach may be viable, I’d use layers for exact
> placement.
> http://wiki.contextgarden.net/Layers
>
> Greetlings, Hraban
> ---
> https://www.fiee.net
> http://wiki.contextgarden.net
> https://www.dreiviertelhaus.de
> GPG Key ID 1C9B22FD
>
>
>
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________

[-- Attachment #1.2: Type: text/html, Size: 2760 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Logo in the margin at the bottom of the page
  2018-08-14 10:50   ` Fabrice Couvreur
@ 2018-08-15  4:10     ` Henri Menke
  2018-08-16  9:20       ` Fabrice Couvreur
  0 siblings, 1 reply; 8+ messages in thread
From: Henri Menke @ 2018-08-15  4:10 UTC (permalink / raw)
  To: ntg-context

You have to use the correct margin width, i.e. \rightmarginwidth in the 
right margin and vice versa in the left margin.  You should also scale 
the margins to fit in the backspace/cutspace because by default they 
don't and run off the paper.

\showframe
\useMPlibrary[dum]
\setuplayout
   [height=middle,
    width=middle,
    backspace=2cm,
    topspace=10mm,
    bottomspace=10mm,
    header=10mm,
    footer=10mm,
    footerdistance=10mm,
    headerdistance=10mm,
 
leftmargin=\dimexpr\layoutparameter{backspace}-\layoutparameter{leftmargindistance}\relax,
 
cutspace=\dimexpr\layoutparameter{rightmargin}+\layoutparameter{rightmargindistance}\relax]

\setupfooter[margin][strut=no]

\setupfootertexts
   [margin]
   []
   [{\externalfigure[dummy][width=\rightmarginwidth,height=\footerheight]}]
   []
   [{\externalfigure[dummy][width=\leftmarginwidth,height=\footerheight]}]

\starttext
\dorecurse{10}{\page[dummy]}
\stoptext


On 14/08/18 22:50, Fabrice Couvreur wrote:
> Hi Henri,
> Thank you for your suggestion.
> However, I believe that my way of doing should not be the best because 
> fixing width=\marginwidth the image is cropped.
> Fabrice
> 
> 
> \showframe
> \useMPlibrary[dum]
> \setuplayout
>    [height=middle,
>     width=middle,
>     backspace=2cm,
>     topspace=10mm,
>     bottomspace=10mm,
>     header=10mm,
>     footer=10mm,
>     footerdistance=10mm,
>     headerdistance=10mm]
> 
> \setupfooter[margin][strut=no]
> 
> \setupfootertexts
>      [margin]
>      []
>      [{\externalfigure[dummy][width=,height=\footerheight]}]
>      []
>      [{\externalfigure[dummy][width=\marginwidth,height=\footerheight]}]
> 
>      \starttext
>      \dorecurse{10}{\page[dummy]}
>      \stoptext
> 
> 
> Le mar. 14 août 2018 à 12:18, Henri Menke <henrimenke@gmail.com 
> <mailto:henrimenke@gmail.com>> a écrit :
> 
> 
> 
>     On 14/08/18 22:13, Fabrice Couvreur wrote:
>      > Hello,
>      > I wish to place a small logo at the bottom of the page.
>      > It works almost but it is not very well adjusted.
>      > How to cure it ?
>      > Thank you.
>      > fabrice
>      >
>      > \showframe
>      > \useMPlibrary[dum]
>      > \setuplayout
>      >    [height=middle,
>      >     width=middle,
>      >     backspace=2cm,
>      >     topspace=10mm,
>      >     bottomspace=10mm,
>      >     header=10mm,
>      >     footer=10mm,
>      >     footerdistance=10mm,
>      >     headerdistance=10mm]
>      >
> 
>     \setupfooter[margin][strut=no]
> 
>      > \setupfootertexts
>      >      [margin]
>      >      []
>      >     
>     [{\externalfigure[dummy][width=\marginwidth,height=\footerheight]}]
>      >      []
>      >     
>     [{\externalfigure[dummy][width=\marginwidth,height=\footerheight]}]
>      >
>      >      \starttext
>      >      \dorecurse{10}{\page[dummy]}
>      >      \stoptext
>      >
>      >
>      >
>     ___________________________________________________________________________________
>      > If your question is of interest to others as well, please add an
>     entry to the Wiki!
>      >
>      > maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> /
>     http://www.ntg.nl/mailman/listinfo/ntg-context
>      > webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>      > archive  : https://bitbucket.org/phg/context-mirror/commits/
>      > wiki     : http://contextgarden.net
>      >
>     ___________________________________________________________________________________
>      >
>     ___________________________________________________________________________________
>     If your question is of interest to others as well, please add an
>     entry to the Wiki!
> 
>     maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> /
>     http://www.ntg.nl/mailman/listinfo/ntg-context
>     webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>     archive  : https://bitbucket.org/phg/context-mirror/commits/
>     wiki     : http://contextgarden.net
>     ___________________________________________________________________________________
> 
> 
> 
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
> 
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Logo in the margin at the bottom of the page
  2018-08-15  4:10     ` Henri Menke
@ 2018-08-16  9:20       ` Fabrice Couvreur
  2018-08-16 16:14         ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Fabrice Couvreur @ 2018-08-16  9:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1.1: Type: text/plain, Size: 6805 bytes --]

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

\setuppagenumbering[alternative=doublesided,location=]

  \showframe

  \definelayout
    [firstpage]
    [topspace=10mm,
     header=10mm,
     footer=10mm,
     height=middle,
     backspace=20mm,
     width=middle]

  \definelayout
    [first]
    [firstpage]

  \setuplayout
   [topspace=10mm,
    header=\zeropoint,
    footer=10mm,
    height=middle,
    backspace=20mm,
    width=middle]

  \setupbackgrounds
   [header]
   [text]
   [frame=off,
    topframe=on,
    bottomframe=on,
    framecolor=,
    rulethickness=1pt]

  \setupinteraction[state=start]

  \setupfooter[margin][strut=no]

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

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

  \starttext
   \dorecurse{20}{\input knuth}
  \stoptext


[image: logo.png]

Le mer. 15 août 2018 à 06:10, Henri Menke <henrimenke@gmail.com> a écrit :

> You have to use the correct margin width, i.e. \rightmarginwidth in the
> right margin and vice versa in the left margin.  You should also scale
> the margins to fit in the backspace/cutspace because by default they
> don't and run off the paper.
>
> \showframe
> \useMPlibrary[dum]
> \setuplayout
>    [height=middle,
>     width=middle,
>     backspace=2cm,
>     topspace=10mm,
>     bottomspace=10mm,
>     header=10mm,
>     footer=10mm,
>     footerdistance=10mm,
>     headerdistance=10mm,
>
>
> leftmargin=\dimexpr\layoutparameter{backspace}-\layoutparameter{leftmargindistance}\relax,
>
>
> cutspace=\dimexpr\layoutparameter{rightmargin}+\layoutparameter{rightmargindistance}\relax]
>
> \setupfooter[margin][strut=no]
>
> \setupfootertexts
>    [margin]
>    []
>    [{\externalfigure[dummy][width=\rightmarginwidth,height=\footerheight]}]
>    []
>    [{\externalfigure[dummy][width=\leftmarginwidth,height=\footerheight]}]
>
> \starttext
> \dorecurse{10}{\page[dummy]}
> \stoptext
>
>
> On 14/08/18 22:50, Fabrice Couvreur wrote:
> > Hi Henri,
> > Thank you for your suggestion.
> > However, I believe that my way of doing should not be the best because
> > fixing width=\marginwidth the image is cropped.
> > Fabrice
> >
> >
> > \showframe
> > \useMPlibrary[dum]
> > \setuplayout
> >    [height=middle,
> >     width=middle,
> >     backspace=2cm,
> >     topspace=10mm,
> >     bottomspace=10mm,
> >     header=10mm,
> >     footer=10mm,
> >     footerdistance=10mm,
> >     headerdistance=10mm]
> >
> > \setupfooter[margin][strut=no]
> >
> > \setupfootertexts
> >      [margin]
> >      []
> >      [{\externalfigure[dummy][width=,height=\footerheight]}]
> >      []
> >      [{\externalfigure[dummy][width=\marginwidth,height=\footerheight]}]
> >
> >      \starttext
> >      \dorecurse{10}{\page[dummy]}
> >      \stoptext
> >
> >
> > Le mar. 14 août 2018 à 12:18, Henri Menke <henrimenke@gmail.com
> > <mailto:henrimenke@gmail.com>> a écrit :
> >
> >
> >
> >     On 14/08/18 22:13, Fabrice Couvreur wrote:
> >      > Hello,
> >      > I wish to place a small logo at the bottom of the page.
> >      > It works almost but it is not very well adjusted.
> >      > How to cure it ?
> >      > Thank you.
> >      > fabrice
> >      >
> >      > \showframe
> >      > \useMPlibrary[dum]
> >      > \setuplayout
> >      >    [height=middle,
> >      >     width=middle,
> >      >     backspace=2cm,
> >      >     topspace=10mm,
> >      >     bottomspace=10mm,
> >      >     header=10mm,
> >      >     footer=10mm,
> >      >     footerdistance=10mm,
> >      >     headerdistance=10mm]
> >      >
> >
> >     \setupfooter[margin][strut=no]
> >
> >      > \setupfootertexts
> >      >      [margin]
> >      >      []
> >      >
> >     [{\externalfigure[dummy][width=\marginwidth,height=\footerheight]}]
> >      >      []
> >      >
> >     [{\externalfigure[dummy][width=\marginwidth,height=\footerheight]}]
> >      >
> >      >      \starttext
> >      >      \dorecurse{10}{\page[dummy]}
> >      >      \stoptext
> >      >
> >      >
> >      >
> >
>  ___________________________________________________________________________________
> >      > If your question is of interest to others as well, please add an
> >     entry to the Wiki!
> >      >
> >      > maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> /
> >     http://www.ntg.nl/mailman/listinfo/ntg-context
> >      > webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> >      > archive  : https://bitbucket.org/phg/context-mirror/commits/
> >      > wiki     : http://contextgarden.net
> >      >
> >
>  ___________________________________________________________________________________
> >      >
> >
>  ___________________________________________________________________________________
> >     If your question is of interest to others as well, please add an
> >     entry to the Wiki!
> >
> >     maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> /
> >     http://www.ntg.nl/mailman/listinfo/ntg-context
> >     webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> >     archive  : https://bitbucket.org/phg/context-mirror/commits/
> >     wiki     : http://contextgarden.net
> >
>  ___________________________________________________________________________________
> >
> >
> >
> >
> ___________________________________________________________________________________
> > 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://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > wiki     : http://contextgarden.net
> >
> ___________________________________________________________________________________
> >
>
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________

[-- Attachment #1.1.2: Type: text/html, Size: 11367 bytes --]

[-- Attachment #1.2: logo.png --]
[-- Type: image/png, Size: 60001 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Logo in the margin at the bottom of the page
  2018-08-16  9:20       ` Fabrice Couvreur
@ 2018-08-16 16:14         ` Wolfgang Schuster
  0 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2018-08-16 16:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Fabrice Couvreur


[-- Attachment #1.1: Type: text/plain, Size: 1631 bytes --]



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

[-- Attachment #1.2: Type: text/html, Size: 3042 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-08-16 16:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-14 10:13 Logo in the margin at the bottom of the page Fabrice Couvreur
2018-08-14 10:18 ` Henri Menke
2018-08-14 10:50   ` Fabrice Couvreur
2018-08-15  4:10     ` Henri Menke
2018-08-16  9:20       ` Fabrice Couvreur
2018-08-16 16:14         ` Wolfgang Schuster
2018-08-14 11:11 ` Henning Hraban Ramm
2018-08-14 21:31   ` Fabrice Couvreur

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).