xepersian이 로드되는 동안 \lr 없이 라틴어 텍스트 설정

xepersian이 로드되는 동안 \lr 없이 라틴어 텍스트 설정

페르시아어로 되어 있고 페르시아어 글꼴이 xepersian포함된 패키지를 로드하는 대학 논문 템플릿에 문제가 있습니다 B Nazanin. 문제는 정확히 B Nazanin글꼴에 있습니다. 템플릿 서문에서와 같이 다음과 같습니다.

\settextfont{B Nazanin}
\setlatintextfont{Times New Roman}

B Nazanin라틴 문자는 지원하지 않습니다 . 환경 외부의 라틴 문자는 \lr아래와 같이 정사각형이 됩니다.

여기에 이미지 설명을 입력하세요

\lr{}나는 논문을 4장 썼는데 라틴어 부분 하나하나에 사용하기가 매우 어렵습니다 . 어쨌든 이 문제를 더 쉽게 해결할 수 있는 방법이 있습니까?

답변1

프로그램을 사용하세요fribidiXeTeX. 창문에 있다면 다음을 사용할 수 있습니다.컴파일된 버전카쿠토 아키라. 그렇지 않으면 소스에서 직접 컴파일하십시오.

test.tex다음을 포함하는 경우

\documentclass{article}
\usepackage{xepersian}
\settextfont{Yas}
\setdigitfont{Yas}
\let\fribidixetexLRE\lr
\let\fribidixetexRLE\rl
\let\fribidixetexlatinnumbers\lr
\let\fribidixetexnonlatinnumbers\rl
%BIDION
\begin{document}    
این یک پاراگراف «پارسی» است به نام Simple text و این یک عدد 0887 به لاتین است.
%BIDIOFF
\begin{equation}
1+2=3\label{eq:1}
\end{equation}
%BIDION
این فرمول شماره
\ref{eq:1}
است.
%BIDILTR
\begin{latin}
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
\end{latin}
%BIDION
و ادامه متن که بعد از متن Lorem Imsum قرار می‌گیرد.
\end{document}
%BIDIOFF

실행하여

fribidixetex -n test.tex -o test.ltx

test.ltx모든 라틴어 짧은 텍스트가 자동 으로 \lr. 그런 다음 실행해야합니다

xelatex test.ltx

PDF 출력을 생성합니다.

관련 정보