Skip to main content
16 votes
Accepted

How to typeset ancient Persian scripts in LaTeX

Use XeLaTeX. The font maps the glyphs in the Latin alphabet slots, so you have to figure out yourself the correspondence. \documentclass{article} \usepackage{fontspec} \newfontfamily{\oldpersian}{...
egreg's user avatar
  • 1.2m
8 votes
Accepted

half space for Persian words in xepersian

I installed a persian keyboard on my windows 10 and tried it out. "shift + space" inserted for me not a half-space but U+200C (ZERO WIDTH NON-JOINER). ] I had no problem to insert and use with my ...
Ulrike Fischer's user avatar
7 votes
Accepted

Beamer presentation with Pandoc and Markdown - Using xelatex as the pdf engine doesn't show most Persian fonts properly

compile the file using this command: pandoc pres.md -t beamer -o pres.pdf --pdf-engine=xelatex -V mainfont="Yas" -V lang:ar Output: file test.md --- title: "روش پژوهش و ارائه" author: "امیر شبانی"...
M.Ahmadi's user avatar
  • 1,497
5 votes
Accepted

Getting right-to-left output in Arabic and Persian/Farsi with pdfLaTeX

Short answer: Instead of \foreignlanguage{arabic} and \foreignlanguage{farsi}, use \AR and \FR. Firstly, the MWE given in the question (at least as of the current revision) is most certainly not ...
ShreevatsaR's user avatar
  • 46.1k
5 votes
Accepted

Problem with special characters

A sample of arabic, farsi document with arabi package \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[LAE,LFE]{fontenc} \usepackage[farsi,arabic]{babel} \begin{document} سلام \...
touhami's user avatar
  • 19.6k
5 votes
Accepted

Problem with using footnotes in xepersian

The problem is due to the new version of zref-abspage, which breaks the bidi package. Try \usepackage[extrafootnotefeatures]{xepersian} instead of \usepackage{xepersian} and it should not give you the ...
NEO's user avatar
  • 357
3 votes
Accepted

Looking to typeset 2-columned Persian poem in classicthesis document that is otherwise Latin script and LTR

The elegant way would be to use bidipoem package and traditionalpoem or modernpoem environments (and preferably in conjunction with XePersian). This is a simple XePersian example: \documentclass[10pt,...
Hasan Zakeri's user avatar
  • 1,942
3 votes

Rendering Farsi / Persian text with xelatex / pdflatex

What you want—automatic detection of left-to-right/right-to-left script inside a verbatim environment—is not easily possible right now. (It could probably be done with interchar tokens in XeTeX, or ...
Davislor's user avatar
  • 45.9k
2 votes
Accepted

No Persian language in xindy/lang directory

As Paul Gaborit mentioned in his comment, xindy of Ubuntu repositories is not the latest version and should be updated to resolve the issue. The following repo contains the latest version, so you ...
frogatto's user avatar
  • 255
2 votes
Accepted

Problems with English and Persian baseline alignment

The Amiri font gives better results:
Ralf Stubner's user avatar
  • 2,624
2 votes

Persian letters do not work

I want to write a word in Latin and let it translate to Persian. That's not really what this package is about. The table you quoted, Table 1, lists the equivalent of some common LaTeX commands, but ...
Hasan Zakeri's user avatar
  • 1,942
2 votes
Accepted

Persian and German poetry side by side

With following preamble it works: \documentclass[a5paper,10pt,twoside]{memoir} \usepackage[LAE,T1]{fontenc} \usepackage[farsi,ngerman]{babel} \renewcommand{\PoemTitlefont}{% \normalfont\scshape\...
Javier Bezos's user avatar
  • 10.8k
2 votes

arabtex: how to write two consecutive identical Farsi characters without adding Arabic shadda

The way to go with arabtex is to use the 'pipe' character (|) which prevents the šadda from being generated, like so:— \documentclass[11pt,a4paper]{article} \usepackage{arabtex} \begin{document} {\...
Robert Alessi's user avatar
1 vote

`classicthesis` does not give me smallcaps in headings

If I remove all the interfering and contradicting font packages and disable as mentioned in https://tex.stackexchange.com/a/654221/2388 the microtype patches small caps works fine. The error from the ...
Ulrike Fischer's user avatar
1 vote
Accepted

xepersian & polyglossia: section numbering is rtl, even though german is main language

The xepersian package is mostly useful when your main text is going to be in Farsi, otherwise you have to configure a lot of things to use it effectively. Instead, I suggest using the bidi package, ...
NEO's user avatar
  • 357
1 vote

How to set the spell check in TexMaker to other languages in Ubuntu

I am answering this question as I have already found the answer to it. I am not sure how it works in Windows or MacOS; but I have tried the following steps and it worked on Ubuntu 22.04. First of all, ...
Shayan's user avatar
  • 178
1 vote
Accepted

Use persian footnotes inside latin environment of xepersian

This is the correct behavior, and how footnotes (and footnote marks) should be typeset. If, however, for any reason you want the "2" to be Persian, you could write: \begin{latin} Translate\...
Hasan Zakeri's user avatar
  • 1,942
1 vote

Using babel package to add Persian text into English document

arabi.ldf (which is dead old ...) is the opinion that every class which is not article should have chapter numbers (and so you get lots of errors). Add \expandafter\def\csname [email protected]\...
Ulrike Fischer's user avatar
1 vote
Accepted

Problem in using Xpersian package in the predefined English template file (LaTeX)

When you use the xepersian package,it automatically loads the bidi package for RTL{right to left} environment. So you have to change some of the codes. For english texts or other english codes you can ...
SH.Madadpour's user avatar
1 vote
Accepted

Persian-bib with Polyglossia and Xepersian packages

Your main language is arabic, so it does not match with persian bibtex. you should define a new persian font for it same as below: \defpersianfont\mfo[Scale=1.1]{Amiri} And also you have to redefine ...
SH.Madadpour's user avatar
1 vote
Accepted

package listing disturbs table numbering

I don't have the problem you've talked about. My output is as follows: Maybe you should update your bidi and xepersian packages.
Vahid Damanafshan's user avatar
1 vote

How to typeset ancient Persian scripts in LaTeX

(1) The oldprsn font package from 2005, bundled with other archaic fonts into the archaic package, might help. It defines a special font family for Tex. (2) Alternatively, in the unicode space: ...
Cicada's user avatar
  • 10.2k
1 vote
Accepted

How can type special shape of some characters?

There is a character on the Arabic Keyboard ـ it is on Shift+J (on my keyboard). It sets the character ARABIC TATWEEL U+0640 which allows you to have all characters in connected form like بـ or ـه . ...
ClintEastwood's user avatar
1 vote

Alignment of the footnote line

You should use the following code in Persian texts for Latin footnotes: \LTRfootnote{cone}
user137777's user avatar
1 vote

LuaLaTeX error when compiling visual counter

Caveat emptor I don't have \usepackage{luapersian}, so I only tried to compile with lualatex Your visible code looks fine, but when copying from your question above there where tons of invisible ...
samcarter_is_at_topanswers.xyz's user avatar

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