From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/97989 Path: news.gmane.org!.POSTED!not-for-mail From: cryo shock Newsgroups: gmane.comp.tex.context Subject: Re: Table of content in presentation example Date: Sat, 13 May 2017 00:01:07 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8069089638120374098==" X-Trace: blaine.gmane.org 1494626507 6235 195.159.176.226 (12 May 2017 22:01:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 12 May 2017 22:01:47 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat May 13 00:01:43 2017 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9Id4-0001T7-Df for gctc-ntg-context-518@m.gmane.org; Sat, 13 May 2017 00:01:42 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2332485C29; Sat, 13 May 2017 00:01:30 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rueeJrt29mPm; Sat, 13 May 2017 00:01:29 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 3181785C2B; Sat, 13 May 2017 00:01:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7168485C27 for ; Sat, 13 May 2017 00:01:28 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wuh5XdiT2NJh for ; Sat, 13 May 2017 00:01:20 +0200 (CEST) Original-Received: from mail-qt0-f171.google.com (mail-qt0-f171.google.com [209.85.216.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id E5AD785A25 for ; Sat, 13 May 2017 00:01:09 +0200 (CEST) Original-Received: by mail-qt0-f171.google.com with SMTP id v27so39558582qtg.2 for ; Fri, 12 May 2017 15:01:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=w/AhExDiyDjQML/OiEZmKKUnhurs8gflFfTO6j/ZiZ8=; b=NOPHwnouvhGI0YPm2F4E0whTJ8tJyq7fNgh1UivrDWuK1DxNHYOD4lK0lb9w/nFOm/ 2FEzbjNk3aj0QJnW5D+p4oylCrHVv3jHpAwiDcqVzlJanybCcAS6GGCclDTJLmSKzDuK a3SEjHmUymP2Yr9wWfXVb4IUTrTpGpvrojhmlNBSo2GU7LfyZ+2h8ZJPQgBKqwioKGrG lbgEUhICgby9gUY55PGBAu7CbNtWlpQfLMwCvpO+XVeBSat9SfBaNx7W6hNPTwqlidRF fO13jdt7Pgsnoo56wNgV8xUjoZccMkTTO7+OzNgUneuzhHp7XIZuywKedV5Z1Ig0+BEO tjSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=w/AhExDiyDjQML/OiEZmKKUnhurs8gflFfTO6j/ZiZ8=; b=tOX5JntCe4u7LaeKBXgA0SRBdLfTNBI32DDbbbw5GCsunY9DRoH5RTJ+GpDUvGs2hG KXYy4PBtjtTiVe9yILC2vk3mxeG8yv6V3dv/Yo63zBDFPlll6xbOXRbR0s3Ch5AXHdQa sE3/6lWucoUOr7KAJngcwgve7Rm9aYETqK8aMi9vZohBseGUxFc+n0an3VbepnKqQr0h lNgGpw1kWrm6peRrekTCHbZ6q6qruI4ydJkzfMiIzMS6h8zHiAxtH90Aen3nhxXddMdS hX9AGzXdvelXViamCWNgEAZSkDEXqplsUR2AMX7cFF4LhVI4hZcxMjDXF6s/MrvBgwuX K2kA== X-Gm-Message-State: AODbwcAP/L9Obr3mhlVF3ClzMeQxibr6eseBlOGoze8G3OuoDYaHOmK1 lSpld4mDsDAw3aGa2HC+h623a16eEA== X-Received: by 10.200.41.247 with SMTP id 52mr5755387qtt.168.1494626468052; Fri, 12 May 2017 15:01:08 -0700 (PDT) Original-Received: by 10.12.133.229 with HTTP; Fri, 12 May 2017 15:01:07 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:97989 Archived-At: --===============8069089638120374098== Content-Type: multipart/alternative; boundary="001a11406f22b34691054f5ad7bb" --001a11406f22b34691054f5ad7bb Content-Type: text/plain; charset="UTF-8" Sorry, another side question: Is there no way to set the distance from the title in the TOC to the page number? I tried alternative=c with width, maxwidth, distance... I still can't set it tighter. Going from the far left to the far right is not good from the audience's POV. I saw some example *.tex from the CTX distribution but none of them seems to use that mechanism except for charts-mkiv. That again uses columns. But in my case it doesn't split the content, but creates only the left column. You can try with the documents and code snippets that I pasted. 2017-05-12 23:03 GMT+02:00 cryo shock : > Sorry, me again. After fiddling around I found out why it didn't work: > because \placecontent was *within* the subject that it had to print. Kind > of a Gordian Knot or what was it called...? > I modified my code a little, so that it looks better, but still one thing > is missing... That's what my code looks like now: > > %D I copied the head settings to "title", so that it has the same style as > the rest > %D "title" will not be counted for TOC: > > \setuphead[title][style=\ssbfc, color=foreground:contrast, > alternative=middle] > > \starttext > > \setvariables > ... > > *\startstandardmakeup* %D else the content is placed at the very top, > ignoring the header... (bad) > > * \title{Table of contents}* > * \vfill* > * \placecontent* > * \vfill* > > *\stopstandardmakeup* > > \startslide[title={First Slide}] > ... > > Yet the one thing I am missing is that the TOC is not in the middle of the > page. > I read some time ago that \vfill has no effect at the very beginning or > the very end of a page. A suggestion was to place a "ghost box" or > something like that at the end or top respectively of the document. Yet I > can't finde the article anymore. Can anybody provide some help with this > or is there maybe a more elegant way to solve the whole TOC situation? > > Greetings, Sebastian > > 2017-05-12 22:16 GMT+02:00 cryo shock : > >> I forgot to add that I also tried a modified \setuplist: >> >> \setuplist[subject][width=2cm,margin=2cm] >> and >> \setuplist[subject][margin=2cm] >> >> I also added the following line to the component: >> >> \setupcombinedlist[content][list={chapter,subject,subsubject >> ,section,subsection,slide}] >> >> Yet the Toc page stays blank... >> >> 2017-05-12 22:08 GMT+02:00 cryo shock : >> >>> Hi guys, I downloaded a sample presentation with component and example >>> presentation from a link off of ctxwiki. I will attach both files and a >>> premade PDF that shows what I mean. >>> >>> So far I edited the component a little in display style, yet I don't >>> know why I can't get a simple table of content on the second slide. >>> >>> In the component I found the following code: >>> >>> \definehead >>> [slide] >>> [subject] >>> [ >>> style=\ssbfc, >>> color=foreground:contrast, >>> alternative=middle, >>> page=yes >>> ] >>> >>> So I understand that the head called slide comes from the head subject, >>> which by default isn't shown in the table of content. So I searched ctxwiki >>> for table of content and modified the above setup to >>> >>> \definehead >>> [slide] >>> [subject] % default: subject >>> [ >>> style=\ssbfc, >>> color=foreground:contrast, >>> alternative=middle, >>> page=yes, >>> * incrementnumber=yes, % keep track of the number* >>> * number=no % but don't show it* >>> ] >>> >>> I also added the following line: >>> >>> \setuplist[subject][width=2cm] >>> >>> The example .tex then starts with >>> >>> \starttext >>> >>> \setvariables >>> ... >>> \startslide >>> ... >>> \stopslide >>> ... >>> \stoptext >>> >>> So I inserted another \startslide \stopslide with \placecontent in >>> between: >>> >>> \startslide[title={T.o.c.}] >>> \placecontent >>> \stopslide >>> >>> Yet the rendered PDF shows only a blank page where the TOC is supposed >>> to be. >>> >>> Can anybody tell me what I am doing wrong? >>> Thanks in advance, >>> >>> Sebastian >>> >> >> > --001a11406f22b34691054f5ad7bb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Sorry, another side question: Is there no way to set the d= istance from the title in the TOC to the page number? I tried alternative=3Dc with width, maxwidth, distance...
I still can&= #39;t set it tighter. Going from the far left to the far right is not good = from the audience's POV. I saw some example *.tex from the CTX distribution but none of them seems to u= se that mechanism except for charts-mki= v. That again uses columns. But in my case it doesn't split the = content, but creates only the left column. You can try with the documents a= nd code snippets that I pasted.

