[NTG-context] Custom TOC with makeup and setups

2023-05-10 Thread Jethro Djan via ntg-context
Hello,

I am trying to create a presentation where at the start of each section in
my presentation, a custom TOC page is shown. When I am at a particular
section, the TOC will grey out all other sections (not implemented in my
MWE). I have tried different ways but I find using makeups for the TOC page
works ok (following
https://wiki.contextgarden.net/Command/setuplistalternative and Aditya's
presentation slides on their blog). My challenge is that when a makeup page
is inserted, it leaves a page with the section name blank before it. How do
I fix it? Any other way to achieve this is also welcome. My MWE:

\setuppapersize[S6]
\startuseMPgraphic{itemize:toc}
  save p; path p;
  p := ( (0,-0.5)--(0,0.5)--(0.866,0)--cycle ) scaled 1.5ExHeight;
  fill p withcolor \MPcolor{Black};
\stopuseMPgraphic

\definesymbol[itemize:toc][\useMPgraphic{itemize:toc}]

\definelistalternative
  [toclist]
  [renderingsetup=list:toclist]

\setupheadtext[section=Table of Contents]

\startsetups toclist
  \framed[align=normal, frame=off]{\placelist [section] [criterium=all,
alternative=toclist]}
\stopsetups

\definehspace[tspace][4cm]
\setupframed[
  height=fit,
  width=fit,
  location=middle,
  frame=off,
  align=normal,
  offset=none,
]
\startsetups list:toclist
  {\hbox to \hsize \bgroup
  \hspace[tspace]
  \framed[width=10mm,align=flushleft]{\symbol[itemize:toc]}%
  \framed[empty=yes]{\currentlistentrynumber\currentlistentrypagenumber}%
  \doifelse\currentlistentrylocation{\namedstructureheadlocation{section}}{%
\framed[align=flushright,]{{\bfb\currentlistentrytitle}}%
  }{\framed[align=flushright,]{\currentlistentrytitle}}
  \egroup}
\stopsetups



 \definemakeup
  [toc]
  [
doublesided=no,
page=yes,
bottom=,
top=,
pagestate=start,
headerstate=empty,
footerstate=empty,
setups={toclist},
before=\setups{toc:setups},
  ]
\startsetups toc:setups
  \setupbackgrounds[page][background=color, backgroundcolor=blue]
\stopsetups

 \definemakeup
  [standard]
  [
doublesided=no,
page=right,
pagestate=start,
headerstate=empty,
footerstate=empty,
before=\setups{standard:setups},
  ]

 \startsetups standard:setups
\setupbackgrounds[page][background=color, backgroundcolor=lightgray]
 \stopsetups

 \define\TOC{
  \starttocmakeup
  \stoptocmakeup
 }

\starttext

\startstandardmakeup
  \title{Your Title Here}
\stopstandardmakeup

\startsection[title={Motivation}]
\TOC
\startitemize

\item something cool
\item something else cool

\stopitemize
\stopsection

\startsection[title={Main strands of theory}]
\TOC
\startitemize

\item another cool thing
\item cool too

\stopitemize
\stopsection


\stoptext

Thanks in advance.

Jethro
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] regular online meet-up

2023-05-10 Thread Henning Hraban Ramm via ntg-context

Reminder: This is in 2 hours. CU!

Am 07.05.23 um 11:44 schrieb Henning Hraban Ramm via ntg-context:

You’re invited to join on Wednesday, May 10th, 15:00 CEST (UTC+2)

at https://lecture.senfcall.de/hen-rbr-rku-oke
(same, but shorter: https://v34h.de/ctxmtg)

ConTeXt users of all levels are welcome!

Next meeting will be on June 14th.



(Same blurb as every time:)

[Howto]
* No special software installation required; most modern browsers should 
work (WebRTC required).

* Open the above URL, accept the privacy statement,
* enter your name,
* click "join" (or "start" if you’re the first),
* click "with microphone", allow your browser to access it, check the 
audio.
* Your microphone is muted if you join. Activate microphone and/or 
camera with the buttons at the bottom.

* Minimize the default presentation with the "screen" button, bottom right.

* If you’d like to share your screen or upload a file, you can make 
yourself the presenter: Click on your user name, change the setting, 
then you’ll see the "screen sharing" button beside the camera button; 
also there’s now "manage presentations" behind the "plus" button.
Beware there is only one presenter at a time, so don’t kill someone 
else’s presentation.


[Technical hints]
* Sound is usually better if you use a headset (less noise for everyone).

* Connection problems are mostly due to low bandwidth or high latency on 
your side, e.g. with mobile connections.

* If audio/video doesn’t work for you, you can still use the text chat.
* Screen sharing needs a lot of bandwidth.

* BigBlueButton documentation applies: 
https://bigbluebutton.org/teachers/tutorials/


[Netiquette]
* Please use a name that we recognize from here. Some feel uncomfortable 
with anonymous lurkers.

* Mute your microphone while you’re not talking.
* It’s nice to show your face at least when you join.
* If there are connection problems, stop camera sharing.
* The room is set to “everyone’s a moderator“, I trust you...

See you, Hraban
___
If your question is of interest to others as well, please add an entry 
to the Wiki!


maillist : ntg-context@ntg.nl / 
https://www.ntg.nl/mailman/listinfo/ntg-context

webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] This is rmally done by loading special math fonts into the math family slots.

