I am using the usual apostrophe key on my keyboard, but when I try to compile the file it halts at the apostrophe. It seems to think it's an AE ligature!
Someone suggested adding a command to change the encoding to UTF8 and I tried this, but still the same problem!
Surely the apostrophe is a perfectly standard character?
I am using Word to edit the TEX file. Don't know if that's relevant.
Thanks
Edit:
I am not sure what you mean by a short compilabe code. The TEX file compiles fine and then if I type an apostrophe it crashes.
The DOS box of the compiler stops with a question mark on the left and it repeats the offending sentence, but with an AE ligature where my apostrophe was
Edit 2::
But the TEX file is pretty large. I am not really sure what to strip out to show you.
Basically, the file compiles perfectly unless I type an apostrophe in a sentence. So I know it's the apostrophe causing the problem.
The compiler is pausing at this sentence and showing an AE ligature where the apostrophe should be.
So I am assuming that the apostrophe I type in using Word is somehow creating the wrong character. Are there other ways to type an apostrophe in Word besides the one on the @ key (just to the left of the return key)?
'to a curly apostrophe’. This might be causing your problems. Take a look at this question for advice on TeX editors/IDEs. Word is totally unsuitable, even if it isn't your problem in this case! – Au101 Aug 27 '16 at 13:04\documentclassand all the\usepackages. Ideally you would strip this down as far as possible, getting rid of any packages that aren't important). Then give us\begin{document}one of your sentences with an apostrophe in it and\end{document}That would probably do, but make sure you copy it from word, don't type it into the question box – Au101 Aug 27 '16 at 13:22\documentclass{article}\begin{document}a'\end{document}. Compile that and copy and paste the entire error code as an [edit] to your question. – Teepeemm Aug 27 '16 at 14:48\usepackage[utf8]{inputenc}can solve the issue. – egreg Aug 27 '16 at 20:23