ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Help needed with slide grid layout
@ 2022-05-25 11:35 Stefan Nedeljkovic via ntg-context
  2022-05-25 14:01 ` Wolfgang Schuster via ntg-context
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Nedeljkovic via ntg-context @ 2022-05-25 11:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Stefan Nedeljkovic


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

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:


%\input fonts


\definemeasure[base][0.1in]

\definemeasure[zero][0in]


\definepapersize[slide][width=80\measure{base},height=60\measure{base}]

\setuppapersize[slide]


\setuplayout[

leftedge=\measure{zero},

rightedge=\measure{zero},

leftedgedistance=\measure{zero},

rightedgedistance=\measure{zero},

leftmargin=\measure{zero},

rightmargin=\measure{zero},

leftmargindistance=\measure{zero},

rightmargindistance=\measure{zero},

width=middle,

cutspace=2\measure{base},

backspace=2\measure{base},

topspace=2\measure{base},

header=\measure{zero},

height=middle,

bottomspace=2\measure{base},

footer=\measure{zero}]


%\usetypescript[ibmplex][uc]

%\setupbodyfont[ibmplex,rm,9pt]





\starttext


\showlayout


\stoptext


Link to files:
https://drive.google.com/drive/folders/1KpYbDlukvSCirKkFvJICOX3wABl_83bW?usp=sharing



Kind regards,

Stefan

[-- Attachment #1.2: Type: text/html, Size: 4604 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Help needed with slide grid layout
  2022-05-25 11:35 Help needed with slide grid layout Stefan Nedeljkovic via ntg-context
@ 2022-05-25 14:01 ` Wolfgang Schuster via ntg-context
  2022-05-25 16:24   ` Stefan Nedeljkovic via ntg-context
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2022-05-25 14:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Stefan Nedeljkovic via ntg-context
  Cc: Wolfgang Schuster

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Help needed with slide grid layout
  2022-05-25 14:01 ` Wolfgang Schuster via ntg-context
@ 2022-05-25 16:24   ` Stefan Nedeljkovic via ntg-context
  2022-05-25 16:48     ` Stefan Nedeljkovic via ntg-context
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Nedeljkovic via ntg-context @ 2022-05-25 16:24 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: Stefan Nedeljkovic, Stefan Nedeljkovic via ntg-context


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

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
>

[-- Attachment #1.2: Type: text/html, Size: 2108 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Help needed with slide grid layout
  2022-05-25 16:24   ` Stefan Nedeljkovic via ntg-context
@ 2022-05-25 16:48     ` Stefan Nedeljkovic via ntg-context
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Nedeljkovic via ntg-context @ 2022-05-25 16:48 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: Stefan Nedeljkovic, Stefan Nedeljkovic via ntg-context


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

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 <tsar.srb@gmail.com>
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
>>
>

[-- Attachment #1.2: Type: text/html, Size: 2681 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-05-25 16:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-25 11:35 Help needed with slide grid layout Stefan Nedeljkovic via ntg-context
2022-05-25 14:01 ` Wolfgang Schuster via ntg-context
2022-05-25 16:24   ` Stefan Nedeljkovic via ntg-context
2022-05-25 16:48     ` Stefan Nedeljkovic via ntg-context

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).