From: Aditya Mahajan <adityam@umich.edu>
Subject: Re: \definesomething?
Date: Sun, 27 Aug 2006 00:19:19 -0400 (EDT) [thread overview]
Message-ID: <Pine.WNT.4.63.0608270009480.3188@nqvgln> (raw)
In-Reply-To: <6faad9f00608262104w8fc3ab9l66f7cb75ad6d75ab@mail.gmail.com>
On Sun, 27 Aug 2006, Mojca Miklavec wrote:
> 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.
There is also \autoinsertnextspace but that is not to be spoken about
;)
> Don Knuth has written an excellent book about TeX (TeXBOOK) that is
> really worth reading. Try to find it in a library
or a book store ....
> or to compile it from the source:
> http://www.ctan.org/tex-archive/help/Catalogue/entries/texbook.html
Do not do that! The file is copyrighted and should not be TeXed. From
the file:
% This manual is copyright (C) 1984 by the American Mathematical Society.
% All rights are reserved!
% The file is distributed only for people to see its examples of TeX input,
% not for use in the preparation of books like The TeXbook.
% Permission for any other use of this file must be obtained in writing
% from the copyright holder and also from the publisher (Addison-Wesley).
Aditya
prev parent reply other threads:[~2006-08-27 4:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-24 0:09 \definesomething? Pepe Barbe
2006-08-26 4:16 ` \definesomething? Aditya Mahajan
2006-08-27 3:32 ` \definesomething? Pepe Barbe
2006-08-27 4:04 ` \definesomething? Mojca Miklavec
2006-08-27 4:19 ` Aditya Mahajan [this message]
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=Pine.WNT.4.63.0608270009480.3188@nqvgln \
--to=adityam@umich.edu \
--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).