Re: [NTG-context] Problems with column sets?

2022-05-25 Thread Ben Moon via ntg-context
I've had a similar issue since December (posted here: 
https://www.mail-archive.com/ntg-context@ntg.nl/msg101228.html) and trying the 
examples from the columnsets manual today and the version that worked for 
Hraban I get the same error (ConTeXt version  2022.05.02, macOS 12.4).

Ben


On Tue, 24 May 2022, at 20:42, T. Kurt Bond via ntg-context wrote:
> Sigh.  I should have mentioned that that I reinstalled LMTX from scratch on 
> both machines, and that my mac is running macOS Monterey 12.3.1.
> 
> On Tue, May 24, 2022 at 3:40 PM T. Kurt Bond  wrote:
>> Huh.  I tried it on a Linux box, and that worked.  But on my main machine, a 
>> Intel 64 bit mac, I get the original result.  Oh, I changed to use this 
>> input:
>>> \definecolumnset[TwoColumns][n=2]
>>> \startcolumnset [TwoColumns]
>>>   \input knuth
>>> \stopcolumnset
>> 
>> On Tue, May 24, 2022 at 3:09 PM Henning Hraban Ramm via ntg-context 
>>  wrote:
>>> Am 24.05.22 um 20:43 schrieb T. Kurt Bond via ntg-context:
>>> > Given the following file that uses definecolumnset and 
>>> > startcolumnset/stopcolumnset (largely from the wiki 
>>> > ) for input:
>>> > 
>>> > 
>>> > 
>>> > \setuppapersize[letter]
>>> > \definecolumnset[TwoColumns][n=2]
>>> > \startcolumnset [TwoColumns]
>>> >\title{Test page}
>>> >\framed
>>> >  [frame=off,
>>> >   bottomframe=on,
>>> >   width=\textwidth,
>>> >   frameoffset=1mm,
>>> >   foregroundstyle=small,
>>> >  ]{\copyright\ \date[][year] Donald E. Knuth}
>>> >\input knuth
>>> > \stopcolumnset
>>> > 
>>> > 
>>> 
>>> That’s not a minimal example, but it works for me (even if the text 
>>> starts only on the second page):
>>> 
>>> \definecolumnset[TwoColumns][n=2]
>>> 
>>> \starttext
>>> \startcolumnset [TwoColumns]
>>>\title{Test page}
>>>\framed
>>>  [frame=off,
>>>   bottomframe=on,
>>>   width=\textwidth,
>>>   frameoffset=1mm,
>>>   foregroundstyle=small,
>>>  ]{\copyright\ \date[][year] Donald E. Knuth}
>>>\samplefile{knuth}
>>> \stopcolumnset
>>> \stoptext
>>> 
>>> Hraban
>>> ___
>>> 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
>>> ___
>> 
>> 
>> -- 
>> T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io
> 
> 
> -- 
> T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io
> ___
> 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
> ___
> 
___
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
___


Re: [NTG-context] Microtipography

2022-05-25 Thread Tommaso Gordini via ntg-context
Thank you, Henri!

Tommaso

Il mer 25 mag 2022, 16:59 Henri Menke via ntg-context 
ha scritto:

> On Wed, 2022-05-25 at 15:51 +0200, Tommaso Gordini via ntg-context
> wrote:
> > Hello list,
> >
> > here and there on the Net there are slightly different ways to
> > activate the
> > microtypography functionality in a ConTeXt document.
> >
> >  My question is: what is the most correct and clean way to do it?
>
> I do not claim that this is the cleanest way. Probably it's better to
> define a separate font feature for microtypography rather than
> overwriting the default set, but this definitely works:
>
>\definefontfeature[default][default]
>  [protrusion=quality,
>   expansion=quality]
>
>\setupbodyfont[modern] % or whatever
>
>\setupalign[hz,hanging]
>
> Unfortunately the global alignment settings do not propagate into
> certain structures. For example itemizations, captions, and
> bibliographies just reset it and need special treatment:
>
>\setupitemize[each][align={hz,hanging}]
>\setupbtxlist[align={hz,hanging,tolerant}]
>\setupcaption[figure][align={justified,hz,hanging}]
>
> I think captions are not justified by default, so that might or might
> not matter to you. Bibliographies are usually full or names and
> academic words that do not hyphenate well, so adding tolerant relaxes
> that a little bit.
>
> Cheers, Henri
>
> >
> > Thanks in advance
> > Tommaso
> > _
> > __
> > 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
> > _
> > __
>
> ___
> 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
>
> ___
>
___
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
___


Re: [NTG-context] Microtipography

2022-05-25 Thread Henri Menke via ntg-context
On Wed, 2022-05-25 at 15:51 +0200, Tommaso Gordini via ntg-context
wrote:
> Hello list,
> 
> here and there on the Net there are slightly different ways to
> activate the
> microtypography functionality in a ConTeXt document.
> 
>  My question is: what is the most correct and clean way to do it?

I do not claim that this is the cleanest way. Probably it's better to
define a separate font feature for microtypography rather than
overwriting the default set, but this definitely works:

   \definefontfeature[default][default]
 [protrusion=quality,
  expansion=quality]
   
   \setupbodyfont[modern] % or whatever
   
   \setupalign[hz,hanging]

Unfortunately the global alignment settings do not propagate into
certain structures. For example itemizations, captions, and
bibliographies just reset it and need special treatment:

   \setupitemize[each][align={hz,hanging}]
   \setupbtxlist[align={hz,hanging,tolerant}]
   \setupcaption[figure][align={justified,hz,hanging}]

I think captions are not justified by default, so that might or might
not matter to you. Bibliographies are usually full or names and
academic words that do not hyphenate well, so adding tolerant relaxes
that a little bit.

Cheers, Henri

> 
> Thanks in advance
> Tommaso
> _
> __
> 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
> _
> __
___
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
___


[NTG-context] spooky jumping headerline

2022-05-25 Thread Steffen Wolfrum via ntg-context
Hi,

the \blackrule (in my real project this is the running title) on page 1 is 
about 1mm higher than on page 2.

Why?

Best, Steffen



\setupbodyfont[palatino,9.5pt]\setupinterlinespace[13pt]

\setuppagenumbering [alternative=doublesided,location=]
\setupheader[strut=yes]
\setupheadertexts[text][][\blackrule]


\definepapersize[stw][width=17cm,height=24cm]
\setuppapersize[stw][stw]

\setuplayout
[width=122mm,
backspace=18mm,topspace=10mm,
header=7mm,headerdistance=5.969mm,
footer=5mm,footerdistance=5mm,height=214.031mm, 
location=middle]


