From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/115202 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Wolfgang Schuster via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Two minor questions Date: Mon, 6 Jun 2022 17:46:16 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5144340099565412837==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4784"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/7.0.56 Cc: Wolfgang Schuster To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 06 17:46:57 2022 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nyEwS-0000pE-2z for gctc-ntg-context-518@m.gmane-mx.org; Mon, 06 Jun 2022 17:46:56 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DF92B2A1D85; Mon, 6 Jun 2022 17:46:25 +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 Nv4aFQn7s22V; Mon, 6 Jun 2022 17:46:24 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0D0F62A1D93; Mon, 6 Jun 2022 17:46:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B80B22A1D93 for ; Mon, 6 Jun 2022 17:46:21 +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 M81OwOfQBxGE for ; Mon, 6 Jun 2022 17:46:18 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.218.44; helo=mail-ej1-f44.google.com; envelope-from=wolfgang.schuster.lists@gmail.com; receiver= Original-Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id ABEC82A1D85 for ; Mon, 6 Jun 2022 17:46:18 +0200 (CEST) Original-Received: by mail-ej1-f44.google.com with SMTP id gl15so15898153ejb.4 for ; Mon, 06 Jun 2022 08:46:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=EGD0AZKejzT2h2nd329Xqgw4aHGXLoqMG25dZHCPr+M=; b=AeVF/c2B/7FP7ReBZcaYoQfNIncSkqMCWRNHlMtwGAEMj4bta5/MXQgs1nMQ0sWYjF M3tH9EtnhwPODyI4DsPOwvYhTR2Qf39q6Sr0aYKlSEfcl385d/TNCw03Dd0Fil26Ibdf yr3AjRTzCBmmhGwBWVtkjSWxAgyisue+kP74MoSx2pldyZu2sMLi0iTMe+YigWlZxWnw lNThPDvMhci9q7HbvgBtIdFhYMseOGGrHKs675u2kxoJS70CDPGDxaN1KWjHK75XNGXh 7/0psCTjQeu67KOMhLmbe4uLjvb3ScjsjGrkT+iAFLpcEtIwDQFd+9zsc79glC0z9jcH CKCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=EGD0AZKejzT2h2nd329Xqgw4aHGXLoqMG25dZHCPr+M=; b=upqm13jrUo5zbOEacotWsqgAcyaooltSFLwUTJzA/rcle7itVxw3hHxDeeQ41Mo288 RfP1FClcEzOEY1sN5y7pAyiNKGPrnCgm+B5sDRnjuNNIy69HmSWOWK9fseK1NERa4g17 8pTA2HTzzWnHS0U/S0EjTy3CANlRuLUGhW2NN//VtIMA5AMZSBHnDfpaLweYAYYDXdo+ y2MykGQ7NCRs+XFeXcIv8qjWwQNp1bPkthIBs71zMRGnBGkBME4ckhMOZZoJCNkA0YTg 0T6sbZ8KfWjo+60JJq0oNPO2NGqs+CavnYJ42gNnLt37yZIka+GTXQ1iCVFnMegSHYwt go7Q== X-Gm-Message-State: AOAM532IchLdl3uIfEr61ggCAuMkHRaixdnUGBRN9jhnL2fcNEJ4cazG ho7VU8U23WhyDnaDGxMpNg2rX77ioxk= X-Google-Smtp-Source: ABdhPJzXRQtfAcoLdu6ZEhpmYPI3bolCat07cGY4HKqqrbzJ+Ibi5HB+txKqjjucNHQ4mpToPMGeFw== X-Received: by 2002:a17:906:14d5:b0:711:c55a:998 with SMTP id y21-20020a17090614d500b00711c55a0998mr8103799ejc.708.1654530377960; Mon, 06 Jun 2022 08:46:17 -0700 (PDT) Original-Received: from ?IPv6:2a02:810d:a8bf:f874::e9d0? ([2a02:810d:a8bf:f874::e9d0]) by smtp.gmail.com with ESMTPSA id de46-20020a1709069bee00b0070f6855b90bsm3965529ejc.170.2022.06.06.08.46.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Jun 2022 08:46:17 -0700 (PDT) In-Reply-To: Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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.io gmane.comp.tex.context:115202 Archived-At: This is a multi-part message in MIME format. --===============5144340099565412837== Content-Type: multipart/alternative; boundary="------------384207D977495D7D028EEC0D" Content-Language: en-US This is a multi-part message in MIME format. --------------384207D977495D7D028EEC0D Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 > " 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 --------------384207D977495D7D028EEC0D Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit 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" 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

--------------384207D977495D7D028EEC0D-- --===============5144340099565412837== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============5144340099565412837==--