[OS X TeX] Page number appears with \pagestyle{empty}

Maarten Sneep maarten.sneep at xs4all.nl
Mon Mar 1 22:42:32 CET 2010


On 1 mrt 2010, at 22:31, Manuel wrote:

> 
> Am 01/03/2010 um 22:23 schrieb Ross Moore:
> 
>> Hi Manuel, and Josep,
>> 
>> On 02/03/2010, at 6:52 AM, Manuel wrote:
>> 
>>>> \addtocontents{toc}{\thispagestyle{empty}}
>>>> 
>>>> near the first \chapter or \section command in your document that you presume will produce an entry in the table of contents. This should insert the relevant command *inside* the .toc file, so it will be executed at the wnated moment.
>>> 
>>> Josep, I have also tried this solution but I get the error message:
>>> 
>>> ! Incomplete \iffaise
>> 
>> Yes. It needs to be:
>> 
>>  \addtocontents{toc}{\protect\thispagestyle{empty}}
>> 
>> else \thispagestyle  expands upon writing to the .toc file
>> --- and, even if this was successful, you would not necessarily
>> achieve what you want, as there might be errors when reading it
>> back in.
> 
> 
> I just tried it, but I get the same error message.

Make sure to remove the aux and toc files first.

Maarten




More information about the macostex-archives mailing list