General ⇒ Possessive apostrophe problem
Possessive apostrophe problem
I am having a problem in getting a possessive apostrophe to appear after compiling. Here are my steps that lead to the problem.
1. I am using MS Word as my text editor (because I am using Dragon NaturallySpeaking voice dictation software and it works better in Word).
2. My file is saved in Word as a plain text file and saved named with a .tex file extension. I have also encoded the text various ways trying to fix the problem to no avail (i.e., US-ASCII, unicode, MS-DOS, Latin 3 and 9).
3. I compile the file using WinEDT by using /input and a wrap file that looks at the .tex file with my material.
4. After compiling, I view the document as dvi and pdf. Everything looks fine except the possessive apostrophe does not appear correctly. It appears either as a question mark or it does not appear at all, depending on how I encoded the characters in Word.
What is going on? Thank you.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Possessive apostrophe problem
Are you adding a line to the .tex code to use the right input encoding, e.g., something like:
\usepackage[utf8]{inputenc}
for Unicode?
(See the inputenc documentation for more choices.)
You should also see whether or not Word is doing "smart quote" substitution, and try turning it off if need be.
Re: Possessive apostrophe problem
However, I have a related issue now after using
\usepackage[utf8]{inputenc}
Now, I am getting a couple of error messages that seem to be related to encoding (although I might be wrong about this).
Attached is a simple file that gives me two errors.
Background: I created the .tex file in MS Word 2007 and encoded the text file as utf-8.
After compiling in WinEDT, I get two errors--although I can still create a dvi but with a blank page 1.
1. The first error I get is at \documentclass. It seems to be seeing two characters (garble) **before** '\documentclass'.
2. The second error may be related to the first. The error is 'LaTex Error: Missing \beginning{document}'. I believe it may be seeing the two garbage characters.
Ideas for a solution for the two error messages? Thanks.
- Attachments
-
- Test.tex
- (284 Bytes) Downloaded 906 times
Re: Possessive apostrophe problem
Do you get the same problem if you copy and paste right from Word into WinEDT, rather than using \input ?
Re: Possessive apostrophe problem
Question: How did you 'remove' the two characters? I can't see them except in the error report after compiling.
Re: Possessive apostrophe problem
That was with the gedit editor for linux. I don't use Windows, so I don't know whether or not that would work in WinEDT.
At least I think that's what I did. I don't really remember. Let me double check that that works. (Hmmm, seems to work with gedit, but not TeXworks. Not sure if it'll work with WinEDIT, but copy and paste should, perhaps even copy and paste from inside WinEDT into a new WinEDIT document.)
Re: Possessive apostrophe problem
The extra characters at the beginning seem to be appended by MS Word as a Byte Order Mark when it encodes text files as UTF-8. Unfortunately, the BOM doesn't seem to work well with WinEDT as described above. I guess that I could try encoding the text in Word as something other than UTF-8 but I haven't tried that yet.