home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.software
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!wupost!gumby!destroyer!news.iastate.edu!scl1.al.iastate.edu!tlm
- From: tlm@iastate.edu (Tom Marchioro)
- Subject: Re: LaTeX problem (missing text)
- Message-ID: <tlm.726651225@scl1.al.iastate.edu>
- Sender: news@news.iastate.edu (USENET News System)
- Organization: Iowa State University, Ames IA
- References: <1in8f5INN9j4@tamsun.tamu.edu> <1993Jan9.211126.8260@newshost.lanl.gov>
- Date: Sun, 10 Jan 1993 07:33:45 GMT
- Lines: 52
-
- In <1993Jan9.211126.8260@newshost.lanl.gov> silbar@cantina.lanl.gov (Dick Silbar) writes:
-
- >In article <1in8f5INN9j4@tamsun.tamu.edu> bryan@kolsky.tamu.edu (Bryan
- >Milligan) writes:
- >> I'm having a problem with NeXTTeX, specificall LaTeX although I don't
- >> know if the problem occurs in other modes. When I view or print a
- >> compiled file, there is frequently sections of text missing. There
- >> are no errors generated; the text just doesn't show up, and the
- >following
- >> text is moved up. At first I thought it was Edit's line wrap feature,
- >> but turning it off didn't seem to affect it. If I place a CR before the
- >> effected text, it shows up, but I have no idea why. Any clues, O Noble
- >> Gods of NeXT?
- >>
- >My secretary had a problem similar to what you described with a file that
- >was made using a WordMarc editor on an IBM-PC and saved in ascii. Looking
- >at the file using emacs showed there were ^M characters at the places
- >where the text disappearred. Doing a query-replace of the ^M with a space
- >cured the problem.
-
- I corresponded with the original poster, and this was indeed the problem.
- This comes up often enough that I have a couple of little utilities I like to
- use, and I post there here for anyone who is interested:
-
- First, to remove the control-M line endings
-
- Save the following to a file called "undos", set the executable bit on it,
- and put it in you path, either /usr/local/bin or your personal Apps folder
- is best
-
- #!/bin/csh
- if (-f /tmp/undos.foo) then
- rm -f /tmp/undos.foo
- endif
- tr -d '\015' < $1 >/tmp/undos.foo
- rm $1
- mv /tmp/undos.foo $1
-
- this will then allow you to type
- "undos name_of_file" in a shell and hte ^M's will be gone. (see man tr to
- understand how it works).
-
- You can make something similar to take out the ^Z's which often cause troubles
- as EOF markers.
-
- Hope this is Helpful --- Tom
-
- PS: I also have a "todos" script, but (1) I almost never need it and
- (2) I honestly have forgotten how it works. If you need it write me and
- I'll take the time to remember what I did way back when.
-
-
-