From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/71112 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Document title (was: (no subject)) Date: Sat, 10 Sep 2011 17:39:04 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1315669173 4407 80.91.229.12 (10 Sep 2011 15:39:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 10 Sep 2011 15:39:33 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Sep 10 17:39:29 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 1R2PeS-0007YH-QG for gctc-ntg-context-518@m.gmane.org; Sat, 10 Sep 2011 17:39:28 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 78145CAF81; Sat, 10 Sep 2011 17:39:27 +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 t5KxuAJ+y01s; Sat, 10 Sep 2011 17:39:23 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 89E08CAF77; Sat, 10 Sep 2011 17:39:23 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CD437CAF77 for ; Sat, 10 Sep 2011 17:39:21 +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 MoV8fjeC-tyU for ; Sat, 10 Sep 2011 17:39:10 +0200 (CEST) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id 8A9FECAF76 for ; Sat, 10 Sep 2011 17:39:10 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter2-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p8AFd8Nx031005 for ; Sat, 10 Sep 2011 17:39:10 +0200 Original-Received: by fxh17 with SMTP id 17so389547fxh.14 for ; Sat, 10 Sep 2011 08:39:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=aULaf+Jk9PKmeDc/04PDHtTDUOx9zVx3a/rY7FAffd4=; b=D+PX0NPpiNKzAQXZn85cTImhSNCbhFyVOERcYVBeZji8OcCeso7sn2rZ4Uycvrhp7+ ZSQR39qPZ+C0wcl2uMxoCa3FLu77xJ9r4l0ESZmfQVlQ+7t3ih77aFHx7enYhb4BLIZg HKuROUsT4+E6i3EkwxbsMq6ToYAqNUf/grYFQ= Original-Received: by 10.223.6.91 with SMTP id 27mr1439580fay.115.1315669148313; Sat, 10 Sep 2011 08:39:08 -0700 (PDT) Original-Received: from [192.168.2.31] (p5B0EF973.dip.t-dialin.net [91.14.249.115]) by mx.google.com with ESMTPS id n3sm4666282fae.25.2011.09.10.08.39.06 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 10 Sep 2011 08:39:07 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1244.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0aFv3D8lM - ddc2a4ad00fd - 20110910 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 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:71112 Archived-At: 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: > = > [=85] > = > 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' & 'Exams= top' You forgot the backslash in front of your values. It=92s also bad style to misuse the \title command for your document title because \title is only the unnumbered version of \chapter, nothing else. 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 \startframedtext [ width=3Dbroad, frame=3Doff, align=3Dmiddle, foregroundcolor=3Dcolortwo, background=3Dshadow, ] {\definedfont[RegularSlanted sa 2.5]\getvariable{exam}{title}} \blank \getvariable{exam}{course} \stopframedtext \blank[big] \startcolor[colortwo] \doifelsevariable{exam}{date}{\expanded{\date[\getvariable{exam}{da= te}]}}{\currentdate} \hfill Start: \getvariable{exam}{start} \space Stop: \getvariable{exam}{stop} \stopcolor \blank \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 Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________