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

\XeTeX and \XeLaTeX "already defined" #39

Open
3 tasks
wujastyk opened this issue Dec 18, 2023 · 0 comments
Open
3 tasks

\XeTeX and \XeLaTeX "already defined" #39

wujastyk opened this issue Dec 18, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@wujastyk
Copy link

Brief outline of the issue

Lines 140-144 of latex-xetex-bibdi.def

%\bidi@newrobustcmd*{\XeTeX}{\LR{\leavevmode$\smash{\hbox{X\lower.5ex
%  \hbox{\kern-.125em\bidi@reflect@box{E}}\kern-.1667em \TeX}}$}}
%\bidi@newrobustcmd*{\XeLaTeX}{\LR{\leavevmode$\smash{\hbox{X\lower.5ex
%  \hbox{\kern-.125em\bidi@reflect@box{E}}\kern-.1667em \LaTeX}}$}}

are causing an error message for me of the type,

[\XeTeX | \XeLaTeX ] already defined 

I have a multilingual document using a special journal style and class that's pretty stable (HSSA), so it's hard for me to give an MWE. I've eliminated the obvious things: xltextra, fontspec. I'm not using arabtex. I am using polyglossia with other languages (greek, sanskrit, chinese). This issue arises when I add

\setotherlanguage{persian}
\newfontfamily\persianfont{Noto Sans Arabic}

Check/indicate

Minimal example showing the issue

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

\documentclass{hssa}
\usepackage{hssa}
%
\setotherlanguage{persian}  % this line alone produces the error message
%\newfontfamily\persianfont{Noto Sans Arabic}

\begin{document}
Hello world!
\end{document}

Expected behavior

Log and PDF files

sarma-kkk.log
sarma-kkk.pdf

@wujastyk wujastyk added the bug Something isn't working label Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants