* Presentation help
@ 2006-08-17 15:22 Adam Duck
2006-08-17 16:48 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Adam Duck @ 2006-08-17 15:22 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Presentation help
2006-08-17 15:22 Presentation help Adam Duck
@ 2006-08-17 16:48 ` Hans Hagen
2006-08-18 10:36 ` Adam Duck
0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2006-08-17 16:48 UTC (permalink / raw)
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
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Presentation help
2006-08-17 16:48 ` Hans Hagen
@ 2006-08-18 10:36 ` Adam Duck
2006-08-18 18:06 ` Adam Duck
0 siblings, 1 reply; 4+ messages in thread
From: Adam Duck @ 2006-08-18 10:36 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Presentation help
2006-08-18 10:36 ` Adam Duck
@ 2006-08-18 18:06 ` Adam Duck
0 siblings, 0 replies; 4+ messages in thread
From: Adam Duck @ 2006-08-18 18:06 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-08-18 18:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-17 15:22 Presentation help Adam Duck
2006-08-17 16:48 ` Hans Hagen
2006-08-18 10:36 ` Adam Duck
2006-08-18 18:06 ` Adam Duck
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).