From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/71114 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Document title (was: (no subject)) Date: Sat, 10 Sep 2011 12:20:30 -0400 (EDT) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-713576417-1315671034=:12057" X-Trace: dough.gmane.org 1315671564 18105 80.91.229.12 (10 Sep 2011 16:19:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 10 Sep 2011 16:19:24 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Sep 10 18:19:19 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R2QH1-0006lq-6U for gctc-ntg-context-518@m.gmane.org; Sat, 10 Sep 2011 18:19:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C55A1CAF7E; Sat, 10 Sep 2011 18:19:17 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id wAEawF8UAV9R; Sat, 10 Sep 2011 18:19:15 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 88C35CAF77; Sat, 10 Sep 2011 18:19:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E90B2CAF77 for ; Sat, 10 Sep 2011 18:19:14 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 15ySx8VJfWZX for ; Sat, 10 Sep 2011 18:19:00 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 62303CAF76 for ; Sat, 10 Sep 2011 18:19:00 +0200 (CEST) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p8AGIvaN031591 for ; Sat, 10 Sep 2011 18:18:59 +0200 Original-Received: FROM adi-netbook (bas3-montreal02-1096682717.dsl.bell.ca [65.94.12.221]) By hellskitchen.mr.itd.umich.edu ID 4E6B8DF0.85D4A.8406 ; Authuser adityam; 10 Sep 2011 12:18:56 EDT In-Reply-To: User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) Content-ID: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.82; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08Fv4iWy9 - ac310f7a7f06 - 20110910 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:71114 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-713576417-1315671034=:12057 Content-Type: TEXT/PLAIN; CHARSET=UTF-8; FORMAT=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Content-ID: On Sat, 10 Sep 2011, Wolfgang Schuster wrote: > > Am 22.02.2010 um 15:25 schrieb Roger Mason: > >> Hello, >> >> I'm working on a project to set up exams, basing the work on Aditya's >> asignment class that was published in Practex in 2006. >> >> I have a problem getting title information printed correctly. This is a >> cut-down version: >> >> [=E2=80=A6] >> >> I'm processing this with Mark II. The problems are that >> >> (1) The literal 'Examcourse' is typeset; >> (2) Today's date is typset, not the one entered in the interface; >> (3) The start and stop times are typeset as literals 'Examstart' & 'Exam= stop' > > You forgot the backslash in front of your values. > > It=E2=80=99s also bad style to misuse the \title command for your documen= t title > because \title is only the unnumbered version of \chapter, nothing else. OK. That style was my first real project with ConTeXt, so it some=20 non-canonical setups. These days I use: \definehead[assignment][...] \setuphead[assignment][...] \startassignment[...] ... \stopassignment which gives a much better control over the exported xhtml file. > Another way to create your document title is the following code: > \setupcolors [state=3Dstart] > > \definecolor [colorone] [r=3D0.625,g=3D0,b=3D0] %dark red > \definecolor [colortwo] [b=3D0.625,g=3D0,r=3D0] %dark blue > > \startsetups examtitle > [...] > \stopsetups > > \setvariables[exam][set=3D{\setups[examtitle]}] > > \starttext > > \setvariables > [exam] > [ title=3DMid-term 2010, > course=3DES2917, > date=3D{d=3D17,m=3D2,y=3D2010}, > start=3D{9:00 am}, > stop=3D{11:00 am}] > > \stoptext Nice, I didn't realize that set key could be used this way. If one is also interested in a usable XML export, then some=20 \starttag..\stoptag must be added to the setups. Aditya --8323328-713576417-1315671034=:12057 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --8323328-713576417-1315671034=:12057--