\definedelimitedtext
 [narrowtext]
 [leftmargin=6mm,rightmargin=0mm]%,

\starttext

%%Test 1:
\dorecurse{6}{\input linden}

%%Test 2:
%\dorecurse{5}{\input tufte}


\start
\startdelimitedtext[narrowtext]
\switchtobodyfont[8pt]\setuplocalinterlinespace[line=11pt]
\input linden\par
\stopdelimitedtext
\stop

\stoptext

___
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
___


Re: [NTG-context] Help needed with Custodia typescript

2022-05-25 Thread Henning Hraban Ramm via ntg-context
Ah, sorry, didn’t know that. I can’t find an error in your code, but I 
don’t have the (commercial) font to test. What’s the output of the 
mtxrun font lookup?

Did you try a different shortcut from "mi"?

Hraban

Am 25.05.22 um 18:44 schrieb Stefan Nedeljkovic:
It doesn't work for medium weights, as it is not standard. I took my 
solution from Wolfgang, here: 
https://tex.stackexchange.com/questions/303648/context-font-weights 



On Wed, May 25, 2022 at 6:32 PM Henning Hraban Ramm via ntg-context 
mailto:ntg-context@ntg.nl>> wrote:


Hi Stefan,

I never used \definebodyfont but either \definefontfamily or
typescripts
with \definefontsynonym.

Did you try \definefontfamily[custodia][rm][Custodia] ?

https://wiki.contextgarden.net/Command/definefontfamily


Hraban

Am 25.05.22 um 18:20 schrieb Stefan Nedeljkovic via ntg-context:
 >
 > Dear list,
 >
 >
 > I'm trying to set up Custodia in LMTX, but the
custodiasemibolditalic
 > won't show up. It shows up regularly when I run mtxrun --script
fonts
 > --list --all --pattern=Custodia
 >
 > I'm attaching the output for reference. Any help would be
appreciated.
 >
 >
 > Sincerely,
 >
 > Stefan
 >
 > \definefontalternative[md]
 >
 > \definefontalternative[mi]
 >
 >
 > \starttypescript [serif] [custodia]
 >
 > \definefontsynonym[Serif] [name:custodianormal][features=default]
 >
 > \definefontsynonym[SerifItalic]
 > [name:custodianormalitalic][features=default]
 >
 > \definefontsynonym[SerifMedium]
[name:custodiasemibold][features=default]
 >
 > \definefontsynonym[SerifMediumItalic]
 > [name:custodiasemibolditalic][features=default]
 >
 > \definefontsynonym[SerifBold] [name:custodiabold][features=default]
 >
 > \definefontsynonym[SerifBoldItalic]
 > [name:custodiabolditalic][features=default]
 >
 > \stoptypescript
 >
 >
 > \starttypescript [serif] [custodia]
 >
 > \definebodyfont [default] [rm]
 >
 > [
 >
 > tf=Serif sa 1,
 >
 > it=SerifItalic sa 1,
 >
 > md=SerifMedium sa 1,
 >
 > mi=SerifMediumItalic sa 1,
 >
 > bf=SerifBold sa 1,
 >
 > bi=SerifBoldItalic sa 1]
 >
 > \stoptypescript
 >
 >
 >
 > \definetypeface [custodia] [rm] [serif] [custodia] [default]
 >
 >
 >
 >
 >
 > \usetypescript[custodia][uc]
 >
 > \setupbodyfont[custodia,rm,10pt]
 >
 >
 > \starttext
 >
 >
 > Regular Hamburgerfons,
 >
 > {\it Italic Hamburgerfons},
 >
 > {\md Medium Hamburgerfons},
 >
 > {\mi Medium Italic Hamburgerfons},
 >
 > {\bf Bold Hamburgerfons},
 >
 > {\bi Bold Italic Hamburgerfons},\\
 >
 >
 > \setff{smallcaps}{Small Caps Hamburgerfons},
 >
 > \setff{smallcaps}{\it Small Caps Italic Hamburgerfons},
 >
 > \setff{smallcaps}{\md Small Caps Medium Hamburgerfons},
 >
 > \setff{smallcaps}{\mi Small Caps Medium Italic Hamburgerfons},
 >
 > \setff{smallcaps}{\bf Small Caps Bold Hamburgerfons},
 >
 > \setff{smallcaps}{\bi Small Caps Bold Italic Hamburgerfons}
 >
 >
 > \stoptext
 >

___
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
___


Re: [NTG-context] Help needed with Custodia typescript

2022-05-25 Thread Stefan Nedeljkovic via ntg-context
It doesn't work for medium weights, as it is not standard. I took my
solution from Wolfgang, here:
https://tex.stackexchange.com/questions/303648/context-font-weights

On Wed, May 25, 2022 at 6:32 PM Henning Hraban Ramm via ntg-context <
ntg-context@ntg.nl> wrote:

> Hi Stefan,
>
> I never used \definebodyfont but either \definefontfamily or typescripts
> with \definefontsynonym.
>
> Did you try \definefontfamily[custodia][rm][Custodia] ?
>
> https://wiki.contextgarden.net/Command/definefontfamily
>
> Hraban
>
> Am 25.05.22 um 18:20 schrieb Stefan Nedeljkovic via ntg-context:
> >
> > Dear list,
> >
> >
> > I'm trying to set up Custodia in LMTX, but the custodiasemibolditalic
> > won't show up. It shows up regularly when I run mtxrun --script fonts
> > --list --all --pattern=Custodia
> >
> > I'm attaching the output for reference. Any help would be appreciated.
> >
> >
> > Sincerely,
> >
> > Stefan
> >
> > \definefontalternative[md]
> >
> > \definefontalternative[mi]
> >
> >
> > \starttypescript [serif] [custodia]
> >
> > \definefontsynonym[Serif] [name:custodianormal][features=default]
> >
> > \definefontsynonym[SerifItalic]
> > [name:custodianormalitalic][features=default]
> >
> > \definefontsynonym[SerifMedium] [name:custodiasemibold][features=default]
> >
> > \definefontsynonym[SerifMediumItalic]
> > [name:custodiasemibolditalic][features=default]
> >
> > \definefontsynonym[SerifBold] [name:custodiabold][features=default]
> >
> > \definefontsynonym[SerifBoldItalic]
> > [name:custodiabolditalic][features=default]
> >
> > \stoptypescript
> >
> >
> > \starttypescript [serif] [custodia]
> >
> > \definebodyfont [default] [rm]
> >
> > [
> >
> > tf=Serif sa 1,
> >
> > it=SerifItalic sa 1,
> >
> > md=SerifMedium sa 1,
> >
> > mi=SerifMediumItalic sa 1,
> >
> > bf=SerifBold sa 1,
> >
> > bi=SerifBoldItalic sa 1]
> >
> > \stoptypescript
> >
> >
> >
> > \definetypeface [custodia] [rm] [serif] [custodia] [default]
> >
> >
> >
> >
> >
> > \usetypescript[custodia][uc]
> >
> > \setupbodyfont[custodia,rm,10pt]
> >
> >
> > \starttext
> >
> >
> > Regular Hamburgerfons,
> >
> > {\it Italic Hamburgerfons},
> >
> > {\md Medium Hamburgerfons},
> >
> > {\mi Medium Italic Hamburgerfons},
> >
> > {\bf Bold Hamburgerfons},
> >
> > {\bi Bold Italic Hamburgerfons},\\
> >
> >
> > \setff{smallcaps}{Small Caps Hamburgerfons},
> >
> > \setff{smallcaps}{\it Small Caps Italic Hamburgerfons},
> >
> > \setff{smallcaps}{\md Small Caps Medium Hamburgerfons},
> >
> > \setff{smallcaps}{\mi Small Caps Medium Italic Hamburgerfons},
> >
> > \setff{smallcaps}{\bf Small Caps Bold Hamburgerfons},
> >
> > \setff{smallcaps}{\bi Small Caps Bold Italic Hamburgerfons}
> >
> >
> > \stoptext
> >
>
> ___
> 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
>
> ___
>
___
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
___


