Questions tagged [xepersian]

{xepersian} is a package for typesetting Persian/English documents with XeLaTeX.

Filter by
Sorted by
Tagged with
0
votes
0answers
39 views

What could be cause of bad character printing? [closed]

I have used a template for some projects. Recently, I am using it for some other project and had to make some customizations including changing fonts. Now, I have some problems with printing functions ...
0
votes
0answers
22 views

Problem with compiling xepersian in LaTeX

I have a question about xepersian package. I'm familiar with LaTeX, but a beginner with xepersian. I tried to compile this simple code with TeX Live 2017: \documentclass{article} \usepackage{xepersian}...
0
votes
0answers
37 views

Undefined Control Sequence while using \setmathdigitfont in xepersian

I want to use Persian numbers in the math environment in my tex document. I tried to use \setmathdigitfont{} as below: % !TEX program=xelatex \documentclass[]{article} \usepackage[localise=on,...
2
votes
1answer
30 views

Missing number and illegal unit of measure in list of tables

I want to use the template sharifthesis given in this link to create my thesis (Please see the minimal example). But it gives 2 errors: line 1: Missing number, treated as zero. ...ons and labels\relax ...
1
vote
1answer
39 views

minipage inside an mdframed with a footnote

I need to have captioned tables inside an mdframed environment. Since floats cannot be used, I am using captionof alongside tabular. The caption and the tabular might get separated, when there is a ...
1
vote
1answer
30 views

Zero-width space for Persian typing in lyx [closed]

I want to use Lyx to write in Persian. In Persian we have a space character named "zero-width space" or "half-space" and in a standard keyboard, we type it with "Shift-Space" shortcut. It is "U-200C" ...
0
votes
0answers
30 views

I have xepersian installed using miktex but Texstudio returns the error message it cannot find xepersian

I use Miktex installation and have just installed Xepersian package. When I try to compile a document using XeLatex that calls the Xepesian package I get the error messege "cannot find Xepersian.sty"....
1
vote
1answer
43 views

Incorrect font of the greek letters while using xepersian

I want to use greek letters in the text with Helvetica font. When I compile the my code in the English version, I get to correct form. I mean, when I compile the following code \documentclass[12 pt]{...
0
votes
1answer
18 views

how to change direction of tabular command in xepersian (ltr to ltr)

Problem Definition: Because of using xepersian package, my defualt text direction is rtl (Right-to-Left). I have created a table using the following piece of code: \begin{center} \begin{tabular}...
5
votes
0answers
80 views

The background color is not to be placed when used xepersian! Is it solvable?

The background color is not to be placed when used xepersian! Is it solvable? Minimal code: % !TeX TS-program = xelatex \documentclass{beamer} \setbeamertemplate{background canvas}[vertical shading][...
1
vote
1answer
31 views

How to use xepersian in a document that is mostly written in English?

I am trying to use xepersian in a thesis that has to be written in English. As soon as I include \usepackage{xepersian} to the document, all numbers and dates are changed to Persian, the title page ...
0
votes
3answers
232 views

The command \KashidaXBFixOn does not work properly in xepersian

Consider the following MWE: % File: test-kashida.tex \documentclass{report} \usepackage[Kashida]{xepersian} \settextfont[Scale=4.5]{XB Kayhan} \def\SampleText{راهی جایی تابی چاپی چاهی تلاشهایی ...
1
vote
1answer
46 views

table of content in persian language(the number is right to left)

I use code \titleformat{\chapter}[display]{ \bfseries \filleft\Huge}{ \chaptername\ \arabic \LTR{ \thechapter} }{6pt}{\bfseries\filleft} to write a table of content. in the table have but I ...
0
votes
1answer
46 views

The label from \subfigimg macro hided in xepersian

When use the "\subfigimg" macro with xepersian environment, the labes over each image missing: \documentclass[preview]{standalone} \usepackage{mwe} \usepackage[table]{xcolor} \usepackage{xepersian} \...
1
vote
1answer
103 views

How to use chemnum with chemdraw in xepersian?

Pay attention to the first code that represents the numbering of molecules in a scheme that is imported into LaTeX from the ".eps" file and by the command pdflatex -shell-escape file1.tex runs ...
1
vote
1answer
85 views

change font size of English words in captions in a Persian report

I am writing my thesis in Persian via using "xepersian" package. I set the main font by using the following commands, \usepackage{caption} \usepackage{fontspec} \usepackage{xepersian} \settextfont[...
0
votes
1answer
80 views

Position a figure above the footnote in xepersian

I am using LaTeX + xepersian for writing my thesis. I have so many figures and so many footnotes. For footnote, I am using \LTRfootnote{}. Unfortunately, when I use the following environment for a ...
0
votes
3answers
191 views

Problem with horizontal spacing in itemize environment in beamer with xepersian package

I have a problem with itemize environment, which I did not in the past. I used to produce Persian slides with LuaLaTex in Texlive 2015. Now, I am using XePersian with XeLaTeX engine and Texlive 2019. ...
2
votes
1answer
45 views

Count words in Persian document correctly

when I use the command texcount filename.tex in CMD, half-spaced words count two words instead of one word. How can I solve this problem? \Thanks % Compile with XeLaTeX \documentclass{article} \...
3
votes
3answers
180 views

Changing line break patterns

I want to inform latex that it is Ok to break lines at ZWNJ (U+200C) characters, if needed. How can I change the line break patterns (hyphenation) to allow that? \hyphenation does not work for me and ...
2
votes
1answer
155 views

How to obtain non Italic theorem text

Please believe me this is not an Off Topic in TEX. Wait and see that I SEARCH the web and go deeply into questions for this but nothing found: Can we equip ‎AtBeginEnvironment with two option ...
0
votes
1answer
153 views

What is the problem with \usefonttheme{serif} in beamer for xepersian?

In a beamer for working with xepersian package, I want the formula to be with English digit fonts, but with any command provided with the xerpersian package it doesn't work. Here is MWE: % !TEX TS-...
1
vote
0answers
53 views

Memoir: Preparing document to be read from right to left (Persian script)

I'm writing a book in Persian, so it is read from right to left. That means that all odd pages should have a wide right-margin, whereas even pages should have a wide left-margin. All chapters should ...
1
vote
0answers
79 views

wrong group titles in glossaries, using xepersian and xindy

I am using TeXworks to write my Phd thesis in Persian by use of xepersian package. Trying to print 3 glossaries at the end of thesis, I have p roblem with xindy. More specifically, in Persian to ...
3
votes
2answers
205 views

Combining translation of Quran package line by line with its original Arabic text

I want to place the Persian translation of quran package =\quransurahfa*[1] right below the original text=\quransurah*[1] of this code : \documentclass[b5paper,11pt]{memoir} \usepackage[left=1.8cm,...
5
votes
1answer
537 views

Fontspec error: My favorite fonts could not be identified

I'm trying to add Persian text to my document, however, my favorite fonts (which already have been installed on Windows 10 and I use them on Microsoft Word) can not be identified. ! fontspec error: "...
2
votes
1answer
121 views

Error on using “\rl{}” inside “inline math”

I use TeXstudio 2.12.16 and want to write Farsi words in \cancelto{value}{expression}. So I used xepersian package and \rl. What I tried is: \documentclass{article} \usepackage{tikz} \usetikzlibrary{...
1
vote
1answer
55 views

Problem in using fncychap and xepersian packages

I want to use a different style for the book document class. I found out that I have to use fncychap package with an option. Since I'm using the xepersian package, it did not work. How can I have a ...
1
vote
1answer
138 views

Scattered Poems Within Text Using Xepersian

I want the scattered poems used over various sections or chapters ( or for example inside separate boxes) to be treated as a single unit and their lengths be adjusted together. what should I do? *I ...
1
vote
1answer
114 views

algorithm syntax in latex

I use latex for my thesis but my language is persian and I have to use xepersian package . recently I have a problem and when I use algorithm and algorithmic package , my algorithm'code become ...
2
votes
1answer
100 views

Typesetting critical footnotes in reledpar package from right to left

I want to typeset two Persian (Arabic) text in parallel facing pages with reledpar and xepersian packages. I have done but critical footnotes is written from left to right. How I can have critical ...
2
votes
1answer
86 views

How to remove the empty white space in Background for Xebaposter

Using background for a poster using Xebaposter shows an empty space on the left margin as shown in figure1, this quetion is based on this anwer. \def\pgfsysdriver{pgfsys-dvipdfm.def} \RequirePackage[...
3
votes
1answer
105 views

Not showing Sidebar Theme Berkeley in xepersian

% XeLatex % Not showing Sidebar Theme Berkeley in xepersian! \documentclass{beamer} \usetheme{Berkeley} \usefonttheme{serif} \usepackage{xepersian} \settextfont{XB Zar} \...
0
votes
1answer
104 views

Equation Definition Alignment Using Xepersian

The following code will define a new environment which will arrange the definitions of equations. I want the explanations to start from right side, but the equations inside the definition align left ...
1
vote
1answer
82 views

Placing pagenumber in a Tikz shape

Im writing a book in Persian (whose direction is right to left) and i want the page numbers appear like the code below: \documentclass[12pt,twoside]{book} \usepackage{tikz} \usepackage{...
2
votes
0answers
152 views

Extracting pages of Xelatex created PDF in Acrobat requires password

I have a .tex file and after compiling with XeLatex , when I want to extract pages of the PDF or open a single-page PDF in Illustrator, it tells the file is Password-Protected (in Adobe Acrobat, no ...
2
votes
0answers
116 views

Distortion of Farsi alphabets to unknown alphabets

I have some TeX files (including formulas, tables, etc.) written under DOS (but the format is .tex), and want to read them by LaTeX. The language is Farsi. I tried to open the TeX files with Texmaker ...
1
vote
1answer
226 views

Quality and efficiency of my code in LaTeX3?

As an exercise in learning LaTeX3, I would like to replace the following 7 functions, copied from xepersian.sty which do the same job in xepersian package, with a single function. 208 \...
0
votes
1answer
204 views

How to check the existence of some characters in a font using a loop?

I am trying to modify the current version of xepersian package to suit my needs. The following code copied from xepersian-mathsdigitspec.sty is supposed to check if some characters do exist in the ...
2
votes
1answer
97 views

problem with \NewList in bidi package

The macro \NewList is defined in biditools.sty (originally defined in lollipop) as: \def\bidi@csarg#1#2{\expandafter#1\csname#2\endcsname} \def\NewList:#1 {\bidi@csarg\newtoks{#1}\global\csname#1\...
4
votes
1answer
427 views

xepersian 21.9 cannot load the font “Psychedelia HM”. Is this a bug?

After upgrading my texlive, xepersian 21.9 can not load the font which is loaded without any problem by the older version 21.7. My code is: \documentclass{article} \usepackage{xepersian} \...
0
votes
1answer
143 views

MathTime Pro 2 [lite] doesn't change \sin function font

I am writing bidirectional Persian+English text using xepersian and for math mode i try to use MathTime Pro 2 lite version BUT: It doesn't change \sin, \cos function font (it uses LMRoman for this ...
1
vote
1answer
197 views

Getting error for xindy glossary

When I use xindy for producing glossary in XeLatex I getting the following error: xindy.pl: input file xindy -L persian-variant1 -C utf8 -I xindy -M %.xdy -t %.glg -o %.gls %.glo | xindy -L persian-...
1
vote
1answer
144 views

problem with persian words in tikz

I want to have a circular flow including persian words (employing xepersian package and xelatex compiler is necessary for persian language) using tikz picture, but latex makes characters of persian ...
1
vote
1answer
236 views

glossary and abbreviation showing problem in Xepersian(shown in blank pages)

I have 2 question about making glossaries in xepersian. In the below code actually there are 2 problems. Not showing the glossary and abbreviation sections in my output.In the out put, I just get 2 ...
1
vote
1answer
132 views

Learning to write an article with Xepersian from a to z [closed]

I have to make a Latex file out of my article in three days and my article is in Farsi.I downloaded Miktex,winedt10,Texlive... but I don`t know how to use the xepersian packages and I need to learn ...
3
votes
2answers
204 views

customize multicolumn footnote XeLaTeX

I want customized footnote with this specification in document: 1) footnote number appear superscript in text body (like: foo1 foo2 foo3 foo4) 2) footnote number appear as normal number in ...
0
votes
1answer
449 views

Problem running xepersian with xelatex

I have to test something with the Persian language but it already fails in the preamble. My MWE: \documentclass{book} \usepackage[utf8]{inputenc} \usepackage{xepersian} \settextfont{B Zar} \begin{...
0
votes
1answer
62 views

Quotes face the wrong way with xepersian and csquotes

When I try to use csquotes along with xepersian, the quotation marks come out facing the wrong way (for right-to-left text). \documentclass{minimal} \usepackage{xepersian} \settextfont{XB Niloofar} \...
2
votes
2answers
143 views

Xepersian inverse decimal numbers with period (.)

For example 2.41 becomes 41.2 \documentclass{book} \usepackage[format=hang, labelfont=bf]{caption} \usepackage{xepersian} \settextfont[Scale=2]{Times New Roman} \setlatintextfont[Scale=2]{Times New ...