Git Product home page Git Product logo

xepersian's Introduction

The xepersian Package

The xepersian package provides a convenient interface for typesetting Persian and English documents with LaTeX, using the XeTeX engine.

The package includes adaptations for use with many other commonly-used packages.

The official versions of the package are released on CTAN.

Using the Package

The following example illustrates how the package can be used.

\documentclass{article}
\usepackage{xepersian}
\settextfont{<fontname>}
\begin{document}
...
\end{document}

Reporting Issues

If you think that you have found an issue in the package, please use the package issue tracker to report it.

Discussions

You may also have conversations, ask questions and post answers without opening issues using the Discussions space.

Announcements

The announcements for the new releases of the package will also appear in the Discussions space under the Announcements category.

xepersian's People

Contributors

kvafa avatar vafa-khalighi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

xepersian's Issues

How to should write in *.ist file for formatting indexing

Brief outline of the question

When we using \makindex comand could use optional style with \makeindex[title= نمایه,[columns=2,options={-s indexstyle.ist}] and arbitary styling in indexstyle.ist
For common fonts the indexstyle.ist file is:
headings_flag 1
heading_prefix "\large\sffamily\bfseries "
heading_suffix "}\nopagebreak\n"

delim_0 " \dotfill "
delim_1 " \dotfill "
delim_2 " \dotfill "

what is we should write in \sddamily\bfsersies
to show persioan alphba?

Check/indicate

Minimal example

% !TEX TS-program = XeLaTeX
% !TEX encoding = UTF-8 Unicode
\documentclass{article}
\usepackage{imakeidx}
\usepackage{xepersian}
\settextfont{XB Niloofar}
[test.pdf](https://github.com/kvafa/xepersian/files/14037561/test.pdf)

\makeindex

\begin{document}
لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم 
[log.txt](https://github.com/kvafa/xepersian/files/14037564/log.txt)
از \index{صنعت}صنعت چاپ و با استفاده از طراحان گرافیک است. چاپگرها و متون بلکه روزنامه و مجله در ستون و سطرآنچنان که لازم است و برای \index{شرایط}شرایط فعلی \index{تکنولوژی}تکنولوژی مورد نیاز و کاربردهای متنوع با هدف بهبود ابزارهای کاربردی می باشد. کتابهای زیادی در شصت و سه درصد گذشته، حال و آینده شناخت فراوا
[test.pdf](https://github.com/kvafa/xepersian/files/14037569/test.pdf)
ن \index{جامعه}جامعه و متخصصان را می طلبد تا با نرم افزارها شناخت بیشتری را برای طراحان رایانه ای علی الخصوص \index{طراحان}طراحان خلاقی و فرهنگ پیشرو در زبان فارسی ایجاد کرد. در این صورت می توان امید داشت که تمام و دشواری موجود در ارائه راهکارها و شرایط سخت تایپ به پایان رسد وزمان مورد نیاز شامل حروفچینی دستاوردهای اصلی و جوابگوی سوالات پیوسته اهل دنیای موجود طراحی اساسا مورد استفاده قرار گیرد.
\printindex
\end{document}

Expected behavior

I want someting like this:
https://latex.org/forum/viewtopic.php?t=22245
image
but with persioan alphba

Log and PDF files

This is XeTeX, Version 3.141592653-2.6-0.999994 (MiKTeX 22.10) (preloaded format=xelatex.fmt)
restricted \write18 enabled.
entering extended mode
(test.tex
LaTeX2e <2022-06-01> patch level 5
L3 programming layer <2022-09-28>
(C:\Program Files\MiKTeX\tex/latex/base\article.cls
Document Class: article 2021/10/04 v1.4n Standard LaTeX document class
(C:\Program Files\MiKTeX\tex/latex/base\size10.clo))
(C:\Program Files\MiKTeX\tex/latex/imakeidx\imakeidx.sty
(C:\Program Files\MiKTeX\tex/latex/xkeyval\xkeyval.sty
(C:\Program Files\MiKTeX\tex/generic/xkeyval\xkeyval.tex
(C:\Program Files\MiKTeX\tex/generic/xkeyval\xkvutils.tex
(C:\Program Files\MiKTeX\tex/generic/xkeyval\keyval.tex))))
(C:\Program Files\MiKTeX\tex/generic/iftex\ifxetex.sty
(C:\Program Files\MiKTeX\tex/generic/iftex\iftex.sty))
(C:\Program Files\MiKTeX\tex/generic/iftex\ifluatex.sty)
(C:\Program Files\MiKTeX\tex/latex/tools\multicol.sty))
(C:\Program Files\MiKTeX\tex/xelatex/xepersian\xepersian.sty
(C:\Program Files\MiKTeX\tex/latex/fontspec\fontspec.sty
(C:\Program Files\MiKTeX\tex/latex/l3packages/xparse\xparse.sty
(C:\Program Files\MiKTeX\tex/latex/l3kernel\expl3.sty
(C:\Program Files\MiKTeX\tex/latex/l3backend\l3backend-xetex.def)))
(C:\Program Files\MiKTeX\tex/latex/fontspec\fontspec-xetex.sty
(C:\Program Files\MiKTeX\tex/latex/base\fontenc.sty)
(C:\Program Files\MiKTeX\tex/latex/fontspec\fontspec.cfg)))
(C:\Program Files\MiKTeX\tex/xelatex/xepersian\xepersian-persiancal.sty)
(C:\Program Files\MiKTeX\tex/xelatex/xepersian\xepersian-mathdigitspec.sty)
(C:\Program Files\MiKTeX\tex/xelatex/bidi\bidi.sty


  • bidi package (Bidirectional typesetting in
  • plain TeX and LaTeX, using XeTeX engine)
  • Description: A convenient interface for
  • typesetting bidirectional texts in plain TeX
  • and LaTeX. The package includes adaptations
  • for use with many other commonly-used packages.
  • Copyright (c) 2007--2023 Vafa Khalighi
  • Copyright (c) 2018--2020 bidi-tex GitHub organization
  • v39.8 (Release Donald Ervin Knuth), 2023/08/02
  • License: LaTeX Project Public License, version
  • 1.3c or higher (your choice)
  • Location on CTAN: /macros/xetex/latex/bidi
  • Issue tracker: https://github.com/kvafa/bidi/issues
  • Discussions: https://github.com/kvafa/bidi/discussions
  • Primary author of bidi package: Vafa Khalighi.

(C:\Program Files\MiKTeX\tex/xelatex/bidi\biditools.sty)
(C:\Program Files\MiKTeX\tex/latex/zref\zref-abspage.sty
(C:\Program Files\MiKTeX\tex/latex/zref\zref-base.sty
(C:\Program Files\MiKTeX\tex/generic/ltxcmds\ltxcmds.sty)
(C:\Program Files\MiKTeX\tex/generic/infwarerr\infwarerr.sty)
(C:\Program Files\MiKTeX\tex/latex/kvsetkeys\kvsetkeys.sty)
(C:\Program Files\MiKTeX\tex/generic/kvdefinekeys\kvdefinekeys.sty)
(C:\Program Files\MiKTeX\tex/generic/pdftexcmds\pdftexcmds.sty)
(C:\Program Files\MiKTeX\tex/generic/etexcmds\etexcmds.sty)
(C:\Program Files\MiKTeX\tex/latex/auxhook\auxhook.sty)))
(C:\Program Files\MiKTeX\tex/xelatex/bidi\latex-xetex-bidi.def
(C:\Program Files\MiKTeX\tex/xelatex/bidi\footnote-xetex-bidi.def)
(C:\Program Files\MiKTeX\tex/xelatex/bidi\article-xetex-bidi.def)
(C:\Program Files\MiKTeX\tex/xelatex/bidi\multicol-xetex-bidi.def))
(C:\Program Files\MiKTeX\tex/xelatex/bidi\loadingorder-xetex-bidi.def))


  • xepersian package (Persian for LaTeX, using XeTeX engine)
  • Description: The package supports Persian
  • typesetting, using fonts provided in the
  • distribution.
  • Copyright (c) 2008--2023 Vafa Khalighi
  • Copyright (c) 2018--2020 bidi-tex GitHub Organization
  • v25.0 (Release Women, Life, and Freedom), 2023/08/30
  • License: LaTeX Project Public License, version
  • 1.3c or higher (your choice)
  • Location on CTAN: /macros/xetex/latex/xepersian
  • Issue tracker: https://github.com/kvafa/xepersian/issues
  • Discussions: https://github.com/kvafa/xepersian/discussions
  • Primary author of xepersian package: Vafa Khalighi.

(C:\Program Files\MiKTeX\tex/xelatex/xepersian\loadingorder-xepersian.def)
(C:\Program Files\MiKTeX\tex/xelatex/xepersian\footnote-xepersian.def)
(C:\Program Files\MiKTeX\tex/xelatex/xepersian\article-xepersian.def))
Writing index file test.idx
(test.aux) (C:\Program Files\MiKTeX\tex/latex/base\ts1cmr.fd) [1] [2] [3]
(test.ind

LaTeX Font Warning: Font shape TU/XBNiloofar(0)/b/n' undefined (Font) using TU/XBNiloofar(0)/m/n' instead on input line 1.

Missing character: There is no � in font [lmsans10-bold]:mapping=tex-text;!
Missing character: There is no � in font [lmsans10-bold]:mapping=tex-text;!
Missing character: There is no � in font [lmsans10-bold]:mapping=tex-text;!
[4]) (test.aux)

LaTeX Font Warning: Some font shapes were not available, defaults substituted.

)
(see the transcript file for additional information)
Output written on test.pdf (4 pages).
Transcript written on test.log.

Using LTRfoonote within theorem-like environments colored by tcolorbox

I usually use tcolorbox package for coloring my theorem-like environments. Recently, I encountered a problem while I was trying to use footnotes within these environments. The default behavior is that the footnotes are placed at the end of the box while I want them be placed at the end of the page. It would be nice to have an option for the LTRfootnote that allows one to choose between these two different behaviors. The following links on parsilatex.com also show that this feature has been requested several times. A solution is also suggested in Link 2.

Link 1
Link 2
Link 3

Wrong layout of LTR footnotes in landscape page

Brief outline of the issue

The column layout of LTR footnotes is from right to left.

Check/indicate

Minimal example showing the issue

% !TEX TS-program = XeLaTeX
% !TEX encoding = UTF-8 Unicode


\documentclass{article}            % or some other class

  % Any packages other than the xepersian package must be loaded here
\usepackage{pdflscape}
\usepackage{ptext}

  % The xepersian package must be loaded as the last package
\usepackage[%
    extrafootnotefeatures% Any xepersian package option goes here
]{xepersian}
\settextfont{IRXLotus}
\fourcolumnfootnotes
  % Any preamble code goes here
  
\begin{document}

\begin{landscape}
\ptext
\LTRfootnote{Hi}\footnote{سلام}%
\LTRfootnote{Hi}\footnote{سلام}%
\LTRfootnote{Hi}\footnote{سلام}%
\LTRfootnote{Hi}\footnote{سلام}%
\LTRfootnote{Hi}\footnote{سلام}%
\LTRfootnote{Hi}\footnote{سلام}%
\end{landscape}
  
\end{document}

Expected behavior

I expect the column layout of LTR footnotes be from left to right.

Log and PDF files

test.log
test.pdf

Environmental problem Abstract

Brief outline of the issue

Check/indicate

Minimal example showing the issue

% !TEX TS-program = XeLaTeX
% !TEX encoding = UTF-8 Unicode


\documentclass[10pt]{beamer}
\usepackage{xepersian}
\settextfont{Yas}
\usepackage{ptext} 

\begin{document}

\begin{frame}{مقدمه}
\begin{abstract}
\ptext[1]
\end{abstract}
\begin{block}{عنوان بلوک}
\begin{abstract}
\ptext[1]
\end{abstract}
\end{block}
\end{frame}

\end{document}

Expected behavior

درود جناب وفا در نسخه اولیه 2022 مشکلی نداشت.

Log and PDF files

test_abstract_newbidi.log
test_abstract_newbidi.pdf
test_TL2022iso.pdf

Feature request: Is it possible to add this layout for paragraph footnotes as a command?

Brief outline of the feature request

Request for a new layout for paragraph footnotes.

Check/indicate

Minimal example

% !TEX TS-program = XeLaTeX
% !TEX encoding = UTF-8 Unicode

\documentclass{article}
\usepackage{ptext}
\usepackage[extrafootnotefeatures]{xepersian}
\settextfont{Yas}%{IRXLotus}
\paragraphfootnotes

\begin{document}
\LTRfootnote{An english footnote}
\RTLfootnote{هزاران سال است که مردم از نقره و طلا به عنوان ذخیره ارزش و وسیله‌ای برای سرمایه‌گذاری استفاده می‌کنند.}
\LTRfootnote{An english footnote}
\LTRfootnote{The James Webb Space Telescope is a space telescope designed primarily to conduct infrared astronomy.}
\RTLfootnote{مرکز بین‌المللی فیزیک نظری}
\RTLfootnote{یک نوع رمزارز}
\RTLfootnote{سود سرمایه‌گذاری}
\RTLfootnote{جدول در لاتک}
\LTRfootnote{An english footnote}
\LTRfootnote{An english footnote}
\LTRfootnote{An english footnote}
\ptext[1-12]
\end{document} 

Expected behavior

Some Xepersian users would like the layout of paragraph footnotes to be like the following photoshopped screenshot. In other words, the number of the first footnote should always be 1 and the number of the rest of the footnotes should be consecutive (of course in right direction). Would it be possible to add this layout as a command or option so users have a choice?

d-footnote

Log and PDF files

new-layout-for-paragraph-footnotes.log
new-layout-for-paragraph-footnotes.pdf

! LaTeX Error: File `zref-abspage.sty' not found

Hi. After xepersian compile with tex xepersian.ins and tex xepersian.dtx to generate .sty files and copy this files inside of
/usr/share/texmf-dist/tex/latex/xepersian/. Every time I want save my tex document I have gotten following error:

Note: I've been using Arch (Manjaro distro), and texlive-most with texlive-bibtexextra package.

Also I'm using LaTex workshop in Visual Studio Code as extension to load and compile tex file and generate .pdf file.

This is XeTeX, Version 3.141592653-2.6-0.999994 (TeX Live 2022/Arch Linux) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
(/home/alirezacodes/Documents/theory-of-computation/main.tex
LaTeX2e <2021-11-15> patch level 1
L3 programming layer <2022-04-10> (/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2021/10/04 v1.4n Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size10.clo)) (/usr/share/texmf-dist/tex/latex/hyperref/hyperref.sty (/usr/share/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty) (/usr/share/texmf-dist/tex/generic/iftex/iftex.sty) (/usr/share/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty (/usr/share/texmf-dist/tex/generic/infwarerr/infwarerr.sty)) (/usr/share/texmf-dist/tex/latex/graphics/keyval.sty) (/usr/share/texmf-dist/tex/generic/kvsetkeys/kvsetkeys.sty) (/usr/share/texmf-dist/tex/generic/kvdefinekeys/kvdefinekeys.sty) (/usr/share/texmf-dist/tex/generic/pdfescape/pdfescape.sty) (/usr/share/texmf-dist/tex/latex/hycolor/hycolor.sty) (/usr/share/texmf-dist/tex/latex/letltxmacro/letltxmacro.sty) (/usr/share/texmf-dist/tex/latex/auxhook/auxhook.sty) (/usr/share/texmf-dist/tex/latex/kvoptions/kvoptions.sty) (/usr/share/texmf-dist/tex/latex/hyperref/pd1enc.def) (/usr/share/texmf-dist/tex/generic/intcalc/intcalc.sty) (/usr/share/texmf-dist/tex/generic/etexcmds/etexcmds.sty) (/usr/share/texmf-dist/tex/latex/hyperref/puenc.def) (/usr/share/texmf-dist/tex/latex/url/url.sty) (/usr/share/texmf-dist/tex/generic/bitset/bitset.sty (/usr/share/texmf-dist/tex/generic/bigintcalc/bigintcalc.sty)) (/usr/share/texmf-dist/tex/latex/base/atbegshi-ltx.sty)) (/usr/share/texmf-dist/tex/latex/hyperref/hxetex.def (/usr/share/texmf-dist/tex/generic/stringenc/stringenc.sty) (/usr/share/texmf-dist/tex/latex/rerunfilecheck/rerunfilecheck.sty (/usr/share/texmf-dist/tex/latex/base/atveryend-ltx.sty) (/usr/share/texmf-dist/tex/generic/uniquecounter/uniquecounter.sty))) (/usr/share/texmf-dist/tex/latex/ragged2e/ragged2e.sty) (/usr/share/texmf-dist/tex/latex/graphics/color.sty (/usr/share/texmf-dist/tex/latex/graphics-cfg/color.cfg) (/usr/share/texmf-dist/tex/latex/graphics-def/xetex.def)) (/usr/share/texmf-dist/tex/latex/xepersian/xepersian.sty (/usr/share/texmf-dist/tex/latex/fontspec/fontspec.sty (/usr/share/texmf-dist/tex/latex/l3packages/xparse/xparse.sty (/usr/share/texmf-dist/tex/latex/l3kernel/expl3.sty (/usr/share/texmf-dist/tex/latex/l3backend/l3backend-xetex.def))) (/usr/share/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty (/usr/share/texmf-dist/tex/latex/base/fontenc.sty) (/usr/share/texmf-dist/tex/latex/fontspec/fontspec.cfg))) (/usr/share/texmf-dist/tex/latex/xepersian/xepersian-persiancal.sty) (/usr/share/texmf-dist/tex/latex/xepersian/xepersian-mathdigitspec.sty) (/usr/share/texmf-dist/tex/xelatex/bidi/bidi.sty
****************************************************
* 
* bidi package (Bidirectional typesetting in
* plain TeX and LaTeX, using XeTeX engine)
* 
* Description: A convenient interface for
* typesetting bidirectional texts in plain TeX
* and LaTeX. The package includes adaptations
* for use with many other commonly-used packages.
* 
* Copyright (c) 2007--2022 Vafa Khalighi
* Copyright (c) 2018--2020 bidi-tex GitHub organization
* 
* v36.7, 2022/02/18
* 
* License: LaTeX Project Public License, version
* 1.3c or higher (your choice)
* 
* Location on CTAN: /macros/xetex/latex/bidi
* 
* Issue tracker: https://github.com/tex-persian/bidi/issues
* 
* Discussions: https://github.com/tex-persian/bidi/discussions
* 
* Support Email: [email protected]
* 
* Primary author of bidi package: Vafa Khalighi.
* 
****************************************************
(/usr/share/texmf-dist/tex/xelatex/bidi/biditools.sty)
==> First Aid for biditools.sty no longer applied!
    Expected:
        2020/05/13 v2 Programming tools for bidi package
    but found:
        2022/02/01 v2.1 Programming tools for bidi package
    so I'm assuming it got fixed.

! LaTeX Error: File `zref-abspage.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
/usr/share/texmf-dist/tex/xelatex/bidi/bidi.sty:101: Emergency stop.
<read *> 
         
l.101 \RequirePackage
                     {auxhook}^^M
No pages of output.
Transcript written on main.log.

Spurious space in hyperref-xepersian.def

Brief outline of the issue

In hyperref-xepersian.def it adds some commands to a hyperref hook with \pdfstringdefDisableCommands and inserts a spurious space in the last line:

\pdfstringdefDisableCommands{%
\let\lr\@firstofone
\let\rl\@firstofone
\def\XePersian{XePersian}    %<--------- spurious space here
}

Check/indicate

error \color<>{} in beamer

Brief outline of the issue

Check/indicate

Minimal example showing the issue

% !TEX TS-program = XeLaTeX
% !TEX encoding = UTF-8 Unicode


\documentclass{beamer}

\usepackage{xepersian}
\settextfont{Yas}


\begin{document}

\begin{frame}
این یک تست است. 

{\color<2-3>{blue} 
این متن به رنگ آبی است در اسلاید 2 و 3، در غیراینصورت مشکی.}
\end{frame}

\end{document}

Expected behavior

! Package xcolor Error: Undefined color `<'.
See the xcolor package documentation for explanation.
Type H for immediate help.

درود جناب وفا، قبلا چند مشکل را اینجا نوشتم
https://github.com/mojtabaahmadi2020tl

https://github.com/mojtabaahmadi2020tl/beamer_color/blob/main/beamer_color.tex

Log and PDF files

test_color_beamer.log
test_color_beamer.pdf

Wrong position of LTR footnote in landscape page

Brief outline of the issue

In the landscape page (from lscape or pdflscape package), the position of the English footnote is not correct.

Check/indicate

Minimal example showing the issue

% !TEX TS-program = XeLaTeX
% !TEX encoding = UTF-8 Unicode


\documentclass{article}            % or some other class

  % Any packages other than the xepersian package must be loaded here
\usepackage{pdflscape}
\usepackage{ptext}
  % The xepersian package must be loaded as the last package
\usepackage[%
    extrafootnotefeatures%
]{xepersian}
\settextfont{IRXLotus}
\paragraphfootnotes
  % Any preamble code goes here
  
\begin{document}

\begin{landscape}
\ptext
\LTRfootnote{Hi}\footnote{سلام}
\end{landscape}
  
\end{document}

Expected behavior

I expect the LTR footnote to be on the left side of the page, not in the middle of the page.

Log and PDF files

test.log
test.pdf

problem with beamer with sidebar theme "Berkeley, PaloAlto, Goettingen, and Hannover"

Brief outline of the issue

Check/indicate

Minimal example showing the issue

% !TEX TS-program = XeLaTeX
% !TEX encoding = UTF-8 Unicode


\documentclass[t]{beamer}
\numberwithin{equation}{section}

% Themes with a Table of Contents Sidebar

%\usetheme{Berkeley}
%\usetheme{PaloAlto}
\usetheme{Goettingen}
%\usetheme{Hannover}

  % Any packages other than the xepersian package must be loaded here

  % The xepersian package must be loaded as the last package
\usepackage[%
    % Any xepersian package option goes here
]{xepersian}
\settextfont{IRXLotus}

  % Any preamble code goes here
  
\author{نویسنده}
\title{تست بیمر با زیپرشین}
\date{\today}

\begin{document}

\maketitle


\begin{frame}{فهرست}
	\tableofcontents
\end{frame}

\section{مقدمه}
\subsection{زیربخش}

\begin{frame}{\secname}
درود
	\begin{theorem}
		فیثاغورث
		\begin{equation}\label{eq:1}
				a^2+b^2 = c^2
		\end{equation}
		\begin{itemize}
			\item یک
			\item دو
			\item سه
		\end{itemize}
	\end{theorem}
\begin{enumerate}
	\item یک
	\item دو
	\item سه
\end{enumerate}
\end{frame}
  
\end{document}

Expected behavior

Log and PDF files

beamer_xe_PaloAltoTheme.pdf
beamer_xe_Berkeley.pdf
beamer_xe_GoettingenTheme.pdf
beamer_xe_HannoverTheme.pdf

problem of RTL_itemize in Theorem environment

Brief outline of the issue

Check/indicate

Minimal example showing the issue

% !TEX TS-program = XeLaTeX
% !TEX encoding = UTF-8 Unicode


\documentclass{beamer}            % or some other class
\usetheme{warsaw}
  % Any packages other than the xepersian package must be loaded here

  % The xepersian package must be loaded as the last package
\usepackage[%
    % Any xepersian package option goes here
]{xepersian}
\settextfont{IRXLotus}

  % Any preamble code goes here
  
\begin{document}

\section{مقدمه}
\begin{frame}{\secname}
	سلام
	\begin{theorem}
		فیثاغورث
		\begin{equation}
				a^2+b^2 = c^2
		\end{equation}
		\begin{itemize}
			\item یک
			\item دو
			\item سه
		\end{itemize}
	\end{theorem}
\begin{enumerate}
	\item یک
	\item دو
	\item سه
\end{enumerate}
\end{frame}
  
\end{document}

Expected behavior

Ragged left Itemize in Theorem Environment

Log and PDF files

beamer_xe_test1.pdf
beamer_xe_test1.log

Typesetting numbers in math mode with pgf-pie

Brief outline of the feature request

Irregular output of decimal numbers in the chart. Maybe it is better to write them in a inline math mode.

Check/indicate

Minimal example

% !TEX TS-program = XeLaTeX
% !TEX encoding = UTF-8 Unicode


\documentclass{article}

\usepackage{pgf-pie}
% =
%\usepackage{tikz}
%\usetikzlibrary{pie}

\usepackage{xepersian}
\settextfont{IRXLotus}
\setmathdigitfont{IRXLotus}

% In the `tikzlibrarypie.code.tex` file,
%  the command used to display the numbers is defined with the name `\pgfpie@numbertext`.
% We can change the numbers on the chart to math mode.
% If we make this change, everything will be OK.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeatletter
\bidi@patchcmd{\pgfpie@numbertext}%
	{\pgfpie@beforenumber#1\pgfpie@afternumber}%
	{\pgfpie@beforenumber$#1$\pgfpie@afternumber}{}{}
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Note:
% I want you to make this change with the lovely `xepersian` package please.

\begin{document}
		
	\tikz\pie[polar, radius=2]{15.5/A,30/B,19.5/C,35/D};
	
\end{document}

Expected behavior

I want to typeset numbers in math environment (inline math).

test.log
test.pdf

Right alignment of text in columns environment while using beamer

It seems that text is not properly aligned within columns environment, while using the beamer class. Here is a minimal example showing the issue.

\documentclass{beamer}

\usepackage{xepersian}
\settextfont{Persian Modern}

\begin{document}

\begin{frame}
\frametitle{راست‌چین شدن محیط ستون‌ها توسط \lr{\XePersian}}
\begin{columns}
\begin{column}{0.5\textwidth}
ستون اول
\begin{itemize}
\item
آیتم اول
\item 
آیتم دوم
\end{itemize}
\end{column}
\begin{column}{0.5\textwidth}
ستون دوم
\begin{enumerate}
\item 
شمارشی اول
\item
شمارشی دوم
\end{enumerate}
\end{column}
\end{columns}
\end{frame}

\end{document}

sample.pdf

Problem in framezoom

Brief outline of the issue

Check/indicate

Minimal example showing the issue

% !TEX TS-program = XeLaTeX
% !TEX encoding = UTF-8 Unicode


\documentclass{beamer}

\usepackage{multirow,hhline}
\usepackage{subcaption}
\captionsetup{belowskip=0pt,aboveskip=0pt}

\usefonttheme{professionalfonts}

\usepackage{xepersian}
\settextfont{XB Zar}
\setdigitfont{Yas}

\begin{document}

\begin{frame}{\lr{framezoom}}
\hypersetup{linkbordercolor={0 0 1}}
\framezoom<1><2>[border=4](4cm,2.02cm)(1cm,3cm) 
\includegraphics[height=\textheight,width=\textwidth,keepaspectratio]{logo-end.pdf}
\end{frame}

\begin{frame}{جدول }{با شماره عنوان}
\hypersetup{linkbordercolor={1 0 0}}
\framezoom<1><2>[border=4](0.697\textwidth,1.1cm)(1cm,2cm) 
\begin{table}[!h]
\caption{آنالیز واریانس}
\setLTRtable
\resizebox{\textwidth}{!}{%
\begin{tabular}{||c||c||c||c||c||}\hhline{|t:=:t:=:t:=:t:=:t:=:t|}
\small{\rl{منبع تغییرات}}&$(d.f)\,$\small{\rl{درجه آزادی} }&$(SS)\,$\small{\rl{مجموع مربعات}} &$(MS)\,$\small{\rl{میانگین مربعات}} & $\quad F\quad $ \\ \hhline{|:=::=::=::=::=:|}
\small{\rl{بین گروهها}} &$v_1=k-1 $  &$SSR$ &\alert<2>{$MSR$} &\multirow{2}{*}{\alert<2>{$\frac{MSR}{MSE}$}} \\ \hhline{|:=::=::=::=:|~||}
\small{\rl{درون گروهها}} &$v_2=N-k $  & $SSE$& \alert<2>{$MSE$}& \\ \hhline{|:=::=::=::=::=:|}
\small{\rl{کل}} & $N-1$ &$SST$ &$MST$  & $\cdots$\\ \hhline{|b:=:b:=:b:=:b:=:b:=:b|}
\end{tabular}}
\end{table}

\end{frame}


\end{document}

Expected behavior

logo-end.pdf
beamer_framezoom_solve.pdf

Log and PDF files

beamer_framezoom.pdf
beamer_framezoom.log

localise is not working with `tagging` package

Brief outline of the issue

Check/indicate

Minimal example showing the issue

% !TEX TS-program = XeLaTeX
% !TEX encoding = UTF-8 Unicode


\documentclass{article}            % or some other class

\usepackage{tagging}
\usepackage[%
    localise
]{xepersian}
\settextfont{IRXLotus}

%\usetag{answer}
\newenvironment{answer}
{
  \taggedblock{answer}
  \vspace{5mm}
  \color{WildStrawberry}
  \rule{2cm}{0.5pt}\\
  تن‌سیاه{پاسخ.}\\
}
{
  \endtaggedblock
}

\eqenvironment{پاسخ}{answer}

\begin{document}

\begin{پاسخ}
  من یک پاسخ هستم
\end{پاسخ}

\end{document}

Expected behavior

When there is no answer tag, the answer block shouldn't be rendered, but because the \eqenvironment{پاسخ}{answer} we got an error.

problem of "table of contents"

Brief outline of the issue

Check/indicate

Minimal example showing the issue

% !TEX TS-program = XeLaTeX
% !TEX encoding = UTF-8 Unicode


\documentclass{beamer}            % or some other class
\usetheme{madrid}
  % Any packages other than the xepersian package must be loaded here

  % The xepersian package must be loaded as the last package
\usepackage[%
    % Any xepersian package option goes here
]{xepersian}
\settextfont{IRXLotus}

  % Any preamble code goes here
  
\begin{document}

\begin{frame}{فهرست}
	\tableofcontents
\end{frame}

\section{مقدمه}
\section{مشتق}
\subsection{چندجمله ای}

\begin{frame}{\secname}
	مشتق
\end{frame}
  
\end{document}

Expected behavior

ragged left item in table of contents

Log and PDF files

beamer_xe_test1.pdf
beamer_xe_test1.log

The problem of writing linke after the text

Brief outline of the issue

Check/indicate

Minimal example showing the issue

% !TEX TS-program = XeLaTeX
% !TEX encoding = UTF-8 Unicode
\documentclass[12pt]{report}
\usepackage{xepersian}
\settextfont{Yas}

\begin{document}
\texttt{https://tex.stackexchange.com/questions/522248}
متن

تست
\texttt{https://qa.parsilatex.com/36414/}

\end{document}

test_fa.pdf
test_fa.log

! Undefined control sequence.\appendix ...xdef \Hy@chapapp {\Hy@appendixstring}\HyOrg@appendix

Brief outline of the issue

Check/indicate

Minimal example showing the issue

% !TEX TS-program = XeLaTeX
% !TEX encoding = UTF-8 Unicode


\documentclass{beamer}

\usepackage{xepersian}
\settextfont{Yas} 

\begin{document}

\begin{frame}
test
\end{frame}

\appendix
\begin{frame}{appendix}
test
\end{frame}

\end{document}

Expected behavior

Log and PDF files

test_appendix_bidi.log
test_appendix_bidi.pdf

Problem in note

Brief outline of the issue

Check/indicate

Minimal example showing the issue

% !TEX TS-program = XeLaTeX
% !TEX encoding = UTF-8 Unicode


\documentclass{beamer}

\usetheme{EastLansing}

\setbeameroption{show notes on second screen}%=right,left, bottom, or top.

\usefonttheme{professionalfonts}
\usepackage{xepersian}
\settextfont{XB Zar}
\setdigitfont{Yas}
\defpersianfont\nas[Scale=1.5,ExternalLocation]{IranNastaliq}


\title{عنوان اسلاید}
\author[مجتبیٰ احمدی]{{\color{blue}\nas
مجتبیٰ احمدی}}
\institute[پیام‌نو‌ر مشگین شهر]{دانشگاه: پیام‌نو‌ر مشگین شهر}
\date{\today}
\logo{\rotatebox{90}{\large\color{blue}\lr{@Tex\_Ahmadi}}}


\begin{document}

\begin{frame}
\centerline{Logo}
\vskip-4mm
\titlepage
\end{frame}

\section{بخش}
\subsection{زیربخش}

\begin{frame}<1-2>{عنوان فریم}
این متن اسلاید است
\begin{equation}
P_{r-j}=\begin{cases}
0& \text{if $r-j$ is odd},\\
r!\,(-1)^{(r-j)/2}& \text{if $r-j$ is even}.
\end{cases}
\end{equation}
\note{این یادداشت برای تست است}

\end{frame}

\note[enumerate]
{%
\item آیتم اول
\item آیتم دوم
}


\defverbatim\mycode{%
\latin
\begin{verbatim}
\[
\sum_{\substack{
{\color{red}0\le i\le m}\\
0<j<n}}
P(i,j)
\]
\end{verbatim}
}

\defverbatim\mycoded{%
\latin
\begin{verbatim}
\[
\sum_{\begin{subarray}{l}
{\color{blue}i\in\Lambda }\\ 
0<j<n
\end{subarray}}
P(i,j)
\]
\end{verbatim}
}

\begin{frame}{نوشتن یادداشت در اسلاید}
این متن اسلاید است و ادامه ...
\only<1>{%
\begin{equation*}
\sum_{\substack{
{\color{red}0\le i\le m}\\
0<j<n}}
P(i,j)
\end{equation*}
}
%
\only<2>{%
\begin{equation*}
\sum_{\begin{subarray}{l}
{\color{blue}i\in\Lambda }\\ 0<j<n
\end{subarray}}
P(i,j)
\end{equation*}
}
%
\note<1>{این یادداشت اول است
 \lr{substack}
 \mycode}
\note<2>{این یادداشت دوم است
 \lr{subarray}
\mycoded }

\end{frame}



\begin{frame}{نوشتن یادداشت}
این متن اسلاید است و ادامه ...
\note{مجموع $n$ عدد متوالی 
\begin{equation*}
\sum_{i=1}^n i=\frac{n(n+1)}{2}
\end{equation*}}

\end{frame}

\end{document}

Expected behavior

Log and PDF files

beamer_note.pdf
beamer_note.log

beamer_note-solve.pdf

problem LTRitems in beamer

Brief outline of the issue

Check/indicate

Minimal example showing the issue

% !TEX TS-program = XeLaTeX
% !TEX encoding = UTF-8 Unicode


\documentclass[10pt]{beamer}

\usepackage{xepersian}
\settextfont{Yas}

\begin{document}

\begin{frame}
\begin{itemize}
\item
تست
\begin{LTRitems}
\item test
\end{LTRitems}
\end{itemize}
ادامه متن برای تست
\begin{enumerate}
\item
تست
\begin{LTRitems}
\item test
\end{LTRitems}
\end{enumerate}
%
\begin{block}{عنوان بلوک}
\begin{itemize}
\item
تست
\begin{LTRitems}
\item test
\end{LTRitems}
\end{itemize}
ادامه متن برای تست
\begin{enumerate}
\item
تست
\begin{LTRitems}
\item test
\end{LTRitems}
\end{enumerate}
\end{block}

\end{frame}

\end{document} 

Expected behavior

Log and PDF files

LTRitems_beamer.pdf
LTRitems_beamer.log

solve-LTRitems_beamer.pdf

Translate section names and subsections

Brief outline of the issue

Check/indicate

Minimal example showing the issue

% !TEX TS-program = XeLaTeX
% !TEX encoding = UTF-8 Unicode


\documentclass{beamer}

\usepackage{xepersian}
\settextfont{Yas}

\begin{document}

\part{عنوان قسمت}
\frame{\partpage}
\section{عنوان بخش}
\frame{\sectionpage}
\subsection{عنوان زیربخش}
\frame{\subsectionpage}

\end{document}

Expected behavior

Log and PDF files

beamer_trans_xep.pdf
beamer_trans_xep.log

problem of Listings with circles and rectangles innertheme in Beamer Block

Brief outline of the issue

Listings work fine with rounded innertheme in beamer Block, but not work in circles and rectangles innertheme

Check/indicate

Minimal example showing the issue

% !TEX TS-program = XeLaTeX
% !TEX encoding = UTF-8 Unicode

\documentclass[t]{beamer}
%\usetheme{Luebeck}

%\useinnertheme{rounded}
%\useinnertheme{circles}
\useinnertheme{rectangles}

\usepackage{listings}
\colorlet{bakcolor}{yellow!15}
\lstset{language=Matlab,
	backgroundcolor=\color{bakcolor}, 
	linewidth=\textwidth ,
	frameround=ttff,
	frame=trBL,
	basicstyle=\ttfamily\footnotesize,
	keywordstyle=\color{blue}\bfseries,
%	framexleftmargin=-1mm, frame=shadowbox, rulesepcolor=\color{red},
	stringstyle=\ttfamily\color{magenta}, % typewriter type for strings
	commentstyle=\color{green!50!black},
	lineskip = .5pt,
	numberstyle=\scriptsize, 
	numbersep=10pt,
	numbers=left,
	%numbers=none,
	captionpos=t, 
	breaklines=true,
	showstringspaces=true,
	xleftmargin=12pt,
xrightmargin=5pt}

\usepackage{xepersian}
\settextfont{Yas}

\begin{document}
	
\begin{frame}[fragile]{لیستینگ}%containsverbatim   
	در اینجا کد متلب وارد می کنیم
\begin{block}{کد متلب}
\begin{latin}
\begin{lstlisting}
%============================
%===  Test Program ==========
%============================
clc
clear 
close all
t=0:0.1:2*pi;
y=sin(t);
plot(t,y)
\end{lstlisting}
\end{latin}
\end{block}
\end{frame}

\begin{frame}[fragile]{لستینگس بدون بلاک}
\begin{latin}
\begin{lstlisting}
%============================
%===  Test Program ==========
%============================
clc
clear 
close all
t=0:0.1:2*pi;
y=sin(t);
plot(t,y)
\end{lstlisting}
\end{latin}
\end{frame}
\end{document}

Expected behavior

Log and PDF files

beamer_listings_rectangles.pdf
beamer_listings_rounded.pdf

Beamer keywords localise

As far as I know, beamer use some kinds of macro and replacing things like frame environment is not working as expected, but what do you think about replacing \frametitle with its Persian equivalent.

Exam + amsmath does not compile in some cases

Brief outline of the issue

Hello
There is a problem in xepersian that prevents you to compile exam documents that are have a . in one gather or align block of their questions.
For instance, the minimal example I supplied can be compiled with either removing xepersian package, removing the . (dot) between 1 and 2 or changing the document class to article for example. It looks like that the problem is related to the ..

Check/indicate

Minimal example showing the issue

% !TEX TS-program = XeLaTeX
% !TEX encoding = UTF-8 Unicode
\documentclass{exam}
\usepackage{amsmath}
\usepackage{xepersian}
\settextfont{XB Niloofar}
\begin{document}
\begin{questions}
\question
\begin{gather*}
a = 1.2
\end{gather*}
\end{questions}
\end{document}

Expected behavior

PDF compiles successfully.

Log and PDF files

This is XeTeX, Version 3.141592653-2.6-0.999995 (TeX Live 2023) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
(./main.tex
LaTeX2e <2022-11-01> patch level 1
L3 programming layer <2023-02-22>
(/usr/local/texlive/2023/texmf-dist/tex/latex/exam/exam.cls
Document Class: exam 2021/02/26 Version 2.7 by Philip Hirschhorn
(/usr/local/texlive/2023/texmf-dist/tex/latex/base/ifthen.sty)
(/usr/local/texlive/2023/texmf-dist/tex/latex/base/article.cls
Document Class: article 2022/07/02 v1.4n Standard LaTeX document class
(/usr/local/texlive/2023/texmf-dist/tex/latex/base/size10.clo)))
(/usr/local/texlive/2023/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2023/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2023/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2023/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2023/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/local/texlive/2023/texmf-dist/tex/xelatex/xepersian/xepersian.sty
(/usr/local/texlive/2023/texmf-dist/tex/latex/fontspec/fontspec.sty
(/usr/local/texlive/2023/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
(/usr/local/texlive/2023/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/local/texlive/2023/texmf-dist/tex/latex/l3backend/l3backend-xetex.def)))
(/usr/local/texlive/2023/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty
(/usr/local/texlive/2023/texmf-dist/tex/latex/base/fontenc.sty)
(/usr/local/texlive/2023/texmf-dist/tex/latex/fontspec/fontspec.cfg)))
(/usr/local/texlive/2023/texmf-dist/tex/xelatex/xepersian/xepersian-persiancal.
sty)
(/usr/local/texlive/2023/texmf-dist/tex/xelatex/xepersian/xepersian-mathdigitsp
ec.sty) (/usr/local/texlive/2023/texmf-dist/tex/xelatex/bidi/bidi.sty
****************************************************
* 
* bidi package (Bidirectional typesetting in
* plain TeX and LaTeX, using XeTeX engine)
* 
* Description: A convenient interface for
* typesetting bidirectional texts in plain TeX
* and LaTeX. The package includes adaptations
* for use with many other commonly-used packages.
* 
* Copyright (c) 2007--2023 Vafa Khalighi
* Copyright (c) 2018--2020 bidi-tex GitHub organization
* 
* v39.7 (Release Serge Lang), 2023/01/18
* 
* License: LaTeX Project Public License, version
* 1.3c or higher (your choice)
* 
* Location on CTAN: /macros/xetex/latex/bidi
* 
* Issue tracker: https://github.com/kvafa/bidi/issues
* 
* Discussions: https://github.com/kvafa/bidi/discussions
* 
* Primary author of bidi package: Vafa Khalighi.
* 
****************************************************
(/usr/local/texlive/2023/texmf-dist/tex/generic/iftex/iftex.sty)
(/usr/local/texlive/2023/texmf-dist/tex/xelatex/bidi/biditools.sty)
(/usr/local/texlive/2023/texmf-dist/tex/latex/zref/zref-abspage.sty
(/usr/local/texlive/2023/texmf-dist/tex/latex/zref/zref-base.sty
(/usr/local/texlive/2023/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty)
(/usr/local/texlive/2023/texmf-dist/tex/generic/infwarerr/infwarerr.sty)
(/usr/local/texlive/2023/texmf-dist/tex/latex/kvsetkeys/kvsetkeys.sty)
(/usr/local/texlive/2023/texmf-dist/tex/generic/kvdefinekeys/kvdefinekeys.sty)
(/usr/local/texlive/2023/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty)
(/usr/local/texlive/2023/texmf-dist/tex/generic/etexcmds/etexcmds.sty)
(/usr/local/texlive/2023/texmf-dist/tex/latex/auxhook/auxhook.sty))
(/usr/local/texlive/2023/texmf-dist/tex/latex/base/atbegshi-ltx.sty))
(/usr/local/texlive/2023/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/local/texlive/2023/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/local/texlive/2023/texmf-dist/tex/generic/xkeyval/xkvutils.tex
(/usr/local/texlive/2023/texmf-dist/tex/generic/xkeyval/keyval.tex))))
(/usr/local/texlive/2023/texmf-dist/tex/xelatex/bidi/latex-xetex-bidi.def
(/usr/local/texlive/2023/texmf-dist/tex/xelatex/bidi/footnote-xetex-bidi.def)
(/usr/local/texlive/2023/texmf-dist/tex/xelatex/bidi/article-xetex-bidi.def)
(/usr/local/texlive/2023/texmf-dist/tex/xelatex/bidi/amsmath-xetex-bidi.def)
(/usr/local/texlive/2023/texmf-dist/tex/xelatex/bidi/amstext-xetex-bidi.def))
(/usr/local/texlive/2023/texmf-dist/tex/xelatex/bidi/loadingorder-xetex-bidi.de
f))
****************************************************
* 
* xepersian package (Persian for LaTeX, using XeTeX engine)
* 
* Description: The package supports Persian
* typesetting, using fonts provided in the
* distribution.
* 
* Copyright (c) 2008--2022 Vafa Khalighi
* Copyright (c) 2018--2020 bidi-tex GitHub Organization
* 
* v24.8 (Release Women, Life, and Freedom), 2022/10/30
* 
* License: LaTeX Project Public License, version
* 1.3c or higher (your choice)
* 
* Location on CTAN: /macros/xetex/latex/xepersian
* 
* Issue tracker: https://github.com/kvafa/xepersian/issues
* 
* Discussions: https://github.com/kvafa/xepersian/discussions
* 
* Primary author of xepersian package: Vafa Khalighi.
* 
****************************************************

(/usr/local/texlive/2023/texmf-dist/tex/xelatex/xepersian/loadingorder-xepersia
n.def)
(/usr/local/texlive/2023/texmf-dist/tex/xelatex/xepersian/footnote-xepersian.de
f)
(/usr/local/texlive/2023/texmf-dist/tex/xelatex/xepersian/article-xepersian.def
)) (./main.aux) (/usr/local/texlive/2023/texmf-dist/tex/latex/base/ts1cmr.fd))
! Incomplete \ifx; all text was ignored after line 10.
<inserted text> 
                \fi 
<*> main.tex
            
? 

\savebox does not correctly when xepersian loads via cls file.

Brief outline of the issue

I have a cls file that loads xepersian package at the end of the preamble with the aid of biditools. In this file I want to reuse an image for several positions, thus using a LaTeX savebox is desired. Unfortunately, when the saved box has been reused the position of the saved image is not correct and it will typeset outside the box.

Check/indicate

Minimal example showing the issue

The testclass definition:

\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{testclass}
\RequirePackage{graphicx}
\RequirePackage{biditools}
\ProcessOptions
\LoadClass{article}

\bidi@AtEndPreamble{%
    \RequirePackage{xepersian}%
    \settextfont{Yas}%
}

\newsavebox\test
\savebox\test{\fbox{\includegraphics[width=1.2cm]{{images/logo}}}}

Its usage:

\documentclass{testclass}

\begin{document}
\usebox\test
\end{document}

Expected behavior

The following picture shows the issue and the expected behavior.
Screenshot from 2022-06-03 11-06-53

Log and PDF files

test.log
test.pdf

Size of LTRfootnote is not consistent with the size of footnote while using beamer

Size of \LTRfootnote is not consistent with the size of \footnote. Consider the following minimal example.

\documentclass[hyperref={hyperfootnotes=false}]{beamer}

\usepackage{xepersian}
\settextfont{Persian Modern}

\setbeamerfont{footnote}{size=\tiny}
\begin{document}

\begin{frame}
متن اول\footnote{این یک زیرنویس پارسی است.} \
متن دوم\LTRfootnote{This is a latin footnote.} \
متن سوم\RTLfootnote{این هم زیرنویس پارسی دیگری است.} \
متن چهارم\footnote{این یک زیرنویس پارسی است.}
\end{frame}

\end{document}

localise document is not working

Brief outline of the issue

Check/indicate

Minimal example showing the issue

% !TEX TS-program = XeLaTeX
% !TEX encoding = UTF-8 Unicode


\documentclass{article}            % or some other class

  % The xepersian package must be loaded as the last package
\usepackage[%
    localise
]{xepersian}
\settextfont{IRXLotus}
  

روع{نوشتار}

ایان{نوشتار}

Expected behavior

When you are using the localise option of the Xpersian package, you cannot use it on \being{document} and \end{document} which means you cannot use localise version of these command.

! LaTeX Error: Option clash for package beamerfontthemeserif.

Brief outline of the issue

Check/indicate

Minimal example showing the issue

% !TEX TS-program = XeLaTeX
% !TEX encoding = UTF-8 Unicode


\documentclass{beamer}

\usefonttheme{serif}

\usepackage{xepersian} % version 24.1
\settextfont{Yas}
\setdigitfont{Yas}


\begin{document}

\begin{frame}
تست
\[
\sum_{i=1}^n i=\frac{n(n+1)}{2}
\]
\end{frame}

\end{document}

Expected behavior

درود جناب وفا، به گزینه
stillsansserifmath
نیاز ندارم.

Log and PDF files

test_beamer_xepersain.pdf
test_beamer_xepersain.log

Option extrafootnotefeatures does not work properly while using beamer

Adding the extrafootnotefeatures option to xepersian makes footnotes to disappear. Here is a minimal working example.

\documentclass[hyperref={hyperfootnotes=false}]{beamer}

\usepackage[extrafootnotefeatures]{xepersian}
\settextfont{Persian Modern}

\begin{document}

\begin{frame}
متن اول\footnote{این یک زیرنویس پارسی است.} \\
متن دوم\LTRfootnote{This is a latin footnote.} \\
متن سوم\RTLfootnote{این هم زیرنویس پارسی دیگری است.} \\
متن چهارم\footnote{این یک زیرنویس پارسی است.}
\end{frame}

\end{document}

`hyperref` package localise support

I think having support for hyperref package in localise is a nice thing to have. I personally use the following in all of my documents and works smooth.

\eqcommand{تارنما}{href}

different behavior of \footnote and \LTRfootnote in "block" in different theme

Brief outline of the issue

In beamer, with rounded innertheme, \footnote and \LTRfootnote in Block are correct direction in button of the block but numbering is a,b,c,... not number!
when circles and rectangles innertheme was used, footnote and LTRfootnote direction is not correct but numbering is correct and footnote places in button of the slide not block.

Without Block, footenote and LTRfootnote has correct behavior!

Check/indicate

Minimal example showing the issue

% !TEX TS-program = XeLaTeX
% !TEX encoding = UTF-8 Unicode

\documentclass[t]{beamer}
\AtBeginEnvironment{frame}{\setcounter{footnote}{0}}
\setbeamertemplate{navigation symbols}{}

\useinnertheme{rounded}
%\useinnertheme{circles}
%\useinnertheme{rectangles}

\usepackage{xepersian}
\settextfont{Yas}
\begin{document}
\begin{frame}{تست زیرنویس فارسی و انگلیسی در داخل بلوک}
	\begin{block}{\textbf{تست   \lr{footnote} در بلوک}}
		\begin{itemize}
			\item
			یک
			\item
			دو\footnote{دو}
		\end{itemize}
	\end{block}
	
	\begin{block}{\textbf{تست \lr{LTRfootnote} در بلوک}}
		\begin{itemize}
			\item
			یک
			\item
			دو
			\LTRfootnote{two}
\end{itemize}
	\end{block}
\end{frame}

\begin{frame}{تست زیرنویس فارسی و انگلیسی بدون بلوک}
	
	{\textbf{تست   \lr{footnote} }}
		\begin{itemize}
			\item
			یک
			\item
			دو\footnote{دو}
		\end{itemize}
	
	{\textbf{تست \lr{LTRfootnote} }}
		\begin{itemize}
			\item
			یک
			\item
			دو
			\LTRfootnote{two}
		\end{itemize}
\end{frame}
\end{document}

Expected behavior

Log and PDF files

beamer_footnote_rounded.pdf
beamer_footnote_rectangles.pdf

Add a "minimal version" of XePersian

Brief outline of the feature request

Add a minimal version of XePersian that doesn't do unnecessary
changes (e.g. Change the date) to the document and simply helps with
bidi management and Arabic script rendering.

The package must be as minimal as possible to make an scaf for
other developers and macro-writers to build upon.

Check/indicate

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.