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}{...
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 ...
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: "امیر شبانی"...
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 ...
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}
سلام
\...
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 ...
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,...
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 ...
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 ...
2
votes
Accepted
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 ...
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\...
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}
{\...
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 ...
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, ...
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, ...
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\...
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]\...
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 ...
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 ...
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.
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:
...
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 ـه .
...
1
vote
Alignment of the footnote line
You should use the following code in Persian texts for Latin footnotes:
\LTRfootnote{cone}
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
persian × 78arabic × 23
xepersian × 23
xetex × 13
polyglossia × 9
right-to-left × 9
languages × 8
beamer × 4
fonts × 4
babel × 4
bidi × 4
bibliographies × 3
pdftex × 3
numbering × 3
citing × 3
footnotes × 3
texlive × 3
bold × 3
arabtex × 3
tikz-pgf × 2
spacing × 2
packages × 2
memoir × 2
texmaker × 2
verbatim × 2