GeneralLanguages Supported by Latex

LaTeX specific issues not fitting into one of the other forums of this category.
s.david
Posts: 43
Joined: Thu Sep 10, 2009 5:22 pm

Languages Supported by Latex

Post by s.david »

Hello,

What are the languages supported by Latex? and how can I add new languages into a Latex document?

Regards

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Languages Supported by Latex

Post by localghost »

LaTeX supports a lot of languages [1]. You have the free choice.

[1] The TeX Catalogue Online, Topic Index - Multilingual Support


Best regards
Thorsten
s.david
Posts: 43
Joined: Thu Sep 10, 2009 5:22 pm

Languages Supported by Latex

Post by s.david »

localghost wrote:LaTeX supports a lot of languages [1]. You have the free choice.

[1] The TeX Catalogue Online, Topic Index - Multilingual Support


Best regards
Thorsten
Ok, thanks localghost, but I want to ask if I can insert right-to-left paragrahs in a left-to-right documents and using the native letters?

Regards
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Languages Supported by Latex

Post by meho_r »

s.david wrote:
localghost wrote:LaTeX supports a lot of languages [1]. You have the free choice.

[1] The TeX Catalogue Online, Topic Index - Multilingual Support


Best regards
Thorsten
Ok, thanks localghost, but I want to ask if I can insert right-to-left paragrahs in a left-to-right documents and using the native letters?

Regards
I, for example, work with arabic paragraphs/lines/words inside main latin text almost daily (though usually with XeLaTeX because of OpenType fonts support). You may use native characters, but you may have to use some specific commands or environments, depending on language and used packages.
s.david
Posts: 43
Joined: Thu Sep 10, 2009 5:22 pm

Re: Languages Supported by Latex

Post by s.david »

I want to write my thesis abstract in Arabic, and I wrote my thesis in English, how to switch from the late one to the former? When I tried to write using Arabic characters, the editor still works from left-to-right, how can I chane the direction of writting in the editor?

Regards
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Languages Supported by Latex

Post by meho_r »

s.david wrote:I want to write my thesis abstract in Arabic, and I wrote my thesis in English, how to switch from the late one to the former? When I tried to write using Arabic characters, the editor still works from left-to-right, how can I chane the direction of writting in the editor?

Regards
That's another story. Not all editors do very well when inputting arabic is at stake. I personally do all arabic stuff in OpenOffice.org (especially when inserting special characters are needed) then simply copy-paste it in LaTeX editor (Kile, Texmaker, Texworks...). Interesting thing is that LaTeX handle arabic a way better than any Word processing application, but entering it is a little bit tedious process.
s.david
Posts: 43
Joined: Thu Sep 10, 2009 5:22 pm

Languages Supported by Latex

Post by s.david »

I have the following segement of code, for example:

Code: Select all

\documentclass[a4paper,12pt,openany,oneside]{memoir}
\usepackage[arabic,english]{babel}
\begin{document}
\noindent Hello, how are you?\\
Hello, I am fine. Thank you \\\selectlanguage{arabic} ÇáÞæá ÇáãÃ辄 ÈÃä ÇáÎØÃ ÇáãÔåæÑ ÎíÑ ãä ÇáÕæÇÈ ÇáãåÌæÑ
\end{document}
where the TexnicCenter editor works from right-to-left, but when I compile the Latex document, the output file writes the Arabic statement from left-to-right, both in direction and characters. How can I solve this issue?

Regards
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Languages Supported by Latex

Post by meho_r »

I would recommend again to use Xe(La)TeX and ArabXeTeX packages for the arabic. It's much easier to deal with and gives you opportunity to use all fonts that are installed on your system, .ttf and .otf. In the attachment I provide you an idea how to solve this using XeLaTeX with a simple example of short and larger arabic text. You may find more details in XeLaTeX and ArabXeTeX documentation. Sorry for not directly answering your question, but I hope this will be of use to you.

P.S. Don't forget to run xelatex test.tex instead of pdflatex test.tex to get .pdf document from the file I provided.
Attachments
test.tex
Simple code for testing arabic text with ArabXeTeX
(1.25 KiB) Downloaded 417 times
s.david
Posts: 43
Joined: Thu Sep 10, 2009 5:22 pm

Languages Supported by Latex

Post by s.david »

meho_r wrote:...P.S. Don't forget to run xelatex test.tex instead of pdflatex test.tex to get .pdf document from the file I provided.
How can I do that? When I run the simple code you gave me, a huge amount of errors are generated. Why?
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Languages Supported by Latex

Post by meho_r »

s.david wrote:
meho_r wrote:...P.S. Don't forget to run xelatex test.tex instead of pdflatex test.tex to get .pdf document from the file I provided.
How can I do that? When I run the simple code you gave me, a huge amount of errors are generated. Why?
Those errors are because you run latex or pdflatex, not xelatex through TeXnicCenter. I found a quick tip how to use XeLaTeX with TeXnicCenter here (last post by simojoki): http://www.latex-community.org/forum/vi ... f=31&t=731

For now, just to be sure XeLaTeX is actually installed on your system, you may use command line and simply run xelatex test.tex Are you able to do this? For example, put test file in C:\Test, then run command line (Start > Run > cmd.exe) and enter this command:

Code: Select all

cd C:\Test
After this command press Return key (or Enter) and compile the document with this command:

Code: Select all

xelatex test.tex
If you really don't like command line, you may try compiling test.tex with TeXworks editor, just make sure you chose xelatex in drop-down menu beside "Typeset" button, top left, before actually pressing "Typeset".

I hope that some of Windows' and TeXnicCenter's users can provide you more infos about using XeLaTeX with TeXnicCenter.

BTW, arabic text in your post didn't show correctly, it was just bunch of symbols. As people in the thread of which I posted link above said, TeXnicCenter has serious issue not providing support for unicode, so keep that in mind.
Post Reply