Re: [NTG-context] Small caps as a separate font

2022-05-25 Thread Henning Hraban Ramm via ntg-context

Am 25.05.22 um 22:23 schrieb Stefan Nedeljkovic via ntg-context:

Dear list,

A quick question about a font that has a separate file for small caps. I 
have the following:



\starttypescript [sans] [dtl-documenta-sans-t]
\definefontsynonym[Sans] [name:dtldocumentasanst][features=default]
\definefontsynonym[SansItalic] 
[name:dtldocumentasanstitalic][features=default]


\definefontsynonym[SansCaps][name:dtldocumentasanstcaps][features=default]


\stoptypescript


\starttypescript [sans] [dtl-documenta-sans-t-sc]
\definefontsynonym[Sans] [name:dtldocumentasanstcaps][features=default]
\definefontsynonym[SansItalic] 
[name:dtldocumentasanstcapsitalic][features=default]

\stoptypescript


How can I define dtl-documenta-sans such that I can do:

\setupbodyfont[dtl-documenta-sans,rm,10pt]

\starttext
\setff{smallcaps}{Small Caps Hamburgerfons}, \setff{smallcaps}{\it Small 
Caps Italic Hamburgerfons},

\stoptext


Single smallcaps fonts work the traditional way with \sc, not via 
OpenType features (if I’m not mistaken and this gets mapped automagically).


Hraban
___
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
___


Re: [NTG-context] Help needed with Custodia typescript

2022-05-25 Thread Stefan Nedeljkovic via ntg-context
Actually I got lucky just now:

\definefontalternative[md]

\definefontalternative[mc]


Works just fine. Thank you for your suggestion Henning!

On Wed, May 25, 2022 at 7:35 PM Stefan Nedeljkovic 
wrote:

