logo=off option in xepersian

Khalid Hamdun khaled.hamdun at yahoo.com
Thu Apr 3 08:01:51 CEST 2025


Hi,
I use the "logo=off" option in the xepersian package, which became mandatorya few years ago, otherwise a logo would be printed on the first page, whichwas very annoying. But now with the same option in the example below:
\documentclass{article}\usepackage[logo=off]{xepersian}\settextfont{Yas}\begin{document}این یک آزمایش است.\end{document}
I get the following error:
 (/usr/local/TeXLive-20250308/2025/texmf-dist/tex/latex/auxhook/auxhook.sty)))
! LaTeX Error: Command \@bidi at inslogo@ already defined.               Or name \end... illegal, see p.192 of the manual.
See the LaTeX manual or LaTeX Companion for explanation.Type  H <return>  for immediate help. ...                                                                                                l.270 ...o@}{\insert\@bidi at copyins@{\@bidi at logo@}}
After searching in the xepersian and bidi package codes, I found the followingcode in the "bidi.sty" file:
\keys_define:nn { bidi }  {    logo .choice:    logo / on .code:n = \AtEndOfPackage{\AtBeginDocument{\@bidi at inslogo@}} ,    logo / off .code:n = \let\@bidi at logo@\@empty \let\@bidi at inslogo@\@empty ,    logo .default:n = on  }
How can I redefine this code to fix the problem?
Khaled

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tex-live/attachments/20250403/3d7769d2/attachment-0001.htm>


More information about the tex-live mailing list.