From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44529 Path: news.gmane.org!not-for-mail From: "Adrian Drury" Newsgroups: gmane.comp.tex.context Subject: Best approach for project with three-part headings and table of contents references? Date: Wed, 1 Oct 2008 21:59:43 -0700 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0456546236==" X-Trace: ger.gmane.org 1222972564 29292 80.91.229.12 (2 Oct 2008 18:36:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Oct 2008 18:36:04 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 02 07:04:01 2008 connect(): Connection refused Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KlGM3-0004is-F9 for gctc-ntg-context-518@m.gmane.org; Thu, 02 Oct 2008 07:03:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9DB741FED8; Thu, 2 Oct 2008 07:02:54 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01756-06-2; Thu, 2 Oct 2008 07:02:01 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 78ED71FE9C; Thu, 2 Oct 2008 07:02:01 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DAC3F1FE9C for ; Thu, 2 Oct 2008 07:01:59 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01779-01 for ; Thu, 2 Oct 2008 07:01:23 +0200 (CEST) Original-Received: from rv-out-0708.google.com (rv-out-0708.google.com [209.85.198.245]) by ronja.ntg.nl (Postfix) with ESMTP id 318281FE9A for ; Thu, 2 Oct 2008 06:59:44 +0200 (CEST) Original-Received: by rv-out-0708.google.com with SMTP id f25so854805rvb.14 for ; Wed, 01 Oct 2008 21:59:43 -0700 (PDT) Original-Received: by 10.141.197.21 with SMTP id z21mr4939721rvp.91.1222923583470; Wed, 01 Oct 2008 21:59:43 -0700 (PDT) Original-Received: by 10.141.91.12 with HTTP; Wed, 1 Oct 2008 21:59:43 -0700 (PDT) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:44529 --===============0456546236== Content-Type: multipart/alternative; boundary="----=_Part_80808_27729846.1222923583451" ------=_Part_80808_27729846.1222923583451 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I am trying to figure out how best to use ConTeXt for a project. Essentially I want to format postings on a message board for printing in a book, and provide multiple "tables of contents" for the postings (more information further down, and questions at the bottom). I'm sure that everything I want to do can be done with ConTeXt, but I'm a ConTeXt beginner, and it looks as if there's a lot of complexity to do this. Each post has a title, an author, a date, and the text of the post. I'd like to arrange the information roughly like this: Title of the post Author author - Date date -------------------------------------- Text of the post... text text text text text text. Then I'd like to create a "table of contents" that lists posting titles by date, like this: January 1, 2008 Title title title ........................ 10 Another title .......................... 11 January 2, 2008 Yet another title ..................... 12 Putting the author in there also might be nice, like this: January 1, 2008 Title title title (John Doe).......... 10 Another title (Jane Doe)........... 11 January 2, 2008 Yet another title (John Doe)..... 12 I'd also like to have a "table of contents" that lists posting titles by author, like this Jane Doe A title ..................................... 14 Another title .............................45 John Doe Title title title ............................ 35 Another title .............................40 My questions: 1) How complex is this (for a beginner) to do in ConTeXt? I am very comfortable with Perl, so I thought I could write a Perl script to parse the posts and generate such tables of contents, with lots of \reference, \at, and \about commands. If this needs significant complexity to solve, I would prefer to handle the complexity with Perl, and keep the ConTeXt simple, so I can understand it. 2) Can I (ab)use the existing heading commands (\title, \subject, \setuphead, etc) to arrange and reference the title, author, and date? If so, can anyone provide a hint of how to do the headings and referencing? Will the existing heading commands let me reference the title, author, and date values for use in my "table of contents"? It looks as if I would have to create my own command that formatted the heading information how I wanted it, and set up the three references. I looked at "Alternative mechanisms" in the cont-eni.pdf, but that didn't seem to describe this type of flexibility. 3) If I can use the existing heading commands (question 2), can I also use the existing index and/or table of contents commands (\setuplist, \placecontent, etc)? And like question 2, can anyone provide a hint of how to do it? It looked to me as if a lot of custom ConTeXt code would be necessary, and that I would have to build my own table of contents entry by entry. Thank you very much, Adrian ------=_Part_80808_27729846.1222923583451 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
I am trying to figure out how best to use ConTeXt for a project. Essentially I want to format postings on a message board for printing in a book, and provide multiple "tables of contents" for the postings (more information further down, and questions at the bottom). I'm sure that everything I want to do can be done with ConTeXt, but I'm a ConTeXt beginner, and it looks as if there's a lot of complexity to do this.

Each post has a title, an author, a date, and the text of the post. I'd like to arrange the information roughly like this:

       Title of the post
Author author  - Date date
--------------------------------------
Text of the post... text text text
text text text.

Then I'd like to create a "table of contents" that lists posting titles by date, like this:
January 1, 2008
 Title title title ........................ 10
 Another title .......................... 11
January 2, 2008
 Yet another title ..................... 12

Putting the author in there also might be nice, like this:
January 1, 2008
 Title title title (John Doe).......... 10
 Another title (Jane Doe)........... 11
January 2, 2008
 Yet another title (John Doe)..... 12

I'd also like to have a "table of contents" that lists posting titles by author, like this
Jane Doe
 A title ..................................... 14
 Another title .............................45
John Doe
 Title title title ............................ 35
 Another title .............................40

My questions:

1) How complex is this (for a beginner) to do in ConTeXt? I am very comfortable with Perl, so I thought I could write a Perl script to parse the posts and generate such tables of contents, with lots of \reference, \at, and \about commands. If this needs significant complexity to solve, I would prefer to handle the complexity with Perl, and keep the ConTeXt simple, so I can understand it.

2) Can I (ab)use the existing heading commands (\title, \subject, \setuphead, etc) to arrange and reference the title, author, and date? If so, can anyone provide a hint of how to do the headings and referencing? Will the existing heading commands let me reference the title, author, and date values for use in my "table of contents"? It looks as if I would have to create my own command that formatted the heading information how I wanted it, and set up the three references. I looked at "Alternative mechanisms" in the cont-eni.pdf, but that didn't seem to describe this type of flexibility.

3) If I can use the existing heading commands (question 2), can I also use the existing index and/or table of contents commands (\setuplist, \placecontent, etc)? And like  question 2, can anyone provide a hint of how to do it? It looked to me as if a lot of custom ConTeXt code would be necessary, and that I would have to build my own table of contents entry by entry.

Thank you very much,
Adrian

------=_Part_80808_27729846.1222923583451-- --===============0456546236== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0456546236==--