> mtxrun --script fonts --list --all --pattern=Custodia
> identifier   familyname   fontname filename
>subfont   instances
>
> custodiabold custodia custodiabold
> Custodia-Bold.ttf
> custodiabolditalic   custodia custodiabolditalic
> Custodia-BoldItalic.ttf
> custodiaitalic   custodia custodianormalitalic
> Custodia-NormalItalic.ttf
> custodianormal   custodia custodianormal
> Custodia-Normal.ttf
> custodianormalitalic custodia custodianormalitalic
> Custodia-NormalItalic.ttf
> custodiaregular  custodia custodianormal
> Custodia-Normal.ttf
> custodiasemibold custodia custodiasemibold
> Custodia-SemiBold.ttf
> custodiasemibolditalic   custodia custodiasemibolditalic
> Custodia-SemiBoldItalic.ttf
>
> I tried a different name, but the result was the same.
>
> On Wed, May 25, 2022 at 7:12 PM Henning Hraban Ramm via ntg-context <
> ntg-context@ntg.nl> wrote:
>
>> Ah, sorry, didn’t know that. I can’t find an error in your code, but I
>> don’t have the (commercial) font to test. What’s the output of the
>> mtxrun font lookup?
>> Did you try a different shortcut from "mi"?
>>
>> Hraban
>>
>> Am 25.05.22 um 18:44 schrieb Stefan Nedeljkovic:
>> > It doesn't work for medium weights, as it is not standard. I took my
>> > solution from Wolfgang, here:
>> > https://tex.stackexchange.com/questions/303648/context-font-weights
>> > 
>> >
>> > On Wed, May 25, 2022 at 6:32 PM Henning Hraban Ramm via ntg-context
>> > mailto:ntg-context@ntg.nl>> wrote:
>> >
>> > Hi Stefan,
>> >
>> > I never used \definebodyfont but either \definefontfamily or
>> > typescripts
>> > with \definefontsynonym.
>> >
>> > Did you try \definefontfamily[custodia][rm][Custodia] ?
>> >
>> > https://wiki.contextgarden.net/Command/definefontfamily
>> > 
>> >
>> > Hraban
>> >
>> > Am 25.05.22 um 18:20 schrieb Stefan Nedeljkovic via ntg-context:
>> >  >
>> >  > Dear list,
>> >  >
>> >  >
>> >  > I'm trying to set up Custodia in LMTX, but the
>> > custodiasemibolditalic
>> >  > won't show up. It shows up regularly when I run mtxrun --script
>> > fonts
>> >  > --list --all --pattern=Custodia
>> >  >
>> >  > I'm attaching the output for reference. Any help would be
>> > appreciated.
>> >  >
>> >  >
>> >  > Sincerely,
>> >  >
>> >  > Stefan
>> >  >
>> >  > \definefontalternative[md]
>> >  >
>> >  > \definefontalternative[mi]
>> >  >
>> >  >
>> >  > \starttypescript [serif] [custodia]
>> >  >
>> >  > \definefontsynonym[Serif] [name:custodianormal][features=default]
>> >  >
>> >  > \definefontsynonym[SerifItalic]
>> >  > [name:custodianormalitalic][features=default]
>> >  >
>> >  > \definefontsynonym[SerifMedium]
>> > [name:custodiasemibold][features=default]
>> >  >
>> >  > \definefontsynonym[SerifMediumItalic]
>> >  > [name:custodiasemibolditalic][features=default]
>> >  >
>> >  > \definefontsynonym[SerifBold]
>> [name:custodiabold][features=default]
>> >  >
>> >  > \definefontsynonym[SerifBoldItalic]
>> >  > [name:custodiabolditalic][features=default]
>> >  >
>> >  > \stoptypescript
>> >  >
>> >  >
>> >  > \starttypescript [serif] [custodia]
>> >  >
>> >  > \definebodyfont [default] [rm]
>> >  >
>> >  > [
>> >  >
>> >  > tf=Serif sa 1,
>> >  >
>> >  > it=SerifItalic sa 1,
>> >  >
>> >  > md=SerifMedium sa 1,
>> >  >
>> >  > mi=SerifMediumItalic sa 1,
>> >  >
>> >  > bf=SerifBold sa 1,
>> >  >
>> >  > bi=SerifBoldItalic sa 1]
>> >  >
>> >  > \stoptypescript
>> >  >
>> >  >
>> >  >
>> >  > \definetypeface [custodia] [rm] [serif] [custodia] [default]
>> >  >
>> >  >
>> >  >
>> >  >
>> >  >
>> >  > \usetypescript[custodia][uc]
>> >  >
>> >  > \setupbodyfont[custodia,rm,10pt]
>> >  >
>> >  >
>> >  > \starttext
>> >  >
>> >  >
>> >  > Regular Hamburgerfons,
>> >  >
>> >  > {\it Italic Hamburgerfons},
>> >  >
>> >  > {\md Medium Hamburgerfons},
>> >  >
>> >  > {\mi Medium Italic Hamburgerfons},
>> >  >
>> >  > {\bf Bold Hamburgerfons},
>> >  >
>> >  > {\bi Bold Italic Hamburgerfons},\\
>> >  >
>> >  >
>> >  > \setff{smallcaps}{Small Caps Hamburgerfons},
>> >  >
>> >  > \setff{smallcaps}{\it Small Caps Italic Hamburgerfons},
>> >  >
>> >  > \setff{smallcaps}{\md Small Caps Medium 

Re: [NTG-context] Microtipography

2022-05-25 Thread Denis Maier via ntg-context
Just a quick addition to Henri’s answer : You can also define your own align 
definition, see https://www.mail-archive.com/ntg-context@ntg.nl/msg100832.html

That will probably make your life a bit easier.

Best,
Denis

Von: ntg-context  Im Auftrag von Tommaso Gordini 
via ntg-context
Gesendet: Mittwoch, 25. Mai 2022 17:06
An: mailing list for ConTeXt users 
Cc: Tommaso Gordini 
Betreff: Re: [NTG-context] Microtipography

Thank you, Henri!

Tommaso

Il mer 25 mag 2022, 16:59 Henri Menke via ntg-context 
mailto:ntg-context@ntg.nl>> ha scritto:
On Wed, 2022-05-25 at 15:51 +0200, Tommaso Gordini via ntg-context
wrote:
> Hello list,
>
> here and there on the Net there are slightly different ways to
> activate the
> microtypography functionality in a ConTeXt document.
>
>  My question is: what is the most correct and clean way to do it?

I do not claim that this is the cleanest way. Probably it's better to
define a separate font feature for microtypography rather than
overwriting the default set, but this definitely works:

   \definefontfeature[default][default]
 [protrusion=quality,
  expansion=quality]

   \setupbodyfont[modern] % or whatever

   \setupalign[hz,hanging]

Unfortunately the global alignment settings do not propagate into
certain structures. For example itemizations, captions, and
bibliographies just reset it and need special treatment:

   \setupitemize[each][align={hz,hanging}]
   \setupbtxlist[align={hz,hanging,tolerant}]
   \setupcaption[figure][align={justified,hz,hanging}]

I think captions are not justified by default, so that might or might
not matter to you. Bibliographies are usually full or names and
academic words that do not hyphenate well, so adding tolerant relaxes
that a little bit.

Cheers, Henri

>
> Thanks in advance
> Tommaso
> _
> __
> 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
> _
> __
___
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
___
___
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
___


Re: [NTG-context] Small caps as a separate font

2022-05-25 Thread Stefan Nedeljkovic via ntg-context
Here is the output of mtxrun. Note that there are two versions: T (title)
and ST (subtitle). I want the title version.

mtxrun --script fonts --list --all --pattern=DTL
identifier familyname fontname
filenamesubfont   instances

dtldocumentaitalic dtldocumenta   dtldocumentasansstitalic
DTL Documenta Sans ST Italic.otf
dtldocumentanormal dtldocumenta   dtldocumentasansstitalic
DTL Documenta Sans ST Italic.otf
dtldocumentaregulardtldocumenta   dtldocumentasansst
DTL Documenta Sans ST Regular.otf
dtldocumentasansst dtldocumenta   dtldocumentasansst
DTL Documenta Sans ST Regular.otf
dtldocumentasansstitalic   dtldocumenta   dtldocumentasansstitalic
DTL Documenta Sans ST Italic.otf
dtldocumentasansstregular  dtldocumenta   dtldocumentasansst
DTL Documenta Sans ST Regular.otf
dtldocumentasanst  dtldocumenta   dtldocumentasanst
 DTL Documenta Sans T Regular.otf
dtldocumentasanstcaps  dtldocumenta   dtldocumentasanstcaps
 DTL Documenta Sans T Caps Regular.otf
dtldocumentasanstcapsregular   dtldocumenta   dtldocumentasanstcaps
 DTL Documenta Sans T Caps Regular.otf
dtldocumentasansteuro  dtldocumenta   dtldocumentasansteuro
 DTL Documenta Sans T Euro.otf
dtldocumentasanstitalicdtldocumenta   dtldocumentasanstitalic
 DTL Documenta Sans T Italic.otf
dtldocumentasanstregular   dtldocumenta   dtldocumentasanst
 DTL Documenta Sans T Regular.otf

I tried \definefontfamily[DTL-Documenta-Sans-T][ss][DTL-Documenta-Sans-T]
but it does not work with \sc.

On Wed, May 25, 2022 at 10:30 PM Henning Hraban Ramm via ntg-context <
ntg-context@ntg.nl> wrote:

> Am 25.05.22 um 22:23 schrieb Stefan Nedeljkovic via ntg-context:
> > Dear list,
> >
> > A quick question about a font that has a separate file for small caps. I
> > have the following:
> >
> >
> > \starttypescript [sans] [dtl-documenta-sans-t]
> > \definefontsynonym[Sans] [name:dtldocumentasanst][features=default]
> > \definefontsynonym[SansItalic]
> > [name:dtldocumentasanstitalic][features=default]
>
> \definefontsynonym[SansCaps][name:dtldocumentasanstcaps][features=default]
>
> > \stoptypescript
> >
> >
> > \starttypescript [sans] [dtl-documenta-sans-t-sc]
> > \definefontsynonym[Sans] [name:dtldocumentasanstcaps][features=default]
> > \definefontsynonym[SansItalic]
> > [name:dtldocumentasanstcapsitalic][features=default]
> > \stoptypescript
> >
> >
> > How can I define dtl-documenta-sans such that I can do:
> >
> > \setupbodyfont[dtl-documenta-sans,rm,10pt]
> >
> > \starttext
> > \setff{smallcaps}{Small Caps Hamburgerfons}, \setff{smallcaps}{\it Small
> > Caps Italic Hamburgerfons},
> > \stoptext
>
> Single smallcaps fonts work the traditional way with \sc, not via
> OpenType features (if I’m not mistaken and this gets mapped automagically).
>
> Hraban
>
> ___
> 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
>
> ___
>
___
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
___


[NTG-context] Offseting the baseline grid, and irregular columnsets

2022-05-25 Thread Stefan Nedeljkovic via ntg-context
Dear list,

My adventures into the world of grids continue. In the linked file
(slide_grid_overlay.pdf) there are two things I cannot yet achieve:

1. I want the baseline grid to evenly (vertically) divide the text
area, but my code produces a smaller height of the first line and an
additional space at the bottom.
2. The number of columns is 21.5, that is the first column is 0.5 units
wide and the rest are 1 unit wide.

How would I achieve this?
Here is what I got right now:

\definemeasure[xheight][0.1in]
\definemeasure[base][3\measured{xheight}]

\definepapersize[slide][width=80\measured{xheight},height=60\measured{xheight}]
\setuppapersize[slide]

\setupinterlinespace[line=\measure{base},top=1]

\setuplayout[
leftedge=\zeropoint,
rightedge=\measure{zero},
leftedgedistance=\zeropoint,
rightedgedistance=\zeropoint,
leftmargin=\zeropoint,
rightmargin=\zeropoint,
leftmargindistance=\zeropoint,
rightmargindistance=\zeropoint,
width=middle,
cutspace=2\measured{base},
backspace=2\measured{base},
topspace=2\measured{base},
header=\zeropoint,
height=middle,
bottomspace=2\measured{base},
footer=\zeropoint,
grid=yes,
columndistance=1pt,
columns=21.5]


\showframe
\showgrid

\starttext
\input tufte
\stoptext

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

Sincerely,
Stefan
___
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
___


Re: [NTG-context] Help needed with Custodia typescript

2022-05-25 Thread Henning Hraban Ramm via ntg-context

Hi Stefan,

I never used \definebodyfont but either \definefontfamily or typescripts 
with \definefontsynonym.


Did you try \definefontfamily[custodia][rm][Custodia] ?

https://wiki.contextgarden.net/Command/definefontfamily

Hraban

Am 25.05.22 um 18:20 schrieb Stefan Nedeljkovic via ntg-context:


Dear list,


I'm trying to set up Custodia in LMTX, but the custodiasemibolditalic 
won't show up. It shows up regularly when I run mtxrun --script fonts 
--list --all --pattern=Custodia


I'm attaching the output for reference. Any help would be appreciated.


Sincerely,

Stefan

\definefontalternative[md]

\definefontalternative[mi]


\starttypescript [serif] [custodia]

\definefontsynonym[Serif] [name:custodianormal][features=default]

\definefontsynonym[SerifItalic] 
[name:custodianormalitalic][features=default]


\definefontsynonym[SerifMedium] [name:custodiasemibold][features=default]

\definefontsynonym[SerifMediumItalic] 
[name:custodiasemibolditalic][features=default]


\definefontsynonym[SerifBold] [name:custodiabold][features=default]

\definefontsynonym[SerifBoldItalic] 
[name:custodiabolditalic][features=default]


\stoptypescript


\starttypescript [serif] [custodia]

\definebodyfont [default] [rm]

[

tf=Serif sa 1,

it=SerifItalic sa 1,

md=SerifMedium sa 1,

mi=SerifMediumItalic sa 1,

bf=SerifBold sa 1,

bi=SerifBoldItalic sa 1]

\stoptypescript



\definetypeface [custodia] [rm] [serif] [custodia] [default]





\usetypescript[custodia][uc]

\setupbodyfont[custodia,rm,10pt]


\starttext


Regular Hamburgerfons,

{\it Italic Hamburgerfons},

{\md Medium Hamburgerfons},

{\mi Medium Italic Hamburgerfons},

{\bf Bold Hamburgerfons},

{\bi Bold Italic Hamburgerfons},\\


\setff{smallcaps}{Small Caps Hamburgerfons},

\setff{smallcaps}{\it Small Caps Italic Hamburgerfons},

\setff{smallcaps}{\md Small Caps Medium Hamburgerfons},

\setff{smallcaps}{\mi Small Caps Medium Italic Hamburgerfons},

\setff{smallcaps}{\bf Small Caps Bold Hamburgerfons},

\setff{smallcaps}{\bi Small Caps Bold Italic Hamburgerfons}


\stoptext


___
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
___


Re: [NTG-context] Issue with interactive checkboxes[solved]

2022-05-25 Thread Pablo Rodriguez via ntg-context
On 5/24/22 19:58, Henning Hraban Ramm via ntg-context wrote:
> Am 24.05.22 um 18:43 schrieb Pablo Rodriguez via ntg-context:
>> But what I experienced in Acrobat Reader DC (on a borrowed computer) is
>> that you get the standard image (only when field is enabled) when you
>> click elsewhere in the document.
>>
>> I guess that this may be related to a missing implementation, but first
>> I would like to confirm you are experiencing the same.
>
> Custom checkboxes and radiobuttons used to work many years ago, but
> they’re broken for years – Hans blames Adobe for that.

Many thanks for your reply and your extensive testing, Hraban.

[Sorry for the late reply, but I have to do this on my free time.]

I have the impression that this issue might be more complex than Acrobat
misbehaving (in my opinion).

/Annot /Widget may be missing /MK /CA which contains this description
(https://opensource.adobe.com/dc-acrobat-sdk-docs/standards/pdfstandards/pdf/PDF32000_2008.pdf#nameddest=G11.2096745):

  The widget annotation’s normal caption, which shall be displayed when
  it is not interacting with the user.

But since this value is a text string, I wonder whether its value may be
/T from the parent (/FT /Btn).

Again, I don’t really know what is going on here.

But adding the /T from parent, by manually editing it:

  /MK << /CA  >>

This makes the mark different and permanent in Acrobat (although I don’t
get the right image). You may click on other area and the check mark
doesn’t vanish.

Maybe the issue is that check boxes don’t work exactly the way the rest
of us might have expected.

Sorry, but I’m again in a hurry.

Many thanks for your help,

Pablo
___
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
___


[NTG-context] Small caps as a separate font

2022-05-25 Thread Stefan Nedeljkovic via ntg-context
Dear list,

A quick question about a font that has a separate file for small caps. I
have the following:


\starttypescript [sans] [dtl-documenta-sans-t]
\definefontsynonym[Sans] [name:dtldocumentasanst][features=default]
\definefontsynonym[SansItalic]
[name:dtldocumentasanstitalic][features=default]
\stoptypescript


\starttypescript [sans] [dtl-documenta-sans-t-sc]
\definefontsynonym[Sans] [name:dtldocumentasanstcaps][features=default]
\definefontsynonym[SansItalic]
[name:dtldocumentasanstcapsitalic][features=default]
\stoptypescript


How can I define dtl-documenta-sans such that I can do:

\setupbodyfont[dtl-documenta-sans,rm,10pt]

\starttext
\setff{smallcaps}{Small Caps Hamburgerfons}, \setff{smallcaps}{\it Small
Caps Italic Hamburgerfons},
\stoptext


Sincerely,
Stefan
___
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
___


Re: [NTG-context] Help needed with slide grid layout

2022-05-25 Thread Stefan Nedeljkovic via ntg-context
Thank you very much Wolfgang, that solved the problem.

On Wed, May 25, 2022 at 4:01 PM Wolfgang Schuster <
wolfgang.schuster.li...@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
>
___
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
___


Re: [NTG-context] Help needed with Custodia typescript

2022-05-25 Thread Stefan Nedeljkovic via ntg-context
mtxrun --script fonts --list --all --pattern=Custodia
identifier   familyname   fontname filename
 subfont   instances

custodiabold custodia custodiabold
Custodia-Bold.ttf
custodiabolditalic   custodia custodiabolditalic
Custodia-BoldItalic.ttf
custodiaitalic   custodia custodianormalitalic
Custodia-NormalItalic.ttf
custodianormal   custodia custodianormal
Custodia-Normal.ttf
custodianormalitalic custodia custodianormalitalic
Custodia-NormalItalic.ttf
custodiaregular  custodia custodianormal
Custodia-Normal.ttf
custodiasemibold custodia custodiasemibold
Custodia-SemiBold.ttf
custodiasemibolditalic   custodia custodiasemibolditalic
Custodia-SemiBoldItalic.ttf

I tried a different name, but the result was the same.

On Wed, May 25, 2022 at 7:12 PM Henning Hraban Ramm via ntg-context <
ntg-context@ntg.nl> wrote:

> Ah, sorry, didn’t know that. I can’t find an error in your code, but I
> don’t have the (commercial) font to test. What’s the output of the
> mtxrun font lookup?
> Did you try a different shortcut from "mi"?
>
> Hraban
>
> Am 25.05.22 um 18:44 schrieb Stefan Nedeljkovic:
> > It doesn't work for medium weights, as it is not standard. I took my
> > solution from Wolfgang, here:
> > https://tex.stackexchange.com/questions/303648/context-font-weights
> > 
> >
> > On Wed, May 25, 2022 at 6:32 PM Henning Hraban Ramm via ntg-context
> > mailto:ntg-context@ntg.nl>> wrote:
> >
> > Hi Stefan,
> >
> > I never used \definebodyfont but either \definefontfamily or
> > typescripts
> > with \definefontsynonym.
> >
> > Did you try \definefontfamily[custodia][rm][Custodia] ?
> >
> > https://wiki.contextgarden.net/Command/definefontfamily
> > 
> >
> > Hraban
> >
> > Am 25.05.22 um 18:20 schrieb Stefan Nedeljkovic via ntg-context:
> >  >
> >  > Dear list,
> >  >
> >  >
> >  > I'm trying to set up Custodia in LMTX, but the
> > custodiasemibolditalic
> >  > won't show up. It shows up regularly when I run mtxrun --script
> > fonts
> >  > --list --all --pattern=Custodia
> >  >
> >  > I'm attaching the output for reference. Any help would be
> > appreciated.
> >  >
> >  >
> >  > Sincerely,
> >  >
> >  > Stefan
> >  >
> >  > \definefontalternative[md]
> >  >
> >  > \definefontalternative[mi]
> >  >
> >  >
> >  > \starttypescript [serif] [custodia]
> >  >
> >  > \definefontsynonym[Serif] [name:custodianormal][features=default]
> >  >
> >  > \definefontsynonym[SerifItalic]
> >  > [name:custodianormalitalic][features=default]
> >  >
> >  > \definefontsynonym[SerifMedium]
> > [name:custodiasemibold][features=default]
> >  >
> >  > \definefontsynonym[SerifMediumItalic]
> >  > [name:custodiasemibolditalic][features=default]
> >  >
> >  > \definefontsynonym[SerifBold]
> [name:custodiabold][features=default]
> >  >
> >  > \definefontsynonym[SerifBoldItalic]
> >  > [name:custodiabolditalic][features=default]
> >  >
> >  > \stoptypescript
> >  >
> >  >
> >  > \starttypescript [serif] [custodia]
> >  >
> >  > \definebodyfont [default] [rm]
> >  >
> >  > [
> >  >
> >  > tf=Serif sa 1,
> >  >
> >  > it=SerifItalic sa 1,
> >  >
> >  > md=SerifMedium sa 1,
> >  >
> >  > mi=SerifMediumItalic sa 1,
> >  >
> >  > bf=SerifBold sa 1,
> >  >
> >  > bi=SerifBoldItalic sa 1]
> >  >
> >  > \stoptypescript
> >  >
> >  >
> >  >
> >  > \definetypeface [custodia] [rm] [serif] [custodia] [default]
> >  >
> >  >
> >  >
> >  >
> >  >
> >  > \usetypescript[custodia][uc]
> >  >
> >  > \setupbodyfont[custodia,rm,10pt]
> >  >
> >  >
> >  > \starttext
> >  >
> >  >
> >  > Regular Hamburgerfons,
> >  >
> >  > {\it Italic Hamburgerfons},
> >  >
> >  > {\md Medium Hamburgerfons},
> >  >
> >  > {\mi Medium Italic Hamburgerfons},
> >  >
> >  > {\bf Bold Hamburgerfons},
> >  >
> >  > {\bi Bold Italic Hamburgerfons},\\
> >  >
> >  >
> >  > \setff{smallcaps}{Small Caps Hamburgerfons},
> >  >
> >  > \setff{smallcaps}{\it Small Caps Italic Hamburgerfons},
> >  >
> >  > \setff{smallcaps}{\md Small Caps Medium Hamburgerfons},
> >  >
> >  > \setff{smallcaps}{\mi Small Caps Medium Italic Hamburgerfons},
> >  >
> >  > \setff{smallcaps}{\bf Small Caps Bold Hamburgerfons},
> >  >
> >  > \setff{smallcaps}{\bi Small Caps Bold Italic Hamburgerfons}
> >  >
> >  >
> >  > \stoptext
> >  >
>
> 

Re: [NTG-context] Help needed with Custodia typescript

2022-05-25 Thread Henning Hraban Ramm via ntg-context

Congrats!
While I don’t know what \mi is, it’s apparently protected. Maybe there’s 
a hint in the log.


Am 25.05.22 um 19:39 schrieb Stefan Nedeljkovic:

Actually I got lucky just now:

\definefontalternative[md]

\definefontalternative[mc]


Works just fine. Thank you for your suggestion Henning!


On Wed, May 25, 2022 at 7:35 PM Stefan Nedeljkovic > wrote:


mtxrun --script fonts --list --all --pattern=Custodia
identifier               familyname   fontname
filename                      subfont   instances


custodiabold             custodia     custodiabold
Custodia-Bold.ttf
custodiabolditalic       custodia     custodiabolditalic  
Custodia-BoldItalic.ttf
custodiaitalic           custodia     custodianormalitalic
Custodia-NormalItalic.ttf
custodianormal           custodia     custodianormal  
Custodia-Normal.ttf
custodianormalitalic     custodia     custodianormalitalic
Custodia-NormalItalic.ttf
custodiaregular          custodia     custodianormal  
Custodia-Normal.ttf
custodiasemibold         custodia     custodiasemibold
Custodia-SemiBold.ttf
custodiasemibolditalic   custodia     custodiasemibolditalic  
Custodia-SemiBoldItalic.ttf


I tried a different name, but the result was the same.

On Wed, May 25, 2022 at 7:12 PM Henning Hraban Ramm via ntg-context
mailto:ntg-context@ntg.nl>> wrote:

Ah, sorry, didn’t know that. I can’t find an error in your code,
but I
don’t have the (commercial) font to test. What’s the output of the
mtxrun font lookup?
Did you try a different shortcut from "mi"?

Hraban

Am 25.05.22 um 18:44 schrieb Stefan Nedeljkovic:
 > It doesn't work for medium weights, as it is not standard. I
took my
 > solution from Wolfgang, here:
 >
https://tex.stackexchange.com/questions/303648/context-font-weights


 >
>
 >
 > On Wed, May 25, 2022 at 6:32 PM Henning Hraban Ramm via
ntg-context
 > mailto:ntg-context@ntg.nl>
>> wrote:
 >
 >     Hi Stefan,
 >
 >     I never used \definebodyfont but either \definefontfamily or
 >     typescripts
 >     with \definefontsynonym.
 >
 >     Did you try \definefontfamily[custodia][rm][Custodia] ?
 >
 > https://wiki.contextgarden.net/Command/definefontfamily

 >     >
 >
 >     Hraban
 >
 >     Am 25.05.22 um 18:20 schrieb Stefan Nedeljkovic via
ntg-context:
 >      >
 >      > Dear list,
 >      >
 >      >
 >      > I'm trying to set up Custodia in LMTX, but the
 >     custodiasemibolditalic
 >      > won't show up. It shows up regularly when I run mtxrun
--script
 >     fonts
 >      > --list --all --pattern=Custodia
 >      >
 >      > I'm attaching the output for reference. Any help would be
 >     appreciated.
 >      >
 >      >
 >      > Sincerely,
 >      >
 >      > Stefan
 >      >
 >      > \definefontalternative[md]
 >      >
 >      > \definefontalternative[mi]
 >      >
 >      >
 >      > \starttypescript [serif] [custodia]
 >      >
 >      > \definefontsynonym[Serif]
[name:custodianormal][features=default]
 >      >
 >      > \definefontsynonym[SerifItalic]
 >      > [name:custodianormalitalic][features=default]
 >      >
 >      > \definefontsynonym[SerifMedium]
 >     [name:custodiasemibold][features=default]
 >      >
 >      > \definefontsynonym[SerifMediumItalic]
 >      > [name:custodiasemibolditalic][features=default]
 >      >
 >      > \definefontsynonym[SerifBold]
[name:custodiabold][features=default]
 >      >
 >      > \definefontsynonym[SerifBoldItalic]
 >      > [name:custodiabolditalic][features=default]
 >      >
 >      > \stoptypescript
 >      >
 >      >
 >      > \starttypescript [serif] [custodia]
 >      >
 >      > \definebodyfont [default] [rm]
 >      >
 >      > [
 >      >
 >     

[NTG-context] Help needed with Custodia typescript

2022-05-25 Thread Stefan Nedeljkovic via ntg-context
Dear list,


I'm trying to set up Custodia in LMTX, but the custodiasemibolditalic won't
show up. It shows up regularly when I run mtxrun --script fonts --list
--all --pattern=Custodia

I'm attaching the output for reference. Any help would be appreciated.


Sincerely,

Stefan

\definefontalternative[md]

\definefontalternative[mi]


\starttypescript [serif] [custodia]

\definefontsynonym[Serif] [name:custodianormal][features=default]

\definefontsynonym[SerifItalic]
[name:custodianormalitalic][features=default]

\definefontsynonym[SerifMedium] [name:custodiasemibold][features=default]

\definefontsynonym[SerifMediumItalic]
[name:custodiasemibolditalic][features=default]

\definefontsynonym[SerifBold] [name:custodiabold][features=default]

\definefontsynonym[SerifBoldItalic]
[name:custodiabolditalic][features=default]

\stoptypescript


\starttypescript [serif] [custodia]

\definebodyfont [default] [rm]

[

tf=Serif sa 1,

it=SerifItalic sa 1,

md=SerifMedium sa 1,

mi=SerifMediumItalic sa 1,

bf=SerifBold sa 1,

bi=SerifBoldItalic sa 1]

\stoptypescript



\definetypeface [custodia] [rm] [serif] [custodia] [default]





\usetypescript[custodia][uc]

\setupbodyfont[custodia,rm,10pt]


\starttext


Regular Hamburgerfons,

{\it Italic Hamburgerfons},

{\md Medium Hamburgerfons},

{\mi Medium Italic Hamburgerfons},

{\bf Bold Hamburgerfons},

{\bi Bold Italic Hamburgerfons},\\


\setff{smallcaps}{Small Caps Hamburgerfons},

\setff{smallcaps}{\it Small Caps Italic Hamburgerfons},

\setff{smallcaps}{\md Small Caps Medium Hamburgerfons},

\setff{smallcaps}{\mi Small Caps Medium Italic Hamburgerfons},

\setff{smallcaps}{\bf Small Caps Bold Hamburgerfons},

\setff{smallcaps}{\bi Small Caps Bold Italic Hamburgerfons}


\stoptext


fonts2.pdf
Description: Adobe PDF document
___
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
___


Re: [NTG-context] Help needed with slide grid layout

2022-05-25 Thread Stefan Nedeljkovic via ntg-context
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.li...@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
>>
>
___
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
___


[NTG-context] Fwd: ConTeXt meeting registration

2022-05-25 Thread Taco Hoekwater via ntg-context
Hi all,

I just registered myself to attend the ConTeXt meeting in 2022. This is a good 
moment to remind you all of the
meeting (September 12-18, in Dreifelden  DE) and —especially— of the need to 
register if you plan to attend,
either in person or online!

There is no finished programme yet, so I can repeat the call for papers also. 
The theme for this meeting is

  digging deep

But, as in previous years, anything at all related to ConTeXt that you would 
like to share is an acceptable 
subject for a presentation, tutorial, discussion, Q session, demonstration, 
workshop, recital, sketch, or sermon.

More details are on the website:

  https://meeting.contextgarden.net/


Hoping to see many of you in Dreifelden,

Taco

> Begin forwarded message:
> 
> From: 16th ConTeXt Meeting Registration 
> Subject: t...@bittext.nl ConTeXt meeting registration
> Date: 25 May 2022 at 09:08:47 CEST
> To: cg-treasu...@contextgarden.net
> Reply-To: t...@bittext.nl
> 
> Hi Taco,
> 
> Taco Hoekwater has registered at 2022-05-25 09:08:47.


— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)





— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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
___


[NTG-context] Help needed with slide grid layout

2022-05-25 Thread Stefan Nedeljkovic via ntg-context
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
___
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
___


Re: [NTG-context] Callbacks (and nodes) in LuaMetaTeX

2022-05-25 Thread Max Chernoff via ntg-context

Hi list,

I haven't had any luck solving any of the issues from my previous email:

[NTG-context] Callbacks in LuaMetaTeX
https://mailman.ntg.nl/pipermail/ntg-context/2022/105566.html

Admittedly, my problems are fairly obscure (and likely self-inflicted), 
but any suggestions would be greatly appreciated. I've updated my 
ConTeXt installation to the latest version (mkxl 2022.05.11 11:36), but 
this doesn't seem to have changed anything.


Further to the previous email, I have one (semi-related) additional 
question:


6. The LuaTeX manual says that the subtype of "ins" nodes is a number
   corresponding to the insert class. This appears to work correctly.
   The LuaMetaTeX manual says the same thing about "insert" nodes;
   however, the subtype of "insert" nodes appears to always be zero.

   Using this code:

   \startluacode
   local traverse_id = node.traverse_id or node.traverseid
   local insert = node.id"insert" or node.id"ins"

   function test(head)
   for n in traverse_id(insert, head) do
   inspect(n)
   print(n.subtype)
   end

   return head
   end

   nodes.tasks.appendaction("finalizers", "after", "test")
   \stopluacode

   \starttext
   One \footnote{Two} \insert123{Three} Four.
   \stoptext

   In MkIV I get:

  1917 : ins 132>={
["attr"]="",
["cost"]=0,
["depth"]=221327,
["head"]="",
["height"]=790454,
["next"]="nil : ins 123>",
["prev"]="   1842 : hlist 1>",
["subtype"]=132,
["type"]="ins",
   }
   132
   nil : ins 123>={
["attr"]="",
["cost"]=0,
["depth"]=1073741823,
["head"]="",
["height"]=553344,
["prev"]="   1923 : glue 13>",
["subtype"]=123,
["type"]="ins",
   }
   123

   but in MkXL I get:

  3385 : insert 0>={
["attr"]="",
["depth"]=221327,
["height"]=790454,
["id"]="insert",
["list"]="nil : hlist line>",
["next"]="",
   }
   0
   nil : insert 0>={
["attr"]="",
["height"]=553344,
["id"]="insert",
["list"]="nil : hlist line>",
   }
   0

   Is there any way to get an insert's class from its node in MkXL?

Please let me know if you have any ideas for this or any of the earlier 
questions.


Thanks!
-- Max
___
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
___


Re: [NTG-context] item enumeration

2022-05-25 Thread Wolfgang Schuster via ntg-context

Jorge Manuel via ntg-context schrieb am 25.05.2022 um 12:22:

Hi to All

A have this piece of code that works in old ConText versions but with 
new versions (current version: 2022.04.19 19:53) don’t.


\def\legalconversion#1{
 \dorecurse{\numexpr\currentitemlevel-1}{%
 \rawcounter[itemgroup:\currentparentitemgroup][\recurselevel].}%
 #1%
}
\defineconversion[legal][\legalconversion]

How can fix this?


Are you looking for the repeat keyword?

\starttext

\setupitemize[1][width=\widthofstring    {0},distance=1em]
\setupitemize[2][width=\widthofstring  {0.0},distance=1em]
\setupitemize[3][width=\widthofstring{0.0.0},distance=1em]

\startitemize[n,repeat]
    \item one
    \startitemize[n]
    \item one-one
    \item one-two
    \stopitemize
    \item two
    \startitemize[n,repeat]
    \item two-one
    \startitemize[n]
    \item two-one-one
    \item two-one-two
    \stopitemize
    \item two-two
    \stopitemize
\stopitemize

\stoptext

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
___


[NTG-context] item enumeration

2022-05-25 Thread Jorge Manuel via ntg-context
Hi to All

A have this piece of code that works in old ConText versions but with new 
versions (current version: 2022.04.19 19:53) don’t.

\def\legalconversion#1{
 \dorecurse{\numexpr\currentitemlevel-1}{%
 \rawcounter[itemgroup:\currentparentitemgroup][\recurselevel].}%
 #1%
}
\defineconversion[legal][\legalconversion]

How can fix this?

Thanks for you support

Jorge Magalhães
___
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
___


[NTG-context] Microtipography

2022-05-25 Thread Tommaso Gordini via ntg-context
Hello list,

here and there on the Net there are slightly different ways to activate the
microtypography functionality in a ConTeXt document.

 My question is: what is the most correct and clean way to do it?

Thanks in advance
Tommaso
___
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
___


Re: [NTG-context] Help needed with slide grid layout

2022-05-25 Thread Wolfgang Schuster via ntg-context

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
___