I want to emphasize it again. Bear with me, please.
-----------
There are two errors here:
Error #1: An error when we want to view a document that contains Arabic text 
through view -> PDF.

LaTeX Error: \begin{arabtext} on input line 16 ended by \end{document}.
 \end{document}
                   
Your command was ignored.
Type  I <command> <return>  to replace it with another command,
or  <return>  to continue without it.

The above error will occur only and only if the paragraph direction that 
contains Arabic is right to left, and this happen when the first letter in 
the paragraph is Arabic. The workaround is just to insert a space or any 
whitespace after the last Arabic letter.

Error #2: If we want to generate the PDF file through File -> Export -> LaTeX, 
then use texi2pdf. In this case I get these errors:

LaTeX Warning: Unused global option(s):
    [arabic,english].

(./basmala.aux) (/usr/share/texmf/tex/latex/arabtex/uxnsh.fd) . / . / ##

! LaTeX Error: \begin{arabtext} on input line 14 ended by \end{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.17 \end{document}

?
--
A space at the end of the file won't solve the problem if it contains some 
formatting. For example if the tex file looks like this

\begin{document}
\begin{arabtext}
\begin{center}بسم الله\end{center}

بسم الله\end{arabtext}

\end{document}

I need to add a space before \end{center} AND \end{document}. In short a space 
before any LaTeX code that follows an Arabic text. You can also see here the 
the line added after \end{arabtext} which should be before it as Juergen 
Spitzmueller noticed already.

Note: to edit the LaTeX file I have to use katoob or vim since the other 
editors I am aware of (like kwrite, kedit, ...) will corrupt any Arabic text 
encoded in iso 8859-6.

-- 
  __/    __/          _/  _/  _/
 _/ _\  _/ _\            _/
_/    \ /   _\ unzir    _/ aha

Telecommunications Engineer
Linux Registered User [EMAIL PROTECTED]://counter.li.org
CIW, ICDL, MOUS.
New Horizons CLC
Riyadh, SA

Reply via email to