<= div class=3D"gmail_quote">2017-05-12 23:03 GMT+02:00 cryo shock <axtef= fekt@gmail.com>:
Sorry, me again. After fiddling around I found out why it didn'= ;t work: because \placecontent was within the subject that it had to= print. Kind of a Gordian Knot or what was it called...?
I modified my = code a little, so that it looks better, but still one thing is missing... T= hat's what my code looks like now:

%D I copied the head settings to "title&= quot;, so that it has the same style as the rest
%D "title" will not be counted for TOC= :

\setuphead[title][style=3D\ssbfc= , color=3Dforeground:contrast, alternative=3Dmiddle]
<= font face=3D"monospace, monospace">
\starttext

\setvariab= les
...

\startstandardmakeup %D else the content is pl= aced at the very top, ignoring the header... (bad)

=C2=A0 \title{Table of contents}
=C2=A0 \vfill
=C2=A0 \placecontent
<= font face=3D"monospace, monospace">=C2=A0 \vfill
=C2=A0=C2=A0
\stopstandardmakeup
=C2=A0 =C2=A0=C2=A0
\startslide[title=3D{First Slide}]
...

Yet the one thing I am missing is that the TOC is not = in the middle of the page.
I read some time ago that \vfill=C2=A0 has = no effect at the very beginning or the very end of a page. A suggestion was= to place a "ghost box" or something like that at the end or top = respectively of the document. Yet I can't finde the article anymore.=C2= =A0Can anybod= y provide some help with this or is there maybe a more elegant way to solve= the whole TOC situation?

