2

I found this previous post and followed the first answer. I made this script:

\documentclass{article}
\usepackage[novoc]{arabluatex}
\linespread{1.25}

\begin{document}
    \newfontfamily\arabicfont[Script=Arabic]{Aref Ruqaa}
السلام عليكم

\end{document}

But I am getting these errors:

Package arabluatex Error: lualatex needed. ... of `arabluatex' for further information.}

Unknown option `novoc' for package `arabluatex'. \linespread

Undefined control sequence. \newfontfamily

Undefined control sequence. \newfontfamily\arabicfont

Although I have manually downloaded the package zip file from its page and copied and pasted these files into the same directory where my latex main file is located:

-   `arabluatex.sty`
-   `arabluatex-patch.sty`
-   `arabluatex.lua`
-   `arabluatex_voc.lua`
-   `arabluatex_fullvoc.lua`
-   `arabluatex_novoc.lua`
-   `arabluatex_trans.lua`

But this did not solve the problem. Can you please help me compile arabic text and be able to use Arabic fonts similar to the script I posted?

I also prefer to not manually paste the package files. Is there any way I can install them within Latex? I use TexStudio as editor and it uses pdflatex as compiler.

1 Answer 1

2

arabluatex has changed somewhat since the answer you cite, and you’re missing \txarb{...}. Use it this way:

\documentclass{article}
\usepackage[novoc]{arabluatex}
\newfontfamily\arabicfont[Script=Arabic]{Aref Ruqaa}
\begin{document}
\txarb{السلام عليكم}
\end{document}

output

However, you cannot make this package work with pdftex; see the manual for setting the compiler to luatex in TeXstudio.

(I can’t tell you how to install particular packages, since you don’t say whether you’re using TeX Live or MiKTeX or some other distribution, but there are many questions tagged installing, and there’s nothing peculiar about arabluatex that would require an unusual method.)

If your heart is set on Aref Ruqaa in particular, output is far better with lualatex-dev than with lualatex:

\documentclass{article}
\usepackage[novoc]{arabluatex}
\newfontfamily\arabicfont[Renderer=Harfbuzz,Script=Arabic]{Aref Ruqaa}
\begin{document}
\txarb{السلام عليكم}
\end{document}

output of second sample

See https://tex.stackexchange.com/a/493185/ for details on this approach, which requires an up-to-date distribution.

6
  • Thanks. But can you plz. be more secific on what do I need to do to run it with my TexStudio and pdflatex? I opened the link you provided and there is nothing said about luatex at all. What should I do plz.?
    – randomname
    Commented Feb 22, 2020 at 22:01
  • @seq you can't run it with pdflatex. Look in the texstudio menus for something that says "lualatex" and use this. Commented Feb 22, 2020 at 22:04
  • @seq Look at the ‘Configure TeXstudio’ image. If you click on the down arrow in the ‘Default Compiler’ line, LuaLaTeX should be among the options. Choose that: you can’t use arabluatex with pdflatex.
    – Thérèse
    Commented Feb 22, 2020 at 22:05
  • @Thérèse I did but still can't get your script to run. I posted an edit.
    – randomname
    Commented Feb 22, 2020 at 22:11
  • @Thérèse Also I use ubuntu.
    – randomname
    Commented Feb 22, 2020 at 22:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .