Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

siunitx package is incompatible with bidi / XePersian #4

Open
3 of 5 tasks
vafakhalighi opened this issue May 14, 2020 · 0 comments
Open
3 of 5 tasks

siunitx package is incompatible with bidi / XePersian #4

vafakhalighi opened this issue May 14, 2020 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@vafakhalighi
Copy link
Contributor


Brief outline of the feature request

It seems siunitx package is not compatible xepersian package. The decimal point does not change to the Persian decimal separator i.e. momayyez in \SI or \num sequences. Also \SIlist and \SIrange sequences have incorrect direction and should change words "and" and "to" into proper equivalents. Finally, xepersian package eliminates the degree symbol ° even in the latin environment.

Check/indicate

  • Relevant to the bidi package
  • The bidi package issue tracker has been searched for similar issues?
  • Issue tracker has been searched for similar issues?
  • Links to <tex.stackexchange.com> discussion if appropriate
  • Links to <qa.parsilatex.com> discussion if appropriate

Minimal example

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


\documentclass{article}
\usepackage{siunitx}
%\sisetup{detect-mode}  %detect-all

\usepackage{xepersian}
\settextfont{Yas}
\setmathdigitfont{Yas}

%\usepackage{fontspec}
%\setmainfont[Script=Arabic]{Yas}
%\usepackage{bidi}

\DeclareSIUnit{\calorie}{cal}
\begin{document}
یک کالری کوچک تقریباً برابر است با $4.2$ ژول (به‌طور دقیق $4.1868$ ژول)

\[\SI{1}{\calorie} = \SI{4.1868}{\joule}\]

\SIlist{0.13;0.67;0.80}{\milli\metre}

\SIrange{0.13}{0.67}{\milli\metre}

\num{3.45d-4} 

\ang{4,5} 

\ang{1;2;3} $\ang{1;2;3}$

\begin{latin}
\[\SI{1}{\calorie} = \SI{4.1868}{\joule}\]

\SIlist{0.13;0.67;0.80}{\milli\metre}

\SIrange{0.13}{0.67}{\milli\metre}

\num{3.45d-4} 

\ang{4,5} Where is the $^{\circ}$ (degree) symbol?!

\ang{1;2;3} $\ang{1;2;3}$

\end{latin}
\end{document}

Expected behavior

See outline.

Log and PDF files

siunitx.MWE.log

siunitx.MWE.pdf

@vafakhalighi vafakhalighi added bug Something isn't working enhancement New feature or request labels May 14, 2020
@vafakhalighi vafakhalighi self-assigned this May 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant