TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Here is my document :


% must-have packages
\usepackage[utf8]{inputenc} % This package will support Turkish chars
% must-have packages


% settings
% settings




When I try to build a pdf out of this file I received bunch of errors. here is one of them :

Missing \endcsname inserted ...graphics[scale=0.5]{./images/image_3.png}}

When I remove the babel package, it runs smoothly. Even when I change the language to another language, it runs as well.

What is happening here?

share|improve this question
Just out of curiosity, can you please include \usepackage{pgf} and then try to use \pgfimage[height=3cm]{./images/image_3} . I wonder if the active character problem propagates. – percusse Oct 20 '11 at 19:29
up vote 9 down vote accepted

I believed that this problem had been solved, but it seems not.

Since you can input directly Turkish specific characters as Unicode, you should not need the = shortcuts; so


will cure the problem. In case you really need the shortcuts with =, the unique way seems to be to say


before all \includegraphics commands and \shorthandon{=} again after them.

share|improve this answer

Please check the answers on this question: \newgeometry doesn't work with Turkish babel package. One answer by @karlkoeller gives an automatic way of switching the shorthand off before \includegraphics then on again after it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.