Greetings, Sebastian

2017-05-1= 2 22:16 GMT+02:00 cryo shock <axteffekt@gmail.com>:
I forgot to add that I also tr= ied a modified \setuplist:

\setuplist[subject][width=3D2cm,margin=3D2cm]
=
and
\setuplist[subject][= margin=3D2cm]

I also added the fol= lowing line to the component:

\setupcombinedlist[content][list=3D{chapter,subject,su= bsubject,section,subsection,slide}]

<= div>Yet the Toc page stays blank...

2017-05-12 22:08 GMT+02:00 cryo shock = <axteffekt@gmail.com>:
<= div dir=3D"ltr">Hi guys, I downloaded a sample presentation with component = and example presentation from a link off of ctxwiki. I will attach both fil= es and a premade PDF that shows what I mean.

So far I ed= ited the component a little in display style, yet I don't know why I ca= n't get a simple table of content on the second slide.

In the component I found the following code:

<= div>
\definehead
<= font face=3D"monospace, monospace">=C2=A0 =C2=A0 [slide]
<= font face=3D"monospace, monospace">=C2=A0 =C2=A0 [subject]
=C2=A0 =C2=A0 [
=C2=A0 =C2=A0 =C2=A0 style=3D\ssbfc,<= /div>
=C2=A0 =C2=A0 =C2=A0 color=3D= foreground:contrast,
= =C2=A0 =C2=A0 =C2=A0 alternative=3Dmiddle,
=C2=A0 =C2=A0 =C2=A0 page=3Dyes
=C2=A0 =C2=A0 ]

<= /div>
So I understand that the head called slide comes from the head \defineh= ead
=C2=A0 =C2=A0 [sli= de]
=C2=A0 =C2=A0 [sub= ject] =C2=A0% default: subject
=C2=A0 =C2=A0 [
=C2=A0 =C2=A0 =C2=A0 style=3D\ssbfc,
=C2=A0 =C2=A0 =C2=A0 color=3Dforeground:contrast,<= /div>
=C2=A0 =C2=A0 =C2=A0 alternat= ive=3Dmiddle,
=C2=A0 = =C2=A0 =C2=A0 page=3Dyes,
=C2=A0 =C2=A0 =C2=A0 incrementnumber=3Dyes, =C2=A0% keep track of th= e number
=C2=A0= =C2=A0 =C2=A0 number=3Dno =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 % but = don't show it
= =C2=A0 =C2=A0 ]
=
I also ad= ded the following line:

\setupl= ist[subject][width=3D2cm]

The example .tex=C2=A0then starts with

\starttext

\setvariables
...
\startslide
...
\stopslide
...
\stoptext

So I in= serted another \startslide \stopslide with \placecontent in between:
<= div style=3D"font-family:arial,helvetica,sans-serif">
\startslide[title=3D{T.o.c.}]
=C2=A0 \placecontent
=
\stopslide

Yet the rendered PDF shows only a blank pa= ge where the TOC is supposed to be.

Can anybody tell me what I am doing wrong?
Thanks in advance,

Sebastian



--001a11406f22b34691054f5ad7bb-- --===============8069089638120374098== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============8069089638120374098==--