From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/115064 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Nedeljkovic via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Help needed with slide grid layout Date: Wed, 25 May 2022 18:24:12 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1924234989995431685==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35229"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Nedeljkovic , Stefan Nedeljkovic via ntg-context To: Wolfgang Schuster Original-X-From: ntg-context-bounces@ntg.nl Wed May 25 18:27:40 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 1nttrI-0008tx-49 for gctc-ntg-context-518@m.gmane-mx.org; Wed, 25 May 2022 18:27:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E35B336096D; Wed, 25 May 2022 18:24:29 +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 41AXwvJQTjwP; Wed, 25 May 2022 18:24:28 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E79C1360945; Wed, 25 May 2022 18:24:27 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 71AF3360945 for ; Wed, 25 May 2022 18:24: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 l7Z3o1qelrxM for ; Wed, 25 May 2022 18:24:24 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.160.181; helo=mail-qt1-f181.google.com; envelope-from=tsar.srb@gmail.com; receiver= Original-Received: from mail-qt1-f181.google.com (mail-qt1-f181.google.com [209.85.160.181]) (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 4875A36053F for ; Wed, 25 May 2022 18:24:24 +0200 (CEST) Original-Received: by mail-qt1-f181.google.com with SMTP id f35so4758919qtb.11 for ; Wed, 25 May 2022 09:24:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Bu7rEd/JT7B27aOv8tnmx4h7MyMm/cxvSKtZ0LGILZg=; b=hj8Tz5ZQvHmUzm0cARQ6G/HOs4c6wwH9RkPTKaiZ5TqfyxhV0mFDDujoY/XrZIfv7A 9UTsPoL1UrDNT3ZZtEU+jqIYlPXl7Hck0oAhccZzOkO4PyN+32g9XGnRTda062bnUodu ZYDEgF3e4FzXrw5KulGi5g04WSump4+/4AveAqvHkcMsxt6T2sPY6qzeviOtDe4+wEN8 IY86V9kMZ7b1OvJKHQWmyHVVWrBYp0Ao7Tg0b/ztwgc6IPCUUDhvVA/jalEv8eQ+8Fum z28K1E75hSfvhvsdg7Q67XJICzeMujHLd0AVsm/6Zr6FZyZsQypRQzAqLoSsrNqHk6oP ZQ3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Bu7rEd/JT7B27aOv8tnmx4h7MyMm/cxvSKtZ0LGILZg=; b=8E/HA+9ELA5vR+u3kFfNoSGsj1NsrzOhxK1wnps3eoKcFphq3Vo/U8yWseAKNhiOcW UUWO1unAvr6r0oOcRA0cVH3nUB1j95q7N/w4L1dKx4FRBQoBCh61566Umfoz8hlOUwbj yy9WWQx8gm+vTAwZSkkAG+t0gR+m7hRPldvOz0zIU9TrNqQ6yMCyymfUyVmtC/CQd1t2 OoTUrg6AnfmRRNSmAFMw8hO2KxQyZwBk5SfQyf7OvzVaR4ejrQRGYD4AvaBFhj9qsWrp cyf3Q2NXlurWwU4e6w7E7uvWj4qTW0bT/r4Sia8jEQC+XVdAui0K/I1V6d8BwCJaRrt/ 2YBQ== X-Gm-Message-State: AOAM532yGBuXHzUFt1B3iCVov7ZHD3bTw65DMHVTehex7FTqwPEGvhY7 +33VEmfBvTjCBjXtU5xcGOsK15C+Dun3THAHdRcbCd19 X-Google-Smtp-Source: ABdhPJxjMxHvsV6bYEpT+HljnmpArrLZuWuuhIehPP1sMmrMHnfhcvRvVedbljC/WH6lCj5TKO4EY6VySkmS6uQdnG0= X-Received: by 2002:ac8:7d41:0:b0:2fb:8a7:d2ce with SMTP id h1-20020ac87d41000000b002fb08a7d2cemr2724289qtb.391.1653495863225; Wed, 25 May 2022 09:24:23 -0700 (PDT) In-Reply-To: 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:115064 Archived-At: --===============1924234989995431685== Content-Type: multipart/alternative; boundary="00000000000090b33005dfd88174" --00000000000090b33005dfd88174 Content-Type: text/plain; charset="UTF-8" Thank you very much Wolfgang, that solved the problem. On Wed, May 25, 2022 at 4:01 PM Wolfgang Schuster < wolfgang.schuster.lists@gmail.com> wrote: > Stefan Nedeljkovic via ntg-context schrieb am 25.05.2022 um 13:35: > > Dear list, > > > > This is a follow-up question on my previous question about Jean-Luc > > Doumont and his grid layouts. This time I have concrete questions. I > > reverse engineered his slide (slide_grid_overlay.pdf). All his units are > > based on inches, because the inch is an integer multiple (72) of the TeX > > point. His base unit is 0.1in. I tried implementing the layout first, > > but the pdf dimensions do not match the ones I set up. For example the > > width should be 8 inches, but the pdf is over 11 inches wide. I wish to > > shut off all margins and similar things and only have a text area with > > an offset of 0.2in all around the page (see slide_grid_overlay.pdf). > > Here is my current attempt: > > You have to use the \measured (with a trailing s) command when you need > multiples of a measure value. When you use something like 2\measure{...} > ConTeXt uses the "2" followed by the value of the measure, the following > example demonstrates this in the second output. > > %%%% begin example > \definemeasure [point] [1pt] > > \starttext > > \startbuffer > \tex{measure}: \measure{point} > > \tex{measured}: \the\measured{point} > \stopbuffer > > \typebuffer \getbuffer > > \startbuffer > 2\tex{measure}: 2\measure{point} > > 2\tex{measured}: \the\dimexpr2\measured{point}\relax > \stopbuffer > > \typebuffer \getbuffer > > \stoptext > %%%% end example > > Wolfgang > --00000000000090b33005dfd88174 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you very much Wolfgang, that solved the=C2=A0problem= .

On Wed, May 25, 2022 at 4:01 PM Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> = wrote:
Stefan Ne= deljkovic via ntg-context schrieb am 25.05.2022 um 13:35:
> Dear list,
>
> This is a follow-up question on my previous question about Jean-Luc > Doumont and his grid layouts. This time I have concrete questions. I <= br> > reverse engineered his slide (slide_grid_overlay.pdf). All his units a= re
> based on inches, because the inch is an integer multiple (72) of the T= eX
> point. His base unit is 0.1in. I tried implementing the layout first, =
> but the pdf dimensions do not match the ones I set up. For example the=
> width should be 8 inches, but the pdf is over 11 inches wide. I wish t= o
> shut off all margins and similar things and only have a text area with=
> an offset of 0.2in all around the page (see slide_grid_overlay.pdf). <= br> > Here is my current attempt:

You have to use the \measured (with a trailing s) command when you need
multiples of a measure value. When you use something like 2\measure{...} ConTeXt uses the "2" followed by the value of the measure, the fo= llowing
example demonstrates this in the second output.

%%%% begin example
\definemeasure [point] [1pt]

\starttext

\startbuffer
\tex{measure}: \measure{point}

\tex{measured}: \the\measured{point}
\stopbuffer

\typebuffer \getbuffer

\startbuffer
2\tex{measure}: 2\measure{point}

2\tex{measured}: \the\dimexpr2\measured{point}\relax
\stopbuffer

\typebuffer \getbuffer

\stoptext
%%%% end example

Wolfgang
--00000000000090b33005dfd88174-- --===============1924234989995431685== 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== --===============1924234989995431685==--