2023-05-10 Thread Carlos via ntg-context


On Tue, May 09, 2023 at 05:28:11PM -0400, Carlos via ntg-context wrote:
> 
> On Tue, May 09, 2023 at 07:00:15PM +0200, Hans Hagen via ntg-context wrote:
> > 
> > On 5/9/2023 6:24 PM, Carlos via ntg-context wrote:
> > 
> > > With that being said, in that sense (not that I need it though, to be
> > > honest), the luatex lmtx approach is more of an instant gratification,
> > > whereas with latex and the metrics of the file afterwards, any math
> > > environment is certainly possible, while loading myriad and minion et co
> > > without an error
> > > 
> > > I still stand for what I said earlier. That lot and their heirs already
> > > made their money by shoving down acroread all over. It's no secret
> > Normally context will fall bakc on latin modern but when you explicitly load
> > a font setup and that one doesn't have math fonts it will not be set up
> > right and then you get these parameter relates messages. The minion math
> > font is supported when you have it installed although we're not sure if the
> > tweaks will work okay. I only have an old evaluation copy that I can't use
> > outside testing anyway, and I don't have the minion fonts that can be used
> > in documents (acrobat fonts are only for display) so I never use minion
> > anyway.
> > 
> > Although every math environment is possible (after all there are not than
> > manyu math fonts) one always has to match them properly with serif and sans
> > fonts (relative scaling etc).
> > 
> > When someone wants support for some commercial font, they have to buy us a
> > few copies with no constraints. (Normally in a project we just get them
> > anyway.) There are plenty of examples in the type-imp-* files that show the
> > way.
> > 
> > Hans
> 
> Thanks for the info Hans. I'll check it out again. About a month or
> so ago I went over the fonts used in  math with luatex lmtx  and it
> was more of a refreshing course than anything else. TeX Gyre and so
> forth. And a  similar approach which I used in handling these fonts
> in mkii before.
> 
> Recently someone made the suggestion of working or the intent to work or
> the suggestion or whatever of tackling mnssymbol on luatex. I don't know about
> that but.. I don't know. Perhaps I misunderstood
> 
> I've used this family of minion and myriad before, but I still think
> it has the same audience than the glyphs used by the chinese at the
> beginning of the typesetting history> weddings, funerals, pamphlets,
> etiquette cards, calendars, arithmetic tables and so forth. It has more
> flare than perhaps a lucida. But the latter, subjectively speaking,
> is perhaps more dry but also more straightforward and legible. For me
> anyway.
> 

By the way. Slightly unrelated to all of this but your paper on tug
about the adjustments to lucida is impressive.

https://tug.org/TUGboat/tb43-3/tb135hagen-lucida.pdf

But lucida is also just an uncial descendant. Bland, squashed, and
easily complex to adjust because of those very same features. Lo
and behold if anything like that is tried out on minion for that
matter. But for readability purposes, lucida is definitely a step ahead. 
This is all subjective of course. 

thanks for that work and paper on lucida Hans, Mikael


> But when I see that a simple page and nothing fancy really, cannot be
> processed under lmtx no matter how much tweaking is performed under
> the hood something is not quite right
> 
> the same (similar) screenshot attached here is under latex. Something
> similar is what I wanted to have, but couldn't.
> 
> I'll check out your suggestion. Thanks again Hans
> 
> 
> > 
> > -
> >   Hans Hagen | PRAGMA ADE
> >   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> >tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> > -
> > 
> > ___
> > If your question is of interest to others as well, please add an entry to 
> > the Wiki!
> > 
> > maillist : ntg-context@ntg.nl / 
> > https://www.ntg.nl/mailman/listinfo/ntg-context
> > webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > wiki : https://contextgarden.net
> > ___
> > 
> 
> -- 
> AmigaDOS Beer: The company has gone out of business, but their recipe has
> been picked up by some weird German company, so now this beer will be an
> import.  This beer never really sold very well because the original
> manufacturer didn't understand marketing. Like Unix Beer, AmigaDOS Beer
> fans are an extremely loyal and loud group. It originally came in a
> 16-oz. can, but now comes in 32-oz.  cans too.  When this can was
> originally introduced, it appeared flashy and colorful, but the