From: Roger Mason <rmason@mun.ca>
To: ntg-context@ntg.nl
Subject: Exams
Date: Mon, 22 Feb 2010 13:54:45 -0330 [thread overview]
Message-ID: <y65iq9p89pe.fsf@perthite.esd.mun.ca> (raw)
Hello,
Sorry, I sent this message to the list without a subject earlier today.
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
___________________________________________________________________________________
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
___________________________________________________________________________________
next reply other threads:[~2010-02-22 17:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-22 17:24 Roger Mason [this message]
2010-02-22 17:36 ` Exams Aditya Mahajan
2010-02-22 20:31 ` Exams Roger Mason
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=y65iq9p89pe.fsf@perthite.esd.mun.ca \
--to=rmason@mun.ca \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).