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

learn more… | top users | synonyms

9
votes
3answers
258 views

How to reverse section numbering for right-to-left languages?

I use XePersian to typeset Persian, but I don't want my section number mirrored! For example, section 3-1 is written as section 1-3, which is embaressing! So, I want my numbers back :-) This issue is ...
8
votes
2answers
638 views

Latin page numbers with XePersian?

I've recently been using XePersian to typeset Persian and Arabic poems the traditional way, i.e. in two justified columns. The poetry formatting is done with the bidipoem package, and that's all fine. ...
7
votes
1answer
220 views

Basic Persian in plain XeTeX

I am trying to write Persian in plain-XeTeX as follows: \font\frmnorm = "Nazli" at 24pt \let\rm = \frmnorm \uselanguage{farsi} \rm این فقط یک آزمایش است \bye ...but it does not work for me well: ...
6
votes
2answers
419 views

\today and language (babel, xepersian)

I'm using xepersian for my article but in one page I need to add Gregorian calendar date. so I add: \usepackage[british]{babel} and then where I want the date: \selectlanguage{british} {\large \...
6
votes
2answers
152 views

Could not change level separator

When I use XePersian package the following code does not work to set - instead of . as separator in headers? \documentclass{book} \renewcommand{\thesection}{\arabic{chapter}-\arabic{section}} \...
6
votes
1answer
877 views

Problem showing English characters with xepersian

I'm using TeXstudio in order to write a report and I use XeLaTeX compiler. However the following code : \documentclass[10pt,a4paper]{report} \usepackage{xepersian} \usepackage[left=1.00cm, right=1....
6
votes
1answer
263 views

reset counter when using \LTRfootnote from bidi package

I'm using xepersian package for my Persian job, and I would like the footnote counter to automatically restart from '1' for each page of my document when I using \LTRfootnote command, but footmisc ...
5
votes
1answer
67 views

Latex tikz chapter using xepersian

