# Tag Info

25

You can always contact your local TeX users group. They most likely know people that offer LaTeX help (free/commercial). For the other question, on how much it would be. That depends, of course, but since you're asking for special knowledge, it won't be cheap. I see you are located in Germany: we maintain a list of professional TeX consultants here: ...

21

I usually use XeLaTeX with Polyglossia. A quick example: \documentclass{book} \usepackage{setspace} \usepackage{fontspec} \usepackage{polyglossia} \setmainlanguage{english} \setotherlanguage{arabic} \newfontfamily\arabicfont[Script=Arabic,Scale=1.1]{Scheherazade} \begin{document} Some latin text and inline arabic: \textarabic{السلام عليكم} And for ...

18

As far as I understand your question, you need someone who has expertise on both bidi typesetting in TeX and critical edition typesetting in TeX. You may contact these people/groups/mailing lists and see if they can help (or be hired): Peter Wilson (the original author of ledmac, ledpar, and ledarab packages) Dominik Wujastyk and John Lavagnino (the ...

17

In general, I advise against using bold and slanted in Arabic for emphasis: they work poorly in Arabic, especially the slant which is not always as visible and is quite alien to Arabic typesetting traditions. (Even though my own Amiri font has them, they are there to avoid the fake bold and slanted synthesized by GUI applications which are very very poor and ...

17

As promised in the comment above, the new version of the XITS font has preliminary RTL support. There is a simple ConTeXt test file in the repository (you need a recent ConTeXt MkIV version) but it shouldn't be hard to port it to LuaLaTeX and unicode-math package. It is work in progress, not all symbols have been mirrored and support for the proposed Arabic ...

15

A workaround is to insert Zero Width Joiner character around the text break area, this would force final/initial forms. For most fonts with should be OK, though it would break contextual alternates in more advanced fonts, but the text should still be readable. Other than that, there is no way to switch color without breaking text into two parts in XeTeX. ...

12

Using XeTeX or LuaTeX, with Unicode input and a font with proper support (e.g. Scheherazade), things should be as simple as: \documentclass{article} \usepackage{fontspec} \usepackage{bidi} \newfontfamily\ottoman[Script=Arabic]{Scheherazade} \begin{document} \begin{RTL} \ottoman لسان عثمانی \end{RTL} \end{document}

11

There have been a couple of articles in TUGboat specifically on the Oriental TeX project, by Idris Hamid: Oriental TeX: A new direction in scholarly complex-script typesetting Qur'ānic typography comes of age: Æsthetics, layering, and paragraph optimization in ConTeXt An article by Azzeddine Lazrek, RyDArab — Typesetting Arabic mathematical expressions ...

11

For pdfTeX: \documentclass{report} \pagenumbering{Roman} \begin{document} \chapter{chap1} Bla bla bla \cleardoublepage % Best place at the start of the Arabic numbered pages % after \cleardoublepage and before the page number is % reset in \pagenumbering{arabic}. \pdfcatalog{% /PageLabels<<% /Nums[% % Page numbers are zero based. ...

10

It is because some works is in progress specially for the bidi package, on the other hand I am waiting for some of luatex bidi bugs getting fixed. you can test things if you want: \documentclass{article} \usepackage{fontspec} \setmainfont[Script=Arabic]{font-name} \usepackage{bidi} \pagedir TRT\pardir TRT\bodydir TRT\textdir TRT \begin{document} %your ...

9

The following is not a direct answer to the question, since it is more focused on Unicode than on TeX.But I think it is relevant nevertheless, specially with XeLaTeX, and has probably to be kept in mind if someone want to write a package for Arabic mathematical typesetting. Unicode has encoded unicode 6.1 ( January 2012) a set of Arabic Mathematical Symbols ...

9

Although I am no expert in LaTeX and Arabic typesetting, I have had some experience in using Arabic and Persian in TeX environment, that I can share. I have tried arabi and babel in the past, it worked out well, however, I had problems with fonts. Then, as most people would do, I switched to XeLaTeX (or XeTeX, I'm not sure which one means what, I use it ...

9

Two days ago Khaled Hosny sent me this: \documentclass{article} \usepackage{fontspec} \setmainfont[Ligatures=TeX]{Junicode} \newfontfamily\arabicfont [Script=Arabic, % to get correct arabic shaping Scale=1.2] % make the arabic font bigger, a matter of taste {Scheherazade} % whatever Arabic font you like ...

9

You have to switch to text mode: \documentclass[10pt,a4paper]{report} \usepackage{amsthm} \usepackage{amsmath} \usepackage{setspace} \usepackage{fontspec} \usepackage{polyglossia} \usepackage{xunicode} \usepackage{xcolor} \usepackage{pifont} \usepackage{enumitem} \setmainlanguage{english} \setotherlanguage{arabic} ...

9

Ideally, one could fix the problem using an OpenType feature file loaded at runtime through a ConTeXt typescript. In practice, that's not (yet) possible; as Hans Hagen told me the new font loaders doesn't support fea files (i have a basic parser but it's not included as i'm still not sure if it should be .. fea files assume stable fonts and so) ...

8

What you are trying to do can be achieved but it will be difficult and frustrating. Questions tagged grid-typesetting contain many details on the matter. Long story short, (Xe)LaTeX is the wrong tool for grid typesetting: you would have to eliminate any glue and set every dimension to a multiple of the grid step. You can only do this manually, and every ...

8

The 'proper' (internal) name of the primitive has always been \textdir, but for various reasons it used to be 'activated' as \luatextextdir in LuaLaTeX. The LaTeX team have recently revised this approach and all primitives now have their 'natural' names in LuaLaTeX. Thus you should either update your code or add \directlua{ ...

8

Probably your file is not saved in UTF-8 encoding. Apparently TeXshop allows you to put % !TEX encoding = UTF-8 Unicode as the first line, although since it's now the 21st Century you should probably make that the editor default. This can be done in the main preferences of TeXShop in the Source panel (Encoding). To summarize: Install polyglossia ...

8

You can use only one mapping file at a time; so the solution is to merge the map files. Prepare a file texarabicdigits.map containing ; TECkit mapping for TeX input conventions <-> Unicode characters LHSName "TeX-text" RHSName "UNICODE" pass(Unicode) ; ligatures from Knuth's original CMR fonts U+002D U+002D <> U+2013 ; -- -> ...

8

I don't know whether this fact is documented (I can't see it in the manual, though), but the arabicfnt.sty that's automatically loaded has \DeclareRobustCommand{\times}{\fontfamily{artimes}\selectfont} which explains the mystery. You can solve the problem by adding to your document \DeclareMathSymbol{\mtimes}{\mathbin}{symbols}{"02} and using \mtimes ...

7

You just need to redefine \thepage to switch to the latin font. Based on Vafa's comment to egreg's answer, this should be done with: \renewcommand{\thepage}{\texorpdfstring{\lr{\arabic{page}}}{\arabic{page}}}

7

The dot can be removed using the glossaries package option nopostdot. The Missing \endcsname inserted error is because you're trying to use \textarabic{...} as a label, but the label must be plain text. I don't have the required fonts installed, so I can't fully test it, but try the following: \documentclass[twocolumn]{article} \usepackage{fontspec} ...

7

This is a solution. The option hyperfootnotes is the culprit of this behavior. So, when loading beamer, pass the option hyperfootnotes=false to hyperref, in this way: \documentclass[hyperref={hyperfootnotes=false},10pt]{beamer} At this point, however, footnotes won't be printed... To avoid that, we need to add the following lines in the preamble: ...

7

As I see now, my answer is a little bit off from the originally intended question. Nevertheless, I find the idea of the inverted colors nice and if you don't mind I keep the answer for a future reader who looks for something like this. I had to mock up the missing R3 picture for the background. So, you will have to adapt the following length settings to ...

7

Very simple. I do it like this: \usepackage{bidi}% this should be the last package to load. \newfontfamily\Kayhan[Script=Arabic]{XB Kayhan}% for example \newenvironment{Farsi}%more human readable - other stuff can be added as well {\begin{RTL}} {\end{RTL}} Then just write farsi like this: This is an english paragraph with some \begin{Farsi}\Kayhan نوشته ...

7

If you don't mind switching to another engine, the following should work with XeTeX (xelatex) and you get access to any Arabic OpenType font: \documentclass[a4paper,oneside,12pt]{memoir} \usepackage{polyglossia} \setmainlanguage{english} \setotherlanguage{arabic} \newfontfamily\arabicfont[Script=Arabic]{Amiri} % or any other font \begin{document} ...

7

You can use the tabbing environment; below there are some examples (the example is in Spanish, but that's not so relevant) of the use of this environment and a brief description of its main commands: \documentclass{article} \begin{document} \begin{tabbing} Programa\quad \= : \= \TeX \\ Autor \> : \> Donald Knuth \\ Manuales \> : \\ \qquad\= The ...

7

No, you can’t. XeTeX processes each word in isolation and does not apply the BiDi algorithm to the whole paragraph. It is possible to use interchar classes to do very primitive BiDi processing, but it is too limited to be reliable (because the nature of BiDi handling and the fact interchar classes were not meant for such use cases). P.S. I have a Bidi ...

6

Using LaTeX you can use arabtex with the setfarsi option. You will need to use transliterations for the input (much like pinyin in Chinese). Here is a minimal: \documentstyle[12pt,arabtex]{article} \parindent=0pt \begin{document} \null \vskip -2cm \setfarsi \novocalize \Large % \begin{arabtext} a b c d e f g h \\ 0123456789\\ donald knuth pasha\\ ...

6

I don't know about typesetting arabic, but I did watch this presentation by Idris Hamid from TUG 2010 about a project called Oriental TeX, and remember being rather impressed by it. I understood it is using ConTeXt mkIV and LuaTeX.

Only top voted, non community-wiki answers of a minimum length are eligible