From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42949 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: Understanding ConTeXt better. What does \doattributes do? Date: Mon, 4 Aug 2008 11:39:46 +0200 Message-ID: <115224fb0808040239h52953bcencf030f2cee65e26a@mail.gmail.com> References: <115224fb0808040237t7bb78be4n418f88513dbd048@mail.gmail.com> 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: ger.gmane.org 1217842924 25643 80.91.229.12 (4 Aug 2008 09:42:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Aug 2008 09:42:04 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 04 11:42:54 2008 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 1KPwaM-0008Pg-Cz for gctc-ntg-context-518@m.gmane.org; Mon, 04 Aug 2008 11:42:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AC78D1FC90; Mon, 4 Aug 2008 11:41:40 +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 12597-03-3; Mon, 4 Aug 2008 11:40:51 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9AB101FBBE; Mon, 4 Aug 2008 11:40:50 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 68FAF1FBAA for ; Mon, 4 Aug 2008 11:40:48 +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 06363-04-13 for ; Mon, 4 Aug 2008 11:40:08 +0200 (CEST) Original-Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.241]) by ronja.ntg.nl (Postfix) with ESMTP id D8D4F1FC71 for ; Mon, 4 Aug 2008 11:39:47 +0200 (CEST) Original-Received: by an-out-0708.google.com with SMTP id c8so301762ana.14 for ; Mon, 04 Aug 2008 02:39:47 -0700 (PDT) Original-Received: by 10.100.249.10 with SMTP id w10mr19228989anh.156.1217842786893; Mon, 04 Aug 2008 02:39:46 -0700 (PDT) Original-Received: by 10.100.109.20 with HTTP; Mon, 4 Aug 2008 02:39:46 -0700 (PDT) In-Reply-To: <115224fb0808040237t7bb78be4n418f88513dbd048@mail.gmail.com> Content-Disposition: inline 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:42949 Archived-At: On Mon, Aug 4, 2008 at 11:37 AM, Wolfgang Schuster wrote: > On Sun, Aug 3, 2008 at 11:29 AM, Elliot Clifton wrote: >> Hi, >> >> I've been reading the Document Titles page on the wiki >> . I'm trying to better >> understand how ConTeXt works. Could someone explain what >> \doattributes does? It doesn't appear to be covered in the Inside >> ConTeXt section of the wiki. > > \setupcolors[state=start] > > \starttext > > % \my.. : namespace > % ..style: you could use any value defined with \definecolor > % ..color: one of ConTeXt's font/style switching command like \bf, \ss, \tfa ... % \my.. : namespace % ..color: you could use any value defined with \definecolor % ..style: one of ConTeXt's font/style switching command like \bf, \ss, \tfa ... > \def\mycolor{red} > \def\mystyle{bold} > > \doattributes{my}{style}{color}{Red bold text.} > > \def\mycolor{green} > \def\mystyle{\ss\tfb} > > \doattributes{my}{style}{color}{Green big text.} > > \stoptext > >> Also on the subject of Document Titles. Why is it that \setuptitle is >> called several times at the end of the source code? > > The \setuptitle command is used to set the color and style for the > elements and the version with one argument is used to set the text. > > \setuptitle > [\c!title] > [\c!style=\tfd, > \c!color=] > > Print the 'document title' in a bigger size. > > \setuptitle > [\c!author,\c!date] > [\c!style=\tfa, > \c!color=] > > Print the 'author name' and the 'date' in a slightly bigger size. > > \setuptitle > [\c!title=, > \c!author=, > \c!date=\currentdate] > > No content for the 'author' and the 'document title' by default but set > the value 'date' to the current day. Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________