This site will go down shortly. If you need any help, then please subscribe to The Persian TeX discussion mailing list
ask now - it's free

Most popular questions within the last 3 days

Most active Members
this month:
    0 votes
    83 views

    Hi!
    I upgrade some packages including listings, and after that xepersian and bidi don't work on files with listings.

    The following temporary solves the problem for me:

    $ sudo tlmgr restore listings 37534
    

    Update log

    $ sudo tlmgr update --all
    tlmgr: package repository http://ctan.asis.io/systems/texlive/tlnet (not verified: gpg unavailable)
    tlmgr: saving backups to /usr/local/texlive/2018basic/tlpkg/backups
    [ 1/24, ??:??/??:??] update: babel [138k] (47932 -> 48551) ... done
    [ 2/24, 00:02/00:27] update: beamer [161k] (46705 -> 48604) ... done
    [ 3/24, 00:03/00:19] update: dvipdfmx [27k] (47198 -> 48506) ... done
    [ 4/24, 00:04/00:23] update: hyph-utf8 [16k] (48290 -> 48489) ... done
    [ 5/24, 00:04/00:22] update: hyphen-german [107k] (47375 -> 48615) ... done
    [ 6/24, 00:05/00:21] update: ifluatex [3k] (47293 -> 48642) ... done
    [ 7/24, 00:05/00:21] update: l3experimental [28k] (47705 -> 48476) ... done
    [ 8/24, 00:06/00:24] update: l3kernel [134k] (48022 -> 48476) ... done
    [ 9/24, 00:06/00:18] update: l3packages [19k] (47705 -> 48476) ... done
    [10/24, 00:07/00:21] update: latex-bin [1k] (47536 -> 48634) ... done
    [11/24, 00:07/00:21] update: listings [141k] (37534 -> 48566) ... done
    [12/24, 00:08/00:19] update: lwarp [111k] (48159 -> 48617) ... done
    [13/24, 00:09/00:19] update: mptopdf [38k] (45678 -> 48553) ... done
    [14/24, 00:10/00:20] update: oberdiek [222k] (47293 -> 48642) ... done
    [15/24, 00:11/00:18] update: parskip [3k] (19963 -> 48650) ... done
    [16/24, 00:11/00:18] update: pdftex [36k] (47199 -> 48634) ... done
    [17/24, 00:12/00:19] update: pstricks [75k] (48256 -> 48475) ... done
    [18/24, 00:12/00:18] update: tetex [70k] (48150 -> 48621) ... done
    [19/24, 00:13/00:18] update: texlive-docindex [108k] (48442 -> 48647) ... done
    [20/24, 00:13/00:17] update: texlive-msg-translations [167k] (48373 -> 48572) ... done
    [21/24, 00:14/00:16] update: texlive-scripts [68k] (48435 -> 48632) ... done
    [22/24, 00:15/00:17] update: thumbpdf [19k] (34621 -> 48625) ... done
    [23/24, 00:16/00:18] update: updmap-map [195k] (48150 -> 48621) ... done
    [24/24, 00:17/00:17] auto-install: dehyph (48599) [46k] ... done
    running mktexlsr ...
    done running mktexlsr.
    running updmap-sys ...
    done running updmap-sys.
    regenerating language.dat
    regenerating language.def
    regenerating language.dat.lua
    regenerating fmtutil.cnf in /usr/local/texlive/2018basic/texmf-dist
    tlmgr: package log updated: /usr/local/texlive/2018basic/texmf-var/web2c/tlmgr.log
    

    Minimal example

    test.tex

    \documentclass{article}
    \usepackage{listings}
    \usepackage{xepersian}
    \settextfont{XBNiloofar}
    \begin{document}
    نمونه
    \end{document}
    

    Render errors

    /usr/local/texlive/2018basic/texmf-dist/tex/xelatex/bidi/listings-xetex-bidi.def:43: Package Listings Error: direction textdirection unknown. [...ror{Listings}{direction #1 unknown}\@ehc}}]
    /usr/local/texlive/2018basic/texmf-dist/tex/xelatex/xepersian/xepersian.sty:1448: Argument of \set@fontsize has an extra }. [\bidi@patchcmd{\set@fontsize}]
    /usr/local/texlive/2018basic/texmf-dist/tex/xelatex/xepersian/xepersian.sty:1448: Paragraph ended before \set@fontsize was complete. [\bidi@patchcmd{\set@fontsize}]
    /usr/local/texlive/2018basic/texmf-dist/tex/xelatex/xepersian/xepersian.sty:1448: Missing number, treated as zero. [\bidi@patchcmd{\set@fontsize}{\@tempdimb#]
    /usr/local/texlive/2018basic/texmf-dist/tex/xelatex/xepersian/xepersian.sty:1448: Illegal unit of measure (pt inserted). [\bidi@patchcmd{\set@fontsize}{\@tempdimb#]
    /usr/local/texlive/2018basic/texmf-dist/tex/xelatex/xepersian/xepersian.sty:1449: Missing number, treated as zero. [...pdimb\xepersian@@fontsize@scale\dimexpr#]
    /usr/local/texlive/2018basic/texmf-dist/tex/xelatex/xepersian/xepersian.sty:1449: Illegal unit of measure (pt inserted). [...pdimb\xepersian@@fontsize@scale\dimexpr#]
    /usr/local/texlive/2018basic/texmf-dist/tex/xelatex/xepersian/xepersian.sty:1452: Argument of \set@fontsize has an extra }. [\bidi@patchcmd{\set@fontsize}]
    /usr/local/texlive/2018basic/texmf-dist/tex/xelatex/xepersian/xepersian.sty:1452: Paragraph ended before \set@fontsize was complete. [\bidi@patchcmd{\set@fontsize}]
    /usr/local/texlive/2018basic/texmf-dist/tex/xelatex/xepersian/xepersian.sty:1452: Missing number, treated as zero. [\bidi@patchcmd{\set@fontsize}{\@tempskipa#]
    /usr/local/texlive/2018basic/texmf-dist/tex/xelatex/xepersian/xepersian.sty:1452: Illegal unit of measure (pt inserted). [\bidi@patchcmd{\set@fontsize}{\@tempskipa#]
    /usr/local/texlive/2018basic/texmf-dist/tex/xelatex/xepersian/xepersian.sty:1453: Missing number, treated as zero. [...a\xepersian@@baselineskip@scale\dimexpr#]
    /usr/local/texlive/2018basic/texmf-dist/tex/xelatex/xepersian/xepersian.sty:1453: Illegal unit of measure (pt inserted). [...a\xepersian@@baselineskip@scale\dimexpr#]
    /usr/local/texlive/2018basic/texmf-dist/tex/xelatex/xepersian/xepersian.sty:1463: Argument of \getanddefine@fonts has an extra }. [\bidi@patchcmd{\getanddefine@fonts}]
    /usr/local/texlive/2018basic/texmf-dist/tex/xelatex/xepersian/xepersian.sty:1463: Paragraph ended before \getanddefine@fonts was complete. [\bidi@patchcmd{\getanddefine@fonts}]
    /usr/local/texlive/2018basic/texmf-dist/tex/xelatex/xepersian/xepersian.sty:1464: Undefined control sequence. [...def\font@name{\csname \string#2/\tf@size]
    /usr/local/texlive/2018basic/texmf-dist/tex/xelatex/xepersian/xepersian.sty:1466: Missing number, treated as zero. [...\xepersian@@update@math@fontsize\tf@size]
    /usr/local/texlive/2018basic/texmf-dist/tex/xelatex/xepersian/xepersian.sty:1466: Illegal unit of measure (pt inserted). [...\xepersian@@update@math@fontsize\tf@size]
    /usr/local/texlive/2018basic/texmf-dist/tex/xelatex/xepersian/xepersian.sty:1466: Missing \endcsname inserted. [...\xepersian@@update@math@fontsize\tf@size]
    /usr/local/texlive/2018basic/texmf-dist/tex/xelatex/xepersian/xepersian.sty:1469: Argument of \getanddefine@fonts has an extra }. [\bidi@patchcmd{\getanddefine@fonts}]
    /usr/local/texlive/2018basic/texmf-dist/tex/xelatex/xepersian/xepersian.sty:1469: Paragraph ended before \getanddefine@fonts was complete. [\bidi@patchcmd{\getanddefine@fonts}]
    /usr/local/texlive/2018basic/texmf-dist/tex/xelatex/xepersian/xepersian.sty:1470: Undefined control sequence. [...def\font@name{\csname \string#2/\sf@size]
    /usr/local/texlive/2018basic/texmf-dist/tex/xelatex/xepersian/xepersian.sty:1472: Missing number, treated as zero. [...\xepersian@@update@math@fontsize\sf@size]
    /usr/local/texlive/2018basic/texmf-dist/tex/xelatex/xepersian/xepersian.sty:1472: Illegal unit of measure (pt inserted). [...\xepersian@@update@math@fontsize\sf@size]
    /usr/local/texlive/2018basic/texmf-dist/tex/xelatex/xepersian/xepersian.sty:1472: Missing \endcsname inserted. [...\xepersian@@update@math@fontsize\sf@size]
    /usr/local/texlive/2018basic/texmf-dist/tex/xelatex/xepersian/xepersian.sty:1475: Argument of \getanddefine@fonts has an extra }. [\bidi@patchcmd{\getanddefine@fonts}]
    /usr/local/texlive/2018basic/texmf-dist/tex/xelatex/xepersian/xepersian.sty:1475: Paragraph ended before \getanddefine@fonts was complete. [\bidi@patchcmd{\getanddefine@fonts}]
    /usr/local/texlive/2018basic/texmf-dist/tex/xelatex/xepersian/xepersian.sty:1476: Undefined control sequence. [...ef\font@name{\csname \string#2/\ssf@size]
    /usr/local/texlive/2018basic/texmf-dist/tex/xelatex/xepersian/xepersian.sty:1478: Missing number, treated as zero. [...xepersian@@update@math@fontsize\ssf@size]
    /usr/local/texlive/2018basic/texmf-dist/tex/xelatex/xepersian/xepersian.sty:1478: Illegal unit of measure (pt inserted). [...xepersian@@update@math@fontsize\ssf@size]
    /usr/local/texlive/2018basic/texmf-dist/tex/xelatex/xepersian/xepersian.sty:1478: Missing \endcsname inserted. [...xepersian@@update@math@fontsize\ssf@size]
    /Users/hadi/Codes/latex/test/test.tex:8: Argument of \lst@MakeCaption has an extra }. [\begin{document}]
    /Users/hadi/Codes/latex/test/test.tex:8: Paragraph ended before \lst@MakeCaption was complete. [\begin{document}]
    TeX STOPPED: Incomplete \ifx; all text was ignored after line 8.
    TeX reports the error was in file: test.tex
    
    asked by (220 points)
    edited by

    Some other people have encountered the same issue, too.
    https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg206277.html

    Can you open a ticket on SourceForge too?

    I try my best to fix it this weekend.

    ...