From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/115067 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:48:17 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3701996321626938432==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24469"; 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:49:06 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 1ntuC2-00068Y-6d for gctc-ntg-context-518@m.gmane-mx.org; Wed, 25 May 2022 18:49:06 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 864B6360946; Wed, 25 May 2022 18:48:34 +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 nazFuEThiMq2; Wed, 25 May 2022 18:48:33 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 47981360921; Wed, 25 May 2022 18:48:32 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B8F6D360926 for ; Wed, 25 May 2022 18:48:30 +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 UZsRwVaZDytH for ; Wed, 25 May 2022 18:48:29 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.160.178; helo=mail-qt1-f178.google.com; envelope-from=tsar.srb@gmail.com; receiver= Original-Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com [209.85.160.178]) (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 9917D360921 for ; Wed, 25 May 2022 18:48:29 +0200 (CEST) Original-Received: by mail-qt1-f178.google.com with SMTP id u3so17463102qta.8 for ; Wed, 25 May 2022 09:48:29 -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=fswGlv2PlU6bBgdWuZOn8cR8D8XjZNAbqmg+nAdTeHE=; b=fS/Uk2H2P1BKPh8aF+7EM7gTiDVt2fV2oTfzCUd4nAicAOiGlt+en93QVYDIHYlNXZ r6o3N8b2oRrxaxqEE5O8p4cdypGdSMvX9AEifufupSJ/KzwDnSvm4wP9QEXpD2jiKVn3 BkiocgSChsI0BCnvGy3mUIdxySjSoqVFDKJrYiJLJiRdDbNbULSHESJTOnHeYxghyCw1 UwxkcC7QqX7oPcQG9g4LSYTrZKSkooZhbQenFvVQIz/qAbE3TpdYEqoYjZSfa7NbA4kP L96TvoO551fdr3P1n5tQXOEGMLSdQ/R/XV/MkMRr+tKEkEuc+eDNhbHHkqK0ApNA0e9C Gg9Q== 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=fswGlv2PlU6bBgdWuZOn8cR8D8XjZNAbqmg+nAdTeHE=; b=igOQmLvE94XuOT90l2aeYV19fmQwxDc62X7D9/JESb7s1k6E7XMdHa26BvLJuxmPDa f1zTya3reg6vJ6khNxg8dIk9CM59Zr72g2gUCPRymobTZ/7aqRDfJ0SLfQ5SiPhgY9Bn 14D+qCDjLSRJstZBbYrUXlFmKYL8xp+B1dMrXaREQMkxOHDtWrsG8sbkhk2DJew7DHKA XnQrpS/aXzWdmEQVZas8zRN/RBTvXKKndo6c5T5TYgpEWWFH+gUoMEbPl8mm3FAYOhmh JP91V50Oh6EXeShlUD50Ztjx+AHKGr0gc6X7NXTx2DVz5DX5cYDc0eK01jlhaGdkl/QE w5MA== X-Gm-Message-State: AOAM533ZhQH3BcvaQzMRsyrHT2x6iGtuoZ19xaUcIskm7h9ttzG2DRa+ WSD16kb1kP1oi0f+Omd/czLEeFRS4uLTfAG6PmGzG+df X-Google-Smtp-Source: ABdhPJz0zHSnfSKxkcqNqBumSci76QwEVa324UKB/i3YQJY0arM5lTHpJhrfIWI1VX5hN/Vfdgpz5khAsjoQJAqkdn4= X-Received: by 2002:ac8:7d41:0:b0:2fb:8a7:d2ce with SMTP id h1-20020ac87d41000000b002fb08a7d2cemr2828844qtb.391.1653497308623; Wed, 25 May 2022 09:48:28 -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:115067 Archived-At: --===============3701996321626938432== Content-Type: multipart/alternative; boundary="000000000000b7b9c805dfd8d78b" --000000000000b7b9c805dfd8d78b Content-Type: text/plain; charset="UTF-8" I have problems setting up the grid in question. I cannot seem to configure the grid spacing properly, despite combing through the "details" manual. Could you help me configure the grid? On Wed, May 25, 2022 at 6:24 PM Stefan Nedeljkovic wrote: > 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 >> > --000000000000b7b9c805dfd8d78b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have problems setting up the grid in question. I cannot = seem to configure the grid spacing properly,=C2=A0despite combing through t= he "details" manual. Could you help me configure the grid?
<= br>
On Wed,= May 25, 2022 at 6:24 PM Stefan Nedeljkovic <tsar.srb@gmail.com> wrote:
Thank you very much Wolfgang,= that solved the=C2=A0problem.

On Wed, May 25, 2022 at 4:01 PM Wolfgang Schu= ster <wolfgang.schuster.lists@gmail.com> wrote:
Stefan Nedeljkovic via ntg-context sc= hrieb 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
--000000000000b7b9c805dfd8d78b-- --===============3701996321626938432== 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== --===============3701996321626938432==--