LaTeX forum ⇒ LyXHow to write in Arabic and English Tutorial ..... Solved!!

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Hayder
Posts: 3
Joined: Sun Mar 22, 2020 11:21 pm

How to write in Arabic and English Tutorial ..... Solved!!

Postby Hayder » Tue Mar 24, 2020 4:37 pm

Hi
I want to share something with you in LYX after I struggled with it for a while, and that is How to write in Arabic and how to mix it with, let's say English. And that's what I do in my Windows 10 laptop:
First Method
arabic with some english fonts using math.lyx
(2.51 KiB) Downloaded 4 times


- Open New Document ---> Document ---> Setting
Try to change these things in Setting
1- Document Class, choose, Article (Standard Class) not Arabic.
2- Font, choose, use non- TeX font, then choose a font like Amiri font ( you can download it from the internet)
3- Language, choose, Arabic(Arabi) and then from Encoding, choose, Other(CP-1256)
and that's it.

Here you can write in Arabic and if you want to write in another language, insert Math and choose () and write whatever you want between bracts.

Second Method:
arabic with some english fonts using fonts.lyx
(2.69 KiB) Downloaded 5 times

- Open New Document ---> Document ---> Setting
Try to change these things in Setting
1- Document Class, choose, Arabic Article.
2- Fonts, leave it as it.
3- Language, choose, Arabic(Arabi) and leave Encoding as Default.
And that's it.

If you want to change the language without Insert Math, use this method

Creating a shortcut to switch the language
Go to the LyX menu Tools→Preferences→Editing→Shortcuts
Search for the shortcut "language", select it and use the Modify button.
In the appearing dialog change "language" to "language XXX" where XXX should be either arabic_arabtex or arabic_arabi, depending on the LaTeX-package you want to use. Bind it to a key you want, for example to F12.
Now search again for the shortcut "language", select it and use the Modify button.
In the appearing dialog change "language" to "language English". Bind it to a key you want, for example to Ctrl+F12.
Now you can start typing, using F12 / Ctrl+F12 to switch between Arabic and English.

I hope every dual-language makes use of this. And don't forget to wash your hand after practicing this tutorial.

Return to “LyX”

Who is online

Users browsing this forum: No registered users and 2 guests