[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ArabTeX 3.11, LyX compatibility



Hi Mr. Lagally,
I tried hard to get it working but it seems I missed something obvious.
Please, help.

The steps go like this:
I've Downloaded arabtex.zip and extracted it to get 3 folders (doc,
fonts,
tex). In the extracted tex folder there is latex/arabtex folder which
contains 82 *.sty files besides some redundant files and folders
(arab311.zip, old, back2108) I copied all of these except the redundant
ones
to my /usr/share/texmf/tex/arabtex

I decided not to copy the fonts folder contents since my version of
these
fonts in Mandrake 9.1 seems to be newer and sometimes larger (how come?)

Then as root I ran texhash. My previous settings of Dekel instructions
to
enable writing in Arabic are still in place so no need to change the
preferences. I just Opened lyx and Edit -> Reconfigure

Restarted LyX and typed some English and Arabic and View -> PDF and it
doesn't
work!! After some hours I discovered that I should use the Document
class
article, not article (Arabic) Ok this is good so no need more to copy
this
file separately to the layout folder. Wow, now I can use any Document
class.
Other than this, the same problem persitst. You can see my explanation
here

http://bugzilla.lyx.org/show_bug.cgi?id=1225

Now I typed a word in Arabic and made it center then File -> Export ->
LaTeX
to get this file:

---
%% LyX 1.3 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[arabic,english]{article}
\usepackage[T1]{fontenc}

\makeatletter
\usepackage{arabtex,iso88596} \setcode{iso8859-6}
\makeatother
\begin{document}
\begin{arabtext}
\begin{center}ظربê\end{center}\end{arabtext}

\end{document}
---

[munzir at localhost munzir]$ texi2pdf arabic.tex
This is pdfTeX, Version 3.14159-1.10b (Web2C 7.4.5)
(/home/munzir/arabic.tex{/usr/share/texmf/pdftex/config/pdftex.cfg}
LaTeX2e <2001/06/01>
Babel <v3.7h> and hyphenation patterns for american, french, german,
ngerman,
basque, italian, portuges, russian, spanish, nohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2001/04/21 v1.4e Standard LaTeX document class
...
(/usr/share/texmf/tex/latex/arabtex/asmo449.sty
scanner for code ASMO 449 (ISO 9036) installed.)
scanner for code ASMO 708 (ISO 8859-6) installed.)
input encoding set to ASMO 449 (ISO 9036) conventions
input encoding set to ASMO 708 (ISO 8859-6) conventions

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

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

! LaTeX Error: Arabic mode: Environment center undefined.

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

l.11 \begin{center}
                   ^^d9^^d1^^c8^^ea\end{center}\end{arabtext}
?
. / . / . / ##

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

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

l.13 \end{document}

?
[1{/usr/share/texmf/dvips/config/pdftex.map}] (./arabic.aux)

 ...
 ***********

 )
(\end occurred inside a group at level 2)
</usr/share/texmf/fonts/pk/ljfour/jkn
appen/ec/ecrm1000.600pk> </var/lib/texmf/pk/ljfour/arabtex/xnsh14.600pk>
Output written on arabic.pdf (1 page, 8126 bytes).
Transcript written on arabic.log.
/usr//bin/texi2dvi: pdflatex exited with bad status, quitting.
/usr//bin/texi2dvi: see arabic.log for errors.
---
The file is generated but with some garbage the end.






On Wednesday 27 August 2003 12:43 am, Klaus Lagally wrote:
> scripsit Munzir Taha:
> > Hi Lagally,
> > I am really happy for this. Your response is so fast. I expected you
to
> > take at least 3 months ;) Again many thank you's
>
> You are welcome. I was lucky to find a solution quickly.


--
First law of thermodynamics: "You can't get any more energy out of a
system
than you put into it."
  __/    __/          _/  _/  _/
 _/ _\  _/ _\            _/
_/    \ /   _\ unzir    _/ aha

Telecommunications Engineer
Linux Registered User #279362 at http://counter.li.org
CIW Designer, ICDL, MOUS.
New Horizons CLC
Riyadh, SA