I want to customize chapter with tikz using xepersian package. I add this package to THIS CODE like below: \documentclass[twoside]{book} \usepackage{tikz} \usetikzlibrary{shadows.blur} \usepackage{...
5
votes
1answer
273 views

lstlisting caption problem with xepersian

I am using the xepersian and lstlisting packages and I am having some trouble with the captions. Here is the code: \documentclass[a4paper,10pt]{article} \usepackage{listings} \usepackage[usenames,...
5
votes
1answer
185 views

Linenumbering per page with XePersian and the traditionalpoem environment

I’m editing an Arabic poem with XePersian and the traditionalpoem environment which works fine so far, but I have some questions regarding the line numbers and the paragraph footnotes. (1) I would ...
4
votes
2answers
1k views

xepersian, xetex can't find fonts

I'm trying to add persian text to my document but it doesn't accept the fonts I set and returns this error: The font "XB Niloofar" cannot be found. I just installed texlive using this guid. And ...
4
votes
2answers
278 views

Fontspec warning : “rename-feature-not-exist”

I want to use Xepersian package. But I get this error while compiling with Xelatex. fontspec warning : "rename-feature-not-exist" Can some one help me with this? \documentclass{article} \...
4
votes
1answer
221 views

How to type a decimal point not in a number

I'm using xepersian package and I was trying to type $0.\overline{1011}$, but I noticed that the dot after 0 is not interpreted as a decimal point (The decimal sign in Persian is something like /). ...
4
votes
1answer
71 views

removing chapter title in one of my chapters?

I have written my thesis in LaTeX (xepesian) and I have customized my chapters title as follows, ‎\makeatletter‎ ‎\def\thickhrule{\leavevmode \leaders \hrule height‎ .‎5ex \hfill \kern \z@}‎ ‎\def\...
4
votes
3answers
482 views

I have miktex but it can not recognize the xepersian package

I downloaded Miktex2.9 but when I try to type Farsi(persian) it does not recognize the xepersian package and give an error instead. I need to add the xepersian or other packages to my Miktex please ...
4
votes
1answer
247 views

Table is printed in reverse order using xepersian

I am using xepersian package and the tables are printed in reverse order. For instance when typesetting the following code: \makeatletter \@ifundefined{Umathcode}{\let\Umathcode\XeTeXmathcode}{} \@...
4
votes
3answers
1k views

How to make footnotes left-right and the numbers in English in Persian documents?

The document is compiling in Xelatex and the whole document is Persian using the package xepersian. The footnotes are all in English but they are aligned right and the numbers are persian. I want the ...
4
votes
2answers
671 views

Line numbers in traditionalpoem environment?

So I've been trying to get satisfactory results typesetting Persian and Arabic poems, in the traditional format, with XeLaTeX. It works just about fine – see the sample document below – but I would ...
3
votes
2answers
79 views

Adding xepersian produces an error for tables

Adding \usepackage{xepersian} makes the following code produce an error: \documentclass{article} \usepackage{booktabs,caption,dcolumn} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} ...
3
votes
1answer
2k views

Where do I find the XeLaTeX engine on TeXstudio?

I want to type a text in persian. Does texstudio support xelatex? If yes where can i find it? this is my code: \documentclass{article} \usepackage{xepersian} \begin{document} \centerline{به نام ...
3
votes
1answer
211 views

Number not displayed in parentheses

When I put a number between parentheses it will vanished: What is wrong? MWE: ‎\documentclass{article}‎‎ ‎\usepackage{hyperref}‎‎ ‎‎‎ \usepackage{syntonly} ‎\usepackage{xepersian}‎‎ ‎\settextfont{...
3
votes
2answers
69 views

Unwanted outdent in the first paragraph of a section

for the first paragraph of some of my sections I have an unwanted outdent as the following picture: I used noindent after the section, but has no effect. There is also no extra hidden character ...
3
votes
1answer
868 views

RTL Refrences in XePersian package

In my Persian paper all references are in Latin script. How I can insert references (Bibliography) RTL in XePersian, and how I can convert digits in URLs to west Arabic. MWE: ‎\documentclass{...
3
votes
1answer
107 views

Oops! you have loaded package pgf after bidi package

I keep getting this error in my TeXStudio: Package bidi Error: Oops! you have loaded package pgf after bidi package. Pleocument again. \begin{document} What does it mean?
3
votes
1answer
709 views

LTR sequences within RTL text - alternative to cumbersome markup?

I am writing a book in Persian that is full of text in Latin scripts scattered all over book. I have to wrap every Latin script with \lt{} to guide xetex to align words from left to right. It's ...
3
votes
2answers
111 views

Undefined font shape

I have a xepersian document, e.g. \documentclass[10pt,a4paper]{report} \usepackage{xepersian} \settextfont{Nazli}% http://http.debian.net/debian/pool/main/f/fonts-farsiweb/fonts-farsiweb_0.4.dfsg....
3
votes
1answer
408 views

english number and ltr direction in xetex

I'm writing a document using xepersian and the text direction is right to left. Also I need to add formulas in the document. My problem is that all numbers in the formula are persian and if I add text ...
3
votes
1answer
78 views

formula font size in xepersian

I use xepersian package. The font size of the math formula is too smaller than the text. I have use \DeclareMathSizes{16pt}{14pt}{10pt}{8pt} but it doesn't change. \documentclass[a4paper, 24pt]{...
3
votes
1answer
352 views

How can the following TeX file be run without errors? [closed]

I get an error : ! I can't find file `xdvipdfmx.cfg'. l.6 \input xdvipdfmx.cfg Please type another input file name and ! Emergency stop. l.6 \input xdvipdfmx.cfg I really wish to know what ...
2
votes
2answers
263 views

Inserting RTL text in verbatim environment

How I can insert Persian text in verbatim environment when using XePersin package ( v11.138, 2012/05/03). Following code dose not work: \begin{verbatim} <!DOCTYPE book PUBLIC "-//OASIS//DTD ...
2
votes
1answer
83 views

How to make a template like this using xepersian?

How to make a template latex like the one below? Abstract should be in a single column, but the entire document in two columns. I found a template like this in web, but with the xepersian package ...
2
votes
1answer
184 views

Why can't this table compile?

I had wrote following table in TexMaker, when I write it without \usepackage{xepersian} it works but when I want to compile it with that package too, program will hang! But I don't see any mistakes ...
2
votes
1answer
85 views

How to write the caption of a english table in Persian when using xepersian package?

I am writing a report using the documentclass{report} and xepersian package. I have some tables in english but I want the caption to be in persian. Since I use the xepersian package, I have to put ...
2
votes
2answers
896 views

Xepersian package prints persian text but does not recognize formulas and gives error

I have used MiKTeX for many works in last year. I didn't have a problem installing it. But now I am trying to install it on my new laptop. It's killing me with an ocean of errors. it has been two ...
2
votes
1answer
98 views

change font size of english words in a persian report

I am using report and xepersian packages to write a report in persian. I have some words and variables which are in english and use the $example$ command to write them when they are inline. How can ...
2
votes
2answers
249 views

Ubuntu14: TexLive2014: How to install extra packages?

I'm using Ubuntu 14 LTS. I (fully) installed TexLive2013 then I (fully) uninstalled it in order to install TexLive2014 which I did it from an .iso file succesfully. Now I want to install an extra ...
2
votes
1answer
266 views

undefined control sequense error in xepersian.sty

I have a LaTeX document using xepersian: \documentclass[a4paper,11pt]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage{xepersian} \listfiles \title{...
2
votes
1answer
186 views

Problem using xepersian with beamer

I am using xepersian with beamer and I have a problem with list environments, e.g. itemize and enumerate. I cannot flush them to the right (make them right-aligned). As you can see in the MWE, I have ...
2
votes
1answer
760 views

problem with footnote in xepersian : “ Undefined control sequence \small By me\footnote”

I have problem in using xepersian package. When I use footnote, it come with the error Undefined control sequence \end but without xepersian it works properly. I use MiKTeX 2.9 here is the code ...
2
votes
1answer
171 views

Verbatim alignment in XePersian

Verbatim environment is right-aligned when using XePersian package, so I have to wrap it in latin environment. So I decide to create a new environment: \newenvironment{faverbatim} {\begin{latin}‎‎\...
2
votes
1answer
361 views

Letter in Appendix missing in XePersian

The following example shows that there is the letter "A." missing in the caption of the appendix in the pdf when xepersian is used. Is there a way to fix this? \documentclass{scrbook} \usepackage{...
2
votes
1answer
91 views

xepersian and qtree incompatibility?

I am a linguist and want to display trees. I tried the the following code. \documentclass{article} \usepackage{xepersian} \usepackage{qtree} \begin{document} \begin{latin} gshjgsdjgsad \begin{...
2
votes
1answer
78 views

how to Insert an English table into a persian text written by the use of xepersian package

I am writing a in \documentclass{report} and I use \usepackage{xepersian}. In a separate .tex file I created a table which is written in English. I want to put this table in my text using \include ...
2
votes
0answers
51 views

numbering out of a colored box [duplicate]

The only thing that I want is a numbering out of colored box and the position of box be in center. \documentclass{article} \usepackage{amsmath,amsthm,amssymb,amsfonts} \usepackage{tcolorbox} \...
2
votes
0answers
121 views

Tex studio- Bidirectional

I am using the xepersian package in Texstudio. The logical way of writing maths in Persian in Tex is that one writes in persian and when they press dollar, the font switches automatically to English. ...
2
votes
0answers
150 views

XML style for Latex including Persian characters with some preferences

I am using the listings package to include some XML code in my document. Currently, I am using the following style: \lstset{ basicstyle=\ttfamily, columns=fullflexible, showstringspaces=false,...
2
votes
1answer
243 views

Question marks instead of text when writing Persian with XePersian

I am trying to write in Persian in TexShop(Mac) and keep getting question marks instead of my text. Here is my code: \documentclass{article} \usepackage{xepersian} \usepackage{bidi} \settextfont{...
2
votes
0answers
168 views

Problem with persian-bib package [closed]

I have a document where the main language should be English with only some Arabic text. In my references I have English as well as Arabic references. The main direction of the document should be from ...
1
vote
1answer
38 views

\cr extra alignment!

When I use the code below to create a table written in Persian, it gives me the following error: Extra alignment tab has been changed to \cr. <recently read> \endtemplate code: \...
1
vote
1answer
97 views

A problem of pagenumbering in LaTeX

I have a problem with pagenumbering in my document. when I use \pagenumbering{roman} for appendix, the page before the first page of appendix (last page of reference), has the number (I) and ...