[texhax] Carriage Return key

Reinhard Kotucha reinhard.kotucha at web.de
Mon May 15 20:51:50 CEST 2006


>>>>> "Peter" == Peter Abbott <PeterAbbott.Eymore at btinternet.com> writes:

  > My data files contain 'carriage return' and it is not possible to
  > use an editor to remove them. Tex complains

  > Text line contains an invalid character.

  > ^^K

  > How do I tell TeX to treat 'carriage return' as a space and what
  > character code is 'carriage return' please.

TeX already treats 'carriage returns' as spaces unless it is broken.

Carriage return has character code 13(dec), or ^^M.
Line feed has character code 10(dec), or ^^J.

^^K has character code 11(dec) ('Vertical Tab').

Line breaks are ^^J under UNIX, ^^M under Apple, and ^^M^^J under
Windos.

UNIX TeX accepts files which had been written under Windows, hence it
treats both, ^^M and ^^J, as spaces.

It's best to check first where the ^^K comes from.  What happens if
you type

    tex story
?

If this works, then there is something wrong with your editor.

Regards,
  Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha			              Phone: +49-511-4592165
Marschnerstr. 25
D-30167 Hannover	                      mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------




More information about the texhax mailing list