1

I write in Hebrew, so I use \usepackage[hebrew]{babel}
When I try to add hraphic with \includegraphics{lec2-1.jpg}, the graphic goes right and out of page: enter image description here

the full code:

\documentclass[10pt,a4paper]{article}
\usepackage[hebrew]{babel}
\usepackage{graphicx}
\begin{document}

\begin{figure}
\begin{center}

\includegraphics{lec2-1.jpg}
\end{center}

\end{figure}

\end{document}

Thank you!

  • Would you be open to switching to lualatex? The old pdflatex Hebrew toolchain has many problems but babel and lualatex is now working really well for RTL text and it is well maintained. – David Purton Sep 10 '19 at 23:56
  • When I try to use lualatex I got: ! Right-to-Left Support Error: use TeX--XeT or e-TeX engine., what I need to do? I'm using TexMaker. Thank you! – puhs Sep 11 '19 at 9:40
  • The set up is completely different for lualatex. Your example above won't work. – David Purton Sep 11 '19 at 9:42
  • This is for a document with English as the main language, but the principle is the same for Hebrew as the main language: tex.stackexchange.com/a/494310/87678 – David Purton Sep 11 '19 at 9:47
  • Thank you, It's look very uncomfortable when my main language that I write is Hebrew.. – puhs Sep 11 '19 at 9:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.