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.
Post Reply
Hayder
Posts: 3
Joined: Sun Mar 22, 2020 11:21 pm

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

Post by Hayder »

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 408 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 323 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.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply