This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v3][BZ #17787] Fix exponents in manual.
- From: "Carlos O'Donell" <carlos at redhat dot com>
- To: Joseph Myers <joseph at codesourcery dot com>, OndÅej BÃlka <neleai at seznam dot cz>
- Cc: Andreas Schwab <schwab at linux-m68k dot org>, libc-alpha at sourceware dot org
- Date: Thu, 18 Jun 2015 11:54:26 -0400
- Subject: Re: [PATCH v3][BZ #17787] Fix exponents in manual.
- Authentication-results: sourceware.org; auth=none
- References: <20150105121124 dot GA20619 at domone> <871tn9joub dot fsf at igel dot home> <20150106115720 dot GA19882 at domone> <20150616175738 dot GD9387 at domone> <alpine dot DEB dot 2 dot 10 dot 1506162002000 dot 31875 at digraph dot polyomino dot org dot uk> <55808614 dot 3060409 at redhat dot com> <20150618142917 dot GA16523 at domone> <alpine dot DEB dot 2 dot 10 dot 1506181434010 dot 31642 at digraph dot polyomino dot org dot uk>
On 06/18/2015 10:34 AM, Joseph Myers wrote:
> On Thu, 18 Jun 2015, OndÅej BÃlka wrote:
>
>> diff --git a/manual/filesys.texi b/manual/filesys.texi
>> index 0f2e3dc..181de76 100644
>> --- a/manual/filesys.texi
>> +++ b/manual/filesys.texi
>> @@ -2,6 +2,18 @@
>> @c %MENU% Functions for manipulating files
>> @chapter File System Interface
>>
>> +@iftex
>> +@macro twoexp{exp}
>> +@math{2^{{\exp\}}}
>> +@end macro
>> +@end iftex
>> +@ifnottex
>> +@macro twoexp{exp}
>> +2^\exp\
>> +@end macro
>> +@end ifnottex
>
> The macro definitions should go in macros.texi, rather than being
> duplicated in each file using it.
It would also seem sensible to keep such macros near their uses,
and move them to macros.texi only if globally useful or repeated
more than some nominal number of times.
What if the macro was only used in one place? Would we still put
it into macros.texi?
Cheers,
Carlos.