From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30518 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: Re: \definesomething? Date: Sun, 27 Aug 2006 06:04:21 +0200 Message-ID: <6faad9f00608262104w8fc3ab9l66f7cb75ad6d75ab@mail.gmail.com> References: <3e73596b0608231709h7b915197o232c7324c27b3621@mail.gmail.com> <3e73596b0608262032y255be8d8oefc433604ae774ac@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1156651483 11459 80.91.229.2 (27 Aug 2006 04:04:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 27 Aug 2006 04:04:43 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Aug 27 06:04:41 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1GHBt2-00025E-Eu for gctc-ntg-context-518@m.gmane.org; Sun, 27 Aug 2006 06:04:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 577A81FDFA; Sun, 27 Aug 2006 06:04:38 +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 12472-05; Sun, 27 Aug 2006 06:04:32 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B20B31FDF3; Sun, 27 Aug 2006 06:04:31 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 25E681FDEE for ; Sun, 27 Aug 2006 06:04:27 +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 13180-02-2 for ; Sun, 27 Aug 2006 06:04:23 +0200 (CEST) Original-Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.236]) by ronja.ntg.nl (Postfix) with SMTP id 3AA611FCEC for ; Sun, 27 Aug 2006 06:04:22 +0200 (CEST) Original-Received: by wx-out-0506.google.com with SMTP id s12so1296388wxc for ; Sat, 26 Aug 2006 21:04:21 -0700 (PDT) Original-Received: by 10.90.52.2 with SMTP id z2mr837850agz; Sat, 26 Aug 2006 21:04:21 -0700 (PDT) Original-Received: by 10.90.94.17 with HTTP; Sat, 26 Aug 2006 21:04:21 -0700 (PDT) Original-To: "mailing list for ConTeXt users" In-Reply-To: <3e73596b0608262032y255be8d8oefc433604ae774ac@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.7 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:30518 Archived-At: On 8/27/06, Pepe Barbe wrote: > On 8/25/06, Aditya Mahajan wrote: > > \define\mymacro#1 is equivalent to > > > > \def\mymacro#1 but also checks if mymacro has already been defined. > > Thanks for the info. I am using \define for something simple, define > some keywords with special format that I will be repeating a lot. > Something like: > > \define\mybi{\bf\sl BoldItalic} \define\mybi{{\bs BoldItalic}} You need two braces, otherwise everything else will be bold italic as well. > Works fin except that if I use in a sentence like: This is \mybi word. Any space after a command is ignored (unless you start a new paragraph). This is \mybi{} word. This is \mybi\ word. Don Knuth has written an excellent book about TeX (TeXBOOK) that is really worth reading. Try to find it in a library or to compile it from the source: http://www.ctan.org/tex-archive/help/Catalogue/entries/texbook.html Mojca