Skip to content

Instantly share code, notes, and snippets.

@michal-h21
Last active October 13, 2019 11:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michal-h21/3719e71e790273439415478882218762 to your computer and use it in GitHub Desktop.
Save michal-h21/3719e71e790273439415478882218762 to your computer and use it in GitHub Desktop.
error with image inclusion
% graphics.4ht (2019-09-12-14:02), generated from tex4ht-4ht.tex
% Copyright 1997-2009 Eitan M. Gurari
% Copyright 2009-2019 TeX Users Group
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
% version 1.3c of this license or (at your option) any
% later version. The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3c or later is part of all distributions
% of LaTeX version 2005/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% The Current Maintainer of this work
% is the TeX4ht Project <http://tug.org/tex4ht>.
%
% If you modify this program, changing the
% version identification would be appreciated.
\expandafter\let\csname includegraphics \endcsname\includegraphics
\def\includegraphics{\expandafter\protect\csname includegraphics \endcsname}
\def\grf:removequote"#1"{#1}
\def\grf:thrashname#1\relax{}
\def\grf:fixquotes{%
\@ifnextchar"{\edef\Gin@base{\expandafter\grf:removequote\Gin@base}\grf:thrashname}{\grf:thrashname}}
\def\grp:warning#1{\no:bound#1(no BoundingBox)//\:warning{#1}}
\def\no:bound#1(no BoundingBox)#2//{\gdef\noBoundingBox{#2}\ifx
\noBoundingBox\empty \global\let\noBoundingBox\:UnDef\fi}
\let\:tempc\Gin@setfile
\pend:defIII\:tempc{\a:graphics
\global\let\noBoundingBox\:UnDef
\let\@latex@error\grp:warning \let\@ehc\empty}
\append:defIII\:tempc{\b:graphics\grf:gobble\leavevmode grf:gobble}
\HLet\Gin@setfile\:tempc
\NewConfigure{graphics*}[2]{%
\expandafter\ifx \csname :.#1\endcsname\relax
\pend:defIII\n:Gin@setfile:{\csname :.#1\endcsname}%
\fi
\def\:temp{#2}\ifx \:temp\empty
\expandafter\let\csname :.#1\endcsname\:UnDef
\else
\expandafter\def\csname :.#1\endcsname{\edef\:temp{.#1}%
\typeout{hello, David: \meaning\Gin@ext,\Gin@ext,\:temp}
\ifx \:temp\Gin@ext \let\a:graphics\relax
\typeout{found match}
\def\G:cnfg{#2}\expandafter\grf:gobble \fi}%
\fi }
\NewConfigure{graphics}{2}
\def\grf:gobble#1\leavevmode#2grf:gobble{%
\PictureOff\expandafter\grf:fixquotes\Gin@base\relax#1\PictureOn \G:cnfg \let\G:cnfg\relax}
\let\G:cnfg\relax
\let\old:GreadEps\Gread@eps
\def\Gread@eps#1{\old:GreadEps{"#1"}}
\def\if:boundingbox#1#2{\ifdim\Gin@req@width=\Gin@nat@width\ifx\noBoundingBox\UnDefined#1\else#2\fi\else#1\fi}
\Hinput{graphics}
\endinput
t4ht.c (2018-07-04-14:25 kpathsea)
t4ht uff.dvi
(/usr/local/texlive/2019/texmf-dist/tex4ht/base/unix/tex4ht.env)
Entering uff.lg
System call: dvipng -T tight -D 144 -bg Transparent -pp 2:2 uff.idv -o uff0x.png
This is dvipng 1.16 Copyright 2002-2015, 2019 Jan-Ake Larsson
[2 <example-image.png>]
System return: 0
\documentclass{article}
\usepackage{graphics}
\begin{document}
\includegraphics{example-image.png}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment