Here is my document :
\documentclass[12pt]{book}
% must-have packages
\usepackage[turkish]{babel}
\usepackage[utf8]{inputenc} % This package will support Turkish chars
% must-have packages
\usepackage[a4paper,left=2.5cm,right=2cm]{geometry}
\usepackage{graphicx}
\usepackage{listings}
% settings
\setcounter{secnumdepth}{0}
% settings
\begin{document}
\framebox{\includegraphics[scale=0.5]{./images/image_3.png}}
\end{document}
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?
Best Answer
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; sowill cure the problem. In case you really need the shortcuts with
=
, the unique way seems to be to saybefore all
\includegraphics
commands and\shorthandon{=}
again after them.