In tex file:
Toks\"{o}z
It produces
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityIt is difficult to see in some editors, but in the first case you have \"
acting on o
, in the second: \'
acting on '
, hence the strange result.
\documentclass{article}
\begin{document}
Toks\"{o}z
Toks\''{o}z
\end{document}
BTW: your question gives an interesting example, why "
and ''
should never be mixed. Improper usage of "
as a quote does not give so visible result.
"
to ''
(Format -> Smart Quotes). I always turn this off from the Preferences, but some people clearly find it useful. (This happens even if you type in "
using the standard input method, so you may not be aware of it.)
Maybe that's very naive, but why not simply input direcly ö
in the editor?
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\begin{document}
Toksöz
\textsc{Toksöz}
TOKSÖZ
\end{document}
I just found out why this happened. In the TeXworks editor I use, the original setup is: "Format"--> "Smart Quotes"-->"Tex ligatures", after I changed the setup to: "Format"--> "Smart Quotes"-->"None", then it works as expected !!!!
"
key. Changing Smart Quotes on or off doesn't go through your document and replace existing "
characters.
\
and, if so, leave the "
alone.)
Jul 3, 2014 at 10:47
\documentclass{...}
and ending with\end{document}
. In this case, I can't reproduce the problem with the code you've provided; it works as expected and produces a properö
."
but not strange unicode madness in case you have copied it from a website etc. such as''