ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
Subject: Re: Two minor questions
Date: Mon, 6 Jun 2022 17:46:16 +0200	[thread overview]
Message-ID: <fa4ac40c-05b3-58b6-8db9-64781df98ac1@gmail.com> (raw)
In-Reply-To: <CAGraPNcpSAu0Zsfuz=NX=N9VkBRD0PquockCOvH4A_zCZ0HuOQ@mail.gmail.com>


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

Stefan Nedeljkovic via ntg-context schrieb am 06.06.2022 um 07:55:
> Dear list,
>
> I have 2 small questions:
>
> 1. In \setuplayout if I try to set topspace=5\measured{base} + 
> \dimexpr2bp I get an error. How should I add these 2bp?

\setuplayout
   [topspace=\dimexpr 5\measured{base} + 2bp\relax]

> 2. I have an mp graphic defined in the file "graphic.mp 
> <http://graphic.mp>" which has the exact same dimensions as my page. 
> I'd like to set that graphic as a background. How do I do this?

\startreusableMPgraphic{backgroundgraphic}
     input graphic.mp;
\stopreusableMPgraphic

\defineoverlay [backgroundimage] [\reuseMPgraphic{backgroundgraphic}]

\setupbackgrounds [page] [background=backgroundimage]

Wolfgang


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

[-- Attachment #2: Type: text/plain, Size: 493 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
___________________________________________________________________________________

  reply	other threads:[~2022-06-06 15:46 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-06  5:55 Stefan Nedeljkovic via ntg-context
2022-06-06 15:46 ` Wolfgang Schuster via ntg-context [this message]
2022-06-06 15:50 ` Aditya Mahajan via ntg-context
2022-06-06 20:07   ` Stefan Nedeljkovic via ntg-context
2022-06-06 20:48     ` Wolfgang Schuster via ntg-context
2022-06-07  5:25       ` Stefan Nedeljkovic via ntg-context
2022-06-07 10:34         ` Stefan Nedeljkovic via ntg-context
2022-06-07 15:05         ` Wolfgang Schuster via ntg-context
2022-06-07 15:20           ` Stefan Nedeljkovic via ntg-context
2022-06-07 16:22             ` Stefan Nedeljkovic via ntg-context

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fa4ac40c-05b3-58b6-8db9-64781df98ac1@gmail.com \
    --to=ntg-context@ntg.nl \
    --cc=wolfgang.schuster.lists@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).