Discussion:
[XeTeX] Problem involving \includegraphics after texlive update on Debian Tesing
Johann Spies
2017-07-07 11:54:52 UTC
Permalink
After a recent upgrade of texlive to 2017.20170629-1 on Debian I am
experiencing a problem compiling a longstanding document and I can
replicate the problem with the following code:

\documentclass[12pt,a4paper]{article}
\usepackage{fontspec} % Gebruik met xelatex
\usepackage{graphicx} % Gebruik met xelatex
\usepackage[hyperindex=true,colorlinks=true,bookmarks]{hyperref}
\usepackage{colortbl}
\setmainfont[Ligatures=TeX,Mapping=tex-text]{Linux Libertine O}
\begin{document}



\includegraphics{fruits.jpg}

\end{document}

%%% Local Variables:
%%% mode: latex
%%% TeX-engine: xetex
%%% TeX-master: t
%%% End:


results in

ERROR: Undefined control sequence.

--- TeX said ---
\***@bmp #1->\***@log
{<#1>}\bgroup \def \@tempa {!}\special {pdf:image...l.11 \includegraphics{fruits.jpg}

--- HELP ---
TeX encountered an unknown command name. You probably misspelled the
name. If this message occurs when a LaTeX command is being processed,
the command is probably in the wrong place---for example, the error
can be produced by an \item command that's not inside a list-making
environment. The error can also be caused by a missing \documentclass
command.

You can replace "fruit.jpg" with any jpg to replicate the problem.

It will help me if someone on this list can identify what is causing
this.

Regards
Johann
--
J.H. Spies - Tel. 021-982 2694 / 082 782 0336 / 021-808 4699(w)
Posbus 4668, Tygervallei 7536

"And be ye kind one to another, tenderhearted,
forgiving one another, even as God for Christ's sake
hath forgiven you."
Ephesians 4:32


--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex
Joseph Wright
2017-07-07 12:09:08 UTC
Permalink
Post by Johann Spies
After a recent upgrade of texlive to 2017.20170629-1 on Debian I am
experiencing a problem compiling a longstanding document and I can
\documentclass[12pt,a4paper]{article}
\usepackage{fontspec} % Gebruik met xelatex
\usepackage{graphicx} % Gebruik met xelatex
\usepackage[hyperindex=true,colorlinks=true,bookmarks]{hyperref}
\usepackage{colortbl}
\setmainfont[Ligatures=TeX,Mapping=tex-text]{Linux Libertine O}
\begin{document}
\includegraphics{fruits.jpg}
\end{document}
%%% mode: latex
%%% TeX-engine: xetex
%%% TeX-master: t
results in
ERROR: Undefined control sequence.
--- TeX said ---
--- HELP ---
TeX encountered an unknown command name. You probably misspelled the
name. If this message occurs when a LaTeX command is being processed,
the command is probably in the wrong place---for example, the error
can be produced by an \item command that's not inside a list-making
environment. The error can also be caused by a missing \documentclass
command.
You can replace "fruit.jpg" with any jpg to replicate the problem.
It will help me if someone on this list can identify what is causing
this.
Regards
Johann
Could you add \listfiles to your input and post the resulting *File
list* from the .log?

Joseph



--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex
David Carlisle
2017-07-07 12:12:36 UTC
Permalink
\***@log is defined in the core graphics.sty so it would seem that you
have updated xetex.def but not graphics itself, or perhaps have an
old copy in your path

David
Post by Joseph Wright
Post by Johann Spies
After a recent upgrade of texlive to 2017.20170629-1 on Debian I am
experiencing a problem compiling a longstanding document and I can
\documentclass[12pt,a4paper]{article}
\usepackage{fontspec} % Gebruik met xelatex
\usepackage{graphicx} % Gebruik met xelatex
\usepackage[hyperindex=true,colorlinks=true,bookmarks]{hyperref}
\usepackage{colortbl}
\setmainfont[Ligatures=TeX,Mapping=tex-text]{Linux Libertine O}
\begin{document}
\includegraphics{fruits.jpg}
\end{document}
%%% mode: latex
%%% TeX-engine: xetex
%%% TeX-master: t
results in
ERROR: Undefined control sequence.
--- TeX said ---
--- HELP ---
TeX encountered an unknown command name. You probably misspelled the
name. If this message occurs when a LaTeX command is being processed,
the command is probably in the wrong place---for example, the error
can be produced by an \item command that's not inside a list-making
environment. The error can also be caused by a missing \documentclass
command.
You can replace "fruit.jpg" with any jpg to replicate the problem.
It will help me if someone on this list can identify what is causing
this.
Regards
Johann
Could you add \listfiles to your input and post the resulting *File
list* from the .log?
Joseph
--------------------------------------------------
http://tug.org/mailman/listinfo/xetex
--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex
Johann Spies
2017-07-07 12:49:27 UTC
Permalink
Hallo David,
Post by David Carlisle
have updated xetex.def but not graphics itself, or perhaps have an
old copy in your path
Thanks for your spoton answer. I discovered three older versions of
graphics.sty in /usr/local/... dating many years back. After removing
them and running ``sudo texhash'', I could now compile the file with
success.

Regards
Johann
--
J.H. Spies - Tel. 021-982 2694 / 082 782 0336 / 021-808 4699(w)
Posbus 4668, Tygervallei 7536

"And be ye kind one to another, tenderhearted,
forgiving one another, even as God for Christ's sake
hath forgiven you."
Ephesians 4:32


--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex
Johann Spies
2017-07-07 12:32:05 UTC
Permalink
Thanks for your attention Joseph.
Post by Joseph Wright
Could you add \listfiles to your input and post the resulting *File
list* from the .log?
*File List*
article.cls 2014/09/29 v1.4h Standard LaTeX document class
size12.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
fontspec.sty 2017/03/31 v2.6a Font selection for XeLaTeX and LuaLaTeX
expl3.sty 2017/05/29 L3 programming layer (loader)
expl3-code.tex 2017/05/29 L3 programming layer
l3xdvipdfmx.def
xparse.sty 2017/05/29 L3 Experimental document command parser
fontspec-xetex.sty 2017/03/31 v2.6a Font selection for XeLaTeX and LuaLaTeX
fontenc.sty
tuenc.def 2017/04/05 v2.0i Standard LaTeX file
fontspec.cfg
graphicx.sty 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
graphics.sty 2001/07/07 v1.0n Standard LaTeX Graphics (DPC,SPQR)
trig.sty 1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg 2016/06/04 v1.11 sample graphics configuration
xetex.def 2017/06/24 v5.0h Graphics/color driver for xetex
hyperref.sty 2017/03/14 v6.85a Hypertext links for LaTeX
hobsub-hyperref.sty 2016/05/16 v1.14 Bundle oberdiek, subset hyperref (HO)
hobsub-generic.sty 2016/05/16 v1.14 Bundle oberdiek, subset generic (HO)
hobsub.sty 2016/05/16 v1.14 Construct package bundles (HO)
infwarerr.sty 2016/05/16 v1.4 Providing info/warning/error messages (HO)
ltxcmds.sty 2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
ifluatex.sty 2016/05/16 v1.4 Provides the ifluatex switch (HO)
ifvtex.sty 2016/05/16 v1.6 Detect VTeX and its facilities (HO)
intcalc.sty 2016/05/16 v1.2 Expandable calculations with integers (HO)
ifpdf.sty 2017/03/15 v3.2 Provides the ifpdf switch
etexcmds.sty 2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO)
kvsetkeys.sty 2016/05/16 v1.17 Key value parser (HO)
kvdefinekeys.sty 2016/05/16 v1.4 Define keys (HO)
pdftexcmds.sty 2017/03/19 v0.25 Utility functions of pdfTeX for LuaTeX (HO)
pdfescape.sty 2016/05/16 v1.14 Implements pdfTeX's escape features (HO)
bigintcalc.sty 2016/05/16 v1.4 Expandable calculations on big integers (HO)
bitset.sty 2016/05/16 v1.2 Handle bit-vector datatype (HO)
uniquecounter.sty 2016/05/16 v1.3 Provide unlimited unique counter (HO)
letltxmacro.sty 2016/05/16 v1.5 Let assignment for LaTeX macros (HO)
hopatch.sty 2016/05/16 v1.3 Wrapper for package hooks (HO)
xcolor-patch.sty 2016/05/16 xcolor patch
atveryend.sty 2016/05/16 v1.9 Hooks at the very end of document (HO)
atbegshi.sty 2016/06/09 v1.18 At begin shipout hook (HO)
refcount.sty 2016/05/16 v3.5 Data extraction from label references (HO)
hycolor.sty 2016/05/16 v1.8 Color options for hyperref/bookmark (HO)
ifxetex.sty 2010/09/12 v0.6 Provides ifxetex conditional
auxhook.sty 2016/05/16 v1.4 Hooks for auxiliary files (HO)
kvoptions.sty 2016/05/16 v3.12 Key value format for package options (HO)
pd1enc.def 2017/03/14 v6.85a Hyperref: PDFDocEncoding definition (HO)
hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive
url.sty 2013/09/16 ver 3.4 Verb mode for urls, etc.
hxetex.def 2017/03/14 v6.85a Hyperref driver for XeTeX
puenc.def 2017/03/14 v6.85a Hyperref: PDF Unicode definition (HO)
stringenc.sty 2016/05/16 v1.11 Convert strings between diff. encodings (HO)
rerunfilecheck.sty 2016/05/16 v1.8 Rerun checks for auxiliary files (HO)
colortbl.sty 2012/02/13 v1.0a Color table columns (DPC)
array.sty 2016/10/06 v2.4d Tabular extension package (FMi)
color.sty 1999/02/16 v1.0i Standard LaTeX Color (DPC)
color.cfg 2016/01/02 v1.6 sample color configuration
nameref.sty 2016/05/21 v2.44 Cross-referencing by name of section
gettitlestring.sty 2016/05/16 v1.5 Cleanup title references (HO)
artikel.out
artikel.out
fruits.jpg Graphic file (type bmp)
se-ascii-print.def 2016/05/16 v1.11 stringenc: Printable ASCII characters
***********


