I have a similar problem to this question:
\usepackage[turkish]{babel} and \includegraphics inconcistency
But I am trying to do the same in hebrew. I get an error, and the solution offered in that question - setting \shorthandoff{=} doesn't seem to work with hebrew babel.
Minimal not working example:
\documentclass[12pt]{article}
\usepackage{culmus}
\usepackage[utf8x]{inputenc}
\usepackage[hebrew,english]{babel}
\usepackage{amssymb,amsmath}
\usepackage{graphicx}
\begin{document}
\R{
שלום
\includegraphics[scale=0.5]{test}
שלום
}
\end{document}
Any ideas?
culmusis not in TeX Live and the foundculmus.styseems to be wrong, because it requires\usepackage[utf8]{inputenc}before\usepackage{culmus}because of\DeclareUnicodeCharacter. Also, TeX Live seems to miss the Hebrew fonts (automatic TFM generation fails). – Heiko Oberdiek Nov 19 '16 at 10:40hebrew.ldfdoes not seem to use=as shorthand, thus the cause seems different toturkish.ldf. If it is a category code problem, then the command can be put into a macro, e.g.:\newcommand*{\TestImage}{\includegraphics[scale=0.5]{test}}\documentclass[12pt]{article}...\begin{document}...\R{...\TestImage...}...\end{document}. If this fixes the issue, then the cause can be a category problem, and the test also provides a workaround. – Heiko Oberdiek Nov 19 '16 at 10:45=inturkish.ldf. Are there any warnings or errors? Which TeX compiler (latex,pdflatex,lualatex,xelatex) is used? Is packageculmusnecessary for the problem (where can it be downloaded)? – Heiko Oberdiek Nov 19 '16 at 10:53\includegraphics. – Heiko Oberdiek Nov 19 '16 at 11:18