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

Manuel libros at limay.de
Mon Mar 1 23:00:08 CET 2010


Am 01/03/2010 um 22:42 schrieb Maarten Sneep:

>
> 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

It still gives the same error message. It adds: "this kind of error  
happens when you say `\if...' and forget the matching `\fi'.

(btw, the anterior solution does work)

Manuel










More information about the macostex-archives mailing list