Regards
Johann
--
J.H. Spies - Tel. 021-982 2694 / 082 782 0336 / 021-808 4699(w)
Posbus 4668, Tygervallei 7536

"And be ye kind one to another, tenderhearted,
forgiving one another, even as God for Christ's sake
hath forgiven you."
Ephesians 4:32


--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex
David Carlisle
2017-07-07 12:35:34 UTC
Permalink
graphicx.sty 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
graphics.sty 2001/07/07 v1.0n Standard LaTeX Graphics (DPC,SPQR)
trig.sty 1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg 2016/06/04 v1.11 sample graphics configuration
xetex.def 2017/06/24 v5.0h Graphics/color driver for xetex


Check the full paths as shown in the log, you are using a new
xetex.def with a graphicx.sty from last century.
This usually means you have a mixture of tex distributions in your path.

David


--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex
Ulrike Fischer
2017-07-07 12:40:01 UTC
Permalink
Post by Johann Spies
graphicx.sty 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
graphics.sty 2001/07/07 v1.0n Standard LaTeX Graphics (DPC,SPQR)
trig.sty 1999/03/16 v1.09 sin cos tan (DPC)
As David already suspected: your graphics package is outdated.

I have:

graphicx.sty 2017/06/01 v1.1a Enhanced LaTeX Graphics (DPC,SPQR)
keyval.sty 2014/10/28 v1.15 key=value parser (DPC)
graphics.sty 2017/06/25 v1.2c Standard LaTeX Graphics (DPC,SPQR)
trig.sty 2016/01/03 v1.10 sin cos tan (DPC)
--
Ulrike Fischer
http://www.troubleshooting-tex.de/



--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex
Loading...