Many questions about LaTeX in the past 29 years I could solve by searching in the internet -- many by great answers I found on your site. But this time, a mistake is haunting me since months, I have been searching for days, whatever I look up, whatever I try: Nothing helps...
Since about 16 years I am writing a script, meanwhile more than 1600 pages. As I started to do with LaTeX at that time and make heavy use of psfrag, I don't now want to switch to XeLaTeX or LuaLaTeX.
Inside the script I use several languages: German (mainly), English, Italian, Latin, Chinese, Arabic, Ancient Greek (no, I am not capable of speaking all those languages, sorry... ;-))) ). Many of the foreign texts I simply copy and paste. Therefore my source file is encoded in UTF-8, a minimum working example looks like this:
\documentclass{report}
\usepackage[utf8]{inputenc}
\usepackage[arabic]{babel}
\begin{document}
\verb!أبو يعقوب بن إس|حاق الكندي!
أبو يعقوب بن إس|حاق الكندي
\AR{أبو يعقوب بن إس|حاق الكندي}
\end{document}
(The Arabic part of my source looks a bit different here than in my source file. Please look at the added screenshot, which compares my editor, my pdf-output and the editor for this post: I copied and pasted the arabic line in my editor three times -- but the line with the verb-command automaticly changes the order. In the pdf-output all three lines look similar, but different from the lines in the source. In the editor of StackExchange two lines look like in my editor, but the order of the line with the verb-command is not inverted automatically.
)
It compiles without error messages. But the result somewhere in the middle is slightly different from my input. I asked an Arabic colleague. He confirms, that one letter is wrong...
My System: TexLive2018 full install, fully updated on Win7, Winshell editor.
Now my last hope is: Perhaps anyone has an idea, what I could do?
(As I post for the first time in this forum, I apologize in case, I did something wrong...)
\RLbeing an "undefined control sequence". Does one need to load additional packages? – Mico Nov 25 '19 at 05:44أبو يعقوب بن إسحاق الكنديnotأبو يعقوب بن إس|حاق الكنديand command\RLis not defined, you can rather use\ARor\textRL. – Salim Bou Nov 25 '19 at 07:00