From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/56455 Path: news.gmane.org!not-for-mail From: Roger Mason Newsgroups: gmane.comp.tex.context Subject: (no subject) Date: Mon, 22 Feb 2010 10:55:27 -0330 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1266848748 19248 80.91.229.12 (22 Feb 2010 14:25:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 22 Feb 2010 14:25:48 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Feb 22 15:25:44 2010 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 1NjZEF-0005Ff-TO for gctc-ntg-context-518@m.gmane.org; Mon, 22 Feb 2010 15:25:43 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2C5C5C9D00; Mon, 22 Feb 2010 15:25:40 +0100 (CET) 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 4bZumxKjIfKE; Mon, 22 Feb 2010 15:25:36 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 19DE4C9C85; Mon, 22 Feb 2010 15:25:36 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2488AC9C85 for ; Mon, 22 Feb 2010 15:25:34 +0100 (CET) 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 LbV1fbI38ZVX for ; Mon, 22 Feb 2010 15:25:29 +0100 (CET) Original-Received: from fitzgerald.ucs.mun.ca (fitzgerald.ucs.mun.ca [134.153.232.57]) by balder.ntg.nl (Postfix) with ESMTP id DB854C9C61 for ; Mon, 22 Feb 2010 15:25:28 +0100 (CET) Original-Received: from perthite.esd.mun.ca (perthite.esd.mun.ca [134.153.36.125]) by fitzgerald.ucs.mun.ca (8.13.1/8.13.1) with ESMTP id o1MEPRfR021226 for ; Mon, 22 Feb 2010 10:55:27 -0330 Original-Received: from perthite.esd.mun.ca (perthite.esd.mun.ca [134.153.36.125]) by perthite.esd.mun.ca (8.14.0/8.14.0) with ESMTP id o1MEPRLL032355 for ; Mon, 22 Feb 2010 10:55:27 -0330 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-Scanned-By: MIMEDefang 2.67 on 134.153.232.57 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:56455 Archived-At: 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: \setupcolors [state=start] \definecolor [colorone] [r=0.625,g=0,b=0] %dark red \definecolor [colortwo] [b=0.625,g=0,r=0] %dark blue \def\exam[#1] {\getrawparameters [Exam] [ title= course=, date=, start=, stop=, #1] \title{\Examtitle}} \definefont [BigFontOne] [RegularSlanted sa 2.5] \definefont [BigFontTwo] [Regular sa 1.5] \setuphead[title] [ style=\BigFontOne, command=\examtitle, before={}, after={\blank[big] \bgroup \colortwo Date: \expanded{\date[Examdate]} \hfill Start: \expanded{Examstart} Stop: \expanded{Examstop} \egroup\blank}, ] %D This macro does the actual typesetting of the title \def\examtitle#1#2% {\framed[ width=broad, frame=off, align=middle, foregroundcolor=colortwo, % I want a shadow around the title frame background=shadow] {#2\\{Examcourse}}} \exam[ title=Mid-term 2010, course=ES2917, date={d=17,m=2,y=2010}, start={9:00 am}, stop={11:00 am} ] 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' & 'Examstop' Thanks for any help, Roger %%% Local Variables: %%% mode: context %%% TeX-master: t %%% End: ___________________________________________________________________________________ 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 ___________________________________________________________________________________