Skip to content
This repository has been archived by the owner on May 14, 2020. It is now read-only.

Undefined control sequence. #5

Closed
mablue opened this issue Jan 29, 2020 · 19 comments
Closed

Undefined control sequence. #5

mablue opened this issue Jan 29, 2020 · 19 comments

Comments

@mablue
Copy link

mablue commented Jan 29, 2020


(/home/mab/texmf/tex/xelatex/xepersian/loadingorder-xepersian.def)
(/home/mab/texmf/tex/xelatex/xepersian/footnote-xepersian.def)
(/home/mab/texmf/tex/xelatex/xepersian/hyperref-xepersian.def)
(/home/mab/texmf/tex/xelatex/xepersian/article-xepersian.def)
(/home/mab/texmf/tex/xelatex/xepersian/fontspec-xepersian.def)
! Undefined control sequence.
\str_lowercase:f
{\l__fontspec_extension_tl }
l.1560 \PersianAlphs

?

@u-fischer
Copy link

You probably have an outdated expl3. Update your tex system. If the problem persists, please show a small complete example and the complete log-file.

@mablue
Copy link
Author

mablue commented Feb 6, 2020

mab@mab-X550VX:~/Desktop/PROP/end$ xelatex masoud_azizi_proposal.tex

(/home/mab/texmf/tex/xelatex/xepersian/fontspec-xepersian.def)
! Undefined control sequence.
\str_lowercase:f
{\l__fontspec_extension_tl }
l.1560 \PersianAlphs

?
)
! Undefined control sequence.
\str_lowercase:f
{\l__fontspec_extension_tl }
l.22 \defpersianfont
\titr[Scale=1]{XB Titre}
?
! Undefined control sequence.
\str_lowercase:f
{\l__fontspec_extension_tl }
l.23 \defpersianfont
\nastaliq[Scale=1.5]{IranNastaliq}
?
! Undefined control sequence.
\str_lowercase:f
{\l__fontspec_extension_tl }
l.25 \defpersianfont
\traffic[Scale=1]{XB Roya}
?
! Undefined control sequence.
\str_lowercase:f
{\l__fontspec_extension_tl }
l.26 \defpersianfont
\yekan[Scale=1]{XB Kayhan}
?
! Undefined control sequence.
\str_lowercase:f
{\l__fontspec_extension_tl }
l.29 \theoremstyle
{definition}
?

Package amsthm Warning: Unknown theoremstyle `theorem' on input line 31.

(./masoud_azizi_proposal.aux)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/color.sty

\par l.45 ...ne{\includegraphics[height=4cm]{logo.jpg}}

@mablue
Copy link
Author

mablue commented Feb 6, 2020

(/home/mab/texmf/tex/latex/hyperref/hyperref.sty
Package: hyperref 2020/01/14 v7.00d Hypertext links for LaTeX

(/home/mab/texmf/tex/generic/ltxcmds/ltxcmds.sty
Package: ltxcmds 2019/12/15 v1.24 LaTeX kernel commands for general use (HO)
)
(/home/mab/texmf/tex/generic/iftex/iftex.sty
Package: iftex 2019/11/07 v1.0c TeX engine tests
)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
Package: pdftexcmds 2018/09/10 v0.29 Utility functions of pdfTeX for LuaTeX (HO
)

(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty
Package: infwarerr 2016/05/16 v1.4 Providing info/warning/error messages (HO)
)
(/home/mab/texmf/tex/generic/iftex/ifluatex.sty
Package: ifluatex 2019/10/25 v1.5 ifluatex legacy package. Use iftex instead.
)
(/home/mab/texmf/tex/generic/iftex/ifpdf.sty
Package: ifpdf 2019/10/25 v3.4 ifpdf legacy package. Use iftex instead.

@mablue
Copy link
Author

mablue commented Feb 6, 2020

latex.txt

@davidcarlisle
Copy link
Member

davidcarlisle commented Feb 6, 2020

You have inconsistent installation, your log shows:

(/home/mab/texmf/tex/latex/fontspec/fontspec.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty

so you have a new fontspec (and latex/base) coming from /home/mlab but an older expl3 coming from /usr/share/texlive

David

@mablue
Copy link
Author

mablue commented Feb 6, 2020

@mablue
Copy link
Author

mablue commented Feb 6, 2020

You have inconsistent installation, your log shows:

(/home/mab/texmf/tex/latex/fontspec/fontspec.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty

so you have a new fontspec (and latex/base) coming from /home/mlab but an older expl3 coming from /usr/share/texlive

David

now how can i solve that? rm -r /home/mab/texmf
?

@u-fischer
Copy link

u-fischer commented Feb 6, 2020

Perhaps (but better make a backup). You should also update your texsystem with tlmgr.

@davidcarlisle
Copy link
Member

It is your choice, I don't know how you got there or if you have control over /usr/share or if that is an institutional installation. But if you update latex base and fontspec in any texmf tree you should update expl3 in the same tree to keep them in sync, . Certainly I am not going to recommend you run a recursive remove on a directory that I don't know the contents of, it might be your life's work.

Currently you do not appear to have expl3 under /home at all so rather than remove your home texmf tree another option would be to make that more complete and up to date.

But the issue is just a local issue in your installation.

@mablue
Copy link
Author

mablue commented Feb 6, 2020

i do that:
rm -r /home/mab/texmf
and problem solved but It give me some other errors now !

@mablue
Copy link
Author

mablue commented Feb 6, 2020

log file:
masoud_azizi_proposal.log

@u-fischer
Copy link

Sorry but your messages are quite unreadable. Please attach log-file and tex file here, not through some external transfer site. And reduce your tex file first. Remove unneeded packages, content and reference to local fonts. A five page document is not the right thing for a bug report.

@mablue
Copy link
Author

mablue commented Feb 6, 2020

Sorry but your messages are quite unreadable. Please attach log-file and tex file here, not through some external transfer site. And reduce your tex file first. Remove unneeded packages, content and reference to local fonts. A five page document is not the right thing for a bug report.

ok.I compacted and attached all files in zip file in this replay.tnx for help.
latex.zip

@u-fischer
Copy link

It compiles for me on a up-to-date texlive. You can try if it works if you remove the \centerline command, but probably you will have to update your system.

As you are not using the current versions of bidi and xepersian there is not much we can do here.

@mablue
Copy link
Author

mablue commented Feb 6, 2020

It compiles for me on a up-to-date texlive. You can try if it works if you remove the \centerline command, but probably you will have to update your system.

As you are not using the current versions of bidi and xepersian there is not much we can do here.

what can i do for upgrade to latest version?
I have installed it in ubuntu with this command:

sudo apt-get update
sudo apt-get install texlive-full
sudo tlmgr update --all

and every thing working good just this file give error while compiling.
you compiled? not any error?I have a pdf output but I dont want to get errors!
😰

@mablue
Copy link
Author

mablue commented Feb 6, 2020

I find the core of problem is here:
\includegraphics[height=4cm]{logo.jpg}

The xelatex cant compile this line and image not shown in the compiled pdf file.whats the problem?how i can solve that

@davidcarlisle
Copy link
Member

sorry but this is a bug tracker not a help forum, there really isn't much more we can do, perhaps there is an issue with that jpg file (test with some other ones) \includegraphics should work with jpg with xelatex/xdvipdfmx.

@FrankMittelbach
Copy link

I was just to say something like that too. In case of user/document problems please ask in help forums.

@mablue
Copy link
Author

mablue commented Feb 7, 2020

Problem fixed after installing from iso and than update to end version of packages...tnx

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants