* horizontal list of sections/topics? @ 2016-02-12 22:36 Thomas A. Schmitz 2016-02-12 22:58 ` Alan BRASLAU 2016-02-14 11:48 ` Marco Patzer 0 siblings, 2 replies; 4+ messages in thread From: Thomas A. Schmitz @ 2016-02-12 22:36 UTC (permalink / raw) To: mailing list for ConTeXt users Hi, this is a quick question before I start coding: for my next presentation style, I would like to have a list of topics with the current topic highlighted. There are already two styles in simpleslides doing this, but this time, I'd like the list to be horizontal, at the bottom of the slide. Is there already a listalternative for this? Or is it not too complex to have a \definelistalternative do this? Or would it be easier not to rely on the list mechanism but code something from scratch? Thanks for your advice and all best Thomas ___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: horizontal list of sections/topics? 2016-02-12 22:36 horizontal list of sections/topics? Thomas A. Schmitz @ 2016-02-12 22:58 ` Alan BRASLAU 2016-02-14 11:48 ` Marco Patzer 1 sibling, 0 replies; 4+ messages in thread From: Alan BRASLAU @ 2016-02-12 22:58 UTC (permalink / raw) To: Thomas A. Schmitz; +Cc: mailing list for ConTeXt users On Fri, 12 Feb 2016 23:36:47 +0100 "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de> wrote: > Hi, > > this is a quick question before I start coding: for my next > presentation style, I would like to have a list of topics with the > current topic highlighted. There are already two styles in > simpleslides doing this, but this time, I'd like the list to be > horizontal, at the bottom of the slide. Is there already a > listalternative for this? Or is it not too complex to have a > \definelistalternative do this? Or would it be easier not to rely on > the list mechanism but code something from scratch? > > Thanks for your advice and all best > > Thomas Hi Thomas, I use the following code that puts a (vertical) list into the left margin. The present topic is highlighted. You will need to modify your list with before=,after=, etc. Maybe this can give you some ideas. Alan I use it as follows: \def\MarkPage{4} % first 3 slides are title, introduction and outline... I then put this whenever I want to begin a new topic. \Topic [A new topic] \definelist [MyTopics] [criterium=all] \setuplist [MyTopics] [pagenumber=no,alternative=command,command=\FancyEntry,interaction=all] \setupinteraction [state=start,color=,contrastcolor=] \def\MarkPage{0} \def\MyMark{} \def\Topic{\dosingleargument\doTopic} \def\doTopic[#1]{\def\MyMark{#1}\writetolist[MyTopics]{}{#1}} \define[3]\FancyEntry { \framed[width=2.5cm,align={right,nothyphenated},frame=off,offset=0pt] {\doifelse \rawstructurelistsecond \MyMark {\color [simpleslides:contrastcolor] {\switchtobodyfont [12pt]#2\par}} {\color [simpleslides:altcontrastcolor] {\switchtobodyfont [12pt]#2\par}} \blank [small]} } \setuptexttexts[margin][\ifnum\realpageno>\MarkPage\vbox{\placelist[MyTopics]}\fi][] ___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: horizontal list of sections/topics? 2016-02-12 22:36 horizontal list of sections/topics? Thomas A. Schmitz 2016-02-12 22:58 ` Alan BRASLAU @ 2016-02-14 11:48 ` Marco Patzer 2016-02-16 9:20 ` Thomas A. Schmitz 1 sibling, 1 reply; 4+ messages in thread From: Marco Patzer @ 2016-02-14 11:48 UTC (permalink / raw) To: ntg-context On Fri, 12 Feb 2016 23:36:47 +0100 "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de> wrote: > for my next presentation style, I would like to have a list of > topics with the current topic highlighted. There are already two > styles in simpleslides doing this, but this time, I'd like the > list to be horizontal, at the bottom of the slide. Is there > already a listalternative for this? I did something similar for a few presentations and wrote a small module: https://github.com/mpfusion/context-slide > Or is it not too complex to have a \definelistalternative do this? > Or would it be easier not to rely on the list mechanism but code > something from scratch? \definelistalternative is suitable for that, have a look at the code: https://github.com/mpfusion/context-slide/blob/master/t-slide.mkvi#L285-L317 In that style the navigation bar is at the top. You can easily move the layer to the bottom with \setuplayer [layer:toc:section] [y=\dimexpr\paperheight-6\exheight\relax] Marco ___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: horizontal list of sections/topics? 2016-02-14 11:48 ` Marco Patzer @ 2016-02-16 9:20 ` Thomas A. Schmitz 0 siblings, 0 replies; 4+ messages in thread From: Thomas A. Schmitz @ 2016-02-16 9:20 UTC (permalink / raw) To: mailing list for ConTeXt users On 02/14/2016 12:48 PM, Marco Patzer wrote: > I did something similar for a few presentations and wrote a small > module: > > https://github.com/mpfusion/context-slide Thank you very much, your code was very helpful. I was trying to reinvent the wheel – as usually, there was already a solution in ConTeXt... All best Thomas ___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-02-16 9:20 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2016-02-12 22:36 horizontal list of sections/topics? Thomas A. Schmitz 2016-02-12 22:58 ` Alan BRASLAU 2016-02-14 11:48 ` Marco Patzer 2016-02-16 9:20 ` Thomas A. Schmitz
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).