[texhax] Migrating from Windows to Mac

Herbert Schulz herbs at wideopenwest.com
Mon Dec 14 21:39:55 CET 2009


On Dec 14, 2009, at 2:14 PM, Reinhard Kotucha wrote:

> On 14 December 2009 Tom Backer Johnsen wrote:
> 
>> Oleg Katsitadze wrote:
>>> Hi Tom,
>>> 
>>> On Sun, 13 Dec 2009 20:34:31 +0100, Tom Backer Johnsen <backer at psych.uib.no> said:
>>> 
>>>> I am in the process of migrating from Windows XP to a MacBook Pro
>>>> (Snow Leopard), and have simply copied a number of files from the
>>>> Windows XP machine to the Mac Via an external hard disk and a memory
>>>> stick. I then find that files which compile (to PDF) perfectly OK on
>>>> the Windows machine give me an error message on the very first line,
>>>> the \documentclass one gives me an error message: undefined control
>>>> sequence.
>>>> 
>>> 
>>> This is probably a line endings problem.  There must be a program on
>>> your system which converts the line endings, try fromdos, dos2unix,
>>> flip, toix.
>>> 
>>> HTH,
>>> Oleg
>>> 
>> Yes, it is some conversion issue.  If I enter a trivial document using 
>> the keyboard, it compiles all right, but it does not work with files 
>> coming from the Windows machine. 
> 
> If it's a line-endings problem you shouldn't get an "undefined control
> sequence" error message if the \documentclass command is the very first
> thing LaTeX reads.
> 
> Please send us your .log file.
> 
> I can't believe that there is a line-endings problem.  It's the first
> time I hear that pure ASCII files are not portable among different
> ports of TeX.
> 
> Regards,
>  Reinhard
> 

Howdy,

I doubt it's a line ending problem. I taken files generated on a PC and even OLD files from my old TeXtures distribution on Mac OS 8--9, which used \r for newlines, and compiled them directly under Mac OS X which uses *nix line endings.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)





More information about the texhax mailing list