Re: [NTG-context] Presentation help
Thanks, all works out nicely. So, I have another problem. According to my friend, every good presentation should highlight the current section in the table of contents. So I defined this: #v+ \def\mycontext#1{% \edef\stringa{\fetchmark[section][current]} \edef\stringb{#1} \strut \ifx\stringa\stringb \color[red]{#1} \else #1 \fi } #v- This works with \mycontext{a subject} and even \mycontext{\fetchmark[section][current]} but doesn't work with placelist[section] with this setup: #v+ \setuplist[section][criterium=all, symbol=none, numbercommand=$\bullet$, textcommand=\mycontext, pagenumber=no, width=\baselineskip] #v- I think it's because textcommand gets more then just the text as parameter. But there is no deeptextcommand in setuplist. cu, Adam. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Presentation help
Yes, it turns out, this was somehow my fault. I had spaces in my section titles, and somehow this doesn't turn out right. Anyways, with this command: #v+ \def\mycontext#1{ \edef\stringa{\ignorespaces\fetchmark[section][current]} \edef\stringb{\ignorespaces#1} \strut\ifx\stringa\stringb \color[red]{#1} \else #1 \fi} #v- I get it right even with spaces in them. But this doesn't work if I have an exclamation mark in a section title -- I don't say it's a good idea to have an exclamation mark in the section title, but... Is there any way to solve this? cu, Adam. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Presentation help
So, I showed ConTeXt to a friend of mine. He said he wanted to try it and now -- well, you don't want to know how he swears :). We're trying to do a presentation... Anyways, I'm trying to help him... But I (we) have some problems: I managed to write something like this (it's never been so hard to write a newline!): #v+ \startsetups{myhead} \vbox{% \getmarking[sectionnumber]\crlf\getmarking[section]\par \hskip12pt\getmarking[subsectionnumber]\crlf\getmarking[subsection]} \stopsetups \setupheadertexts[] \setupheadertexts[\setups{myhead}][pagenumber] #v- That does, what it should: display section and subsection atop of each other. So, but now, he wants to have an Introduction, which should show up in the header but without a number. I tried \subject but \getmarking[section] only returns the section, not the subject (I thought they were interlinked somehow, but...). So, is there any way to do this apart from \ifx\getmarking[sectionnumber]{-1} or so? Next question: is it possbible to align the text of, well, text, i.e. the body text, vertically centered on every page? \setupbackgrounds won't work here. On a side note: why does it have an align-parameter, then? This one is a bonus for me: can someone point me in a direction where to start to build a progress meter? beamerstyle has a nice template where it shows the section as text and the subsections as open dots (all of them) with the current subsection as a filled dot. Well, that would be all, thanks for listening, Adam. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Presentation help
Adam Duck wrote: So, I showed ConTeXt to a friend of mine. He said he wanted to try it and now -- well, you don't want to know how he swears :). We're trying to do a presentation... Anyways, I'm trying to help him... But I (we) have some problems: I managed to write something like this (it's never been so hard to write a newline!): #v+ \startsetups{myhead} \vbox{% \getmarking[sectionnumber]\crlf\getmarking[section]\par \hskip12pt\getmarking[subsectionnumber]\crlf\getmarking[subsection]} \stopsetups \setupheadertexts[] \setupheadertexts[\setups{myhead}][pagenumber] #v- That does, what it should: display section and subsection atop of each other. So, but now, he wants to have an Introduction, which should show up in the header but without a number. I tried \subject but \getmarking[section] only returns the section, not the subject (I thought they were interlinked somehow, but...). So, is there any way to do this apart from \ifx\getmarking[sectionnumber]{-1} or so? \startfrontmatter \section{...} \stopfrontmatter will provide a mark but not number; so ... provide extra structure Next question: is it possbible to align the text of, well, text, i.e. the body text, vertically centered on every page? \setupbackgrounds won't work here. On a side note: why does it have an align-parameter, then? because it inherits from \framed \setupmakeup[standard][headerstate=start,align=middle] \startstandardmakeup \input tufte \stopstandardmakeup This one is a bonus for me: can someone point me in a direction where to start to build a progress meter? beamerstyle has a nice template where it shows the section as text and the subsections as open dots (all of them) with the current subsection as a filled dot. Well, that would be all, thanks for listening, search for interactionbar - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context