From: Wolfgang Schuster via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
Stefan Nedeljkovic via ntg-context <ntg-context@ntg.nl>
Cc: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
Subject: Re: Help needed with slide grid layout
Date: Wed, 25 May 2022 16:01:21 +0200 [thread overview]
Message-ID: <f93036cc-f911-275e-c87d-db592200ad74@gmail.com> (raw)
In-Reply-To: <CAGraPNfYvD+edx7BEhDqm3zTk7SkC-0oEM6csGHxz8gmtD+XPg@mail.gmail.com>
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
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2022-05-25 14:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-25 11:35 Stefan Nedeljkovic via ntg-context
2022-05-25 14:01 ` Wolfgang Schuster via ntg-context [this message]
2022-05-25 16:24 ` Stefan Nedeljkovic via ntg-context
2022-05-25 16:48 ` 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=f93036cc-f911-275e-c87d-db592200ad74@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).