Graphics, Figures & Tables.png figure seems to suppress display of succeeding .eps in pdflatex with shell escape

Information and discussion about graphics, figures & tables in LaTeX documents.
sgl
Posts: 8
Joined: Tue Oct 22, 2019 11:40 pm

.png figure seems to suppress display of succeeding .eps in pdflatex with shell escape

Post by sgl »

Hi all,

I am writing a document in which I would like to include images in PNG format as well as EPS files. The EPS files are chemical structures that I need to number with the chemnum package. When I compile the file including only the EPS with Pdflatex and shell-escape, it works perfectly fine and I get the chemical structure with the tag being replaced by a number. If, however, I place a PNG before the EPS, the EPS is not displayed anymore after the next compilation, only the caption. I am using Miktex 2.9.7206 and Texstudio 2.12.14.
Am I missing something here?


A MWE for the case in which it works:

Code: Select all

\documentclass[12pt,a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}

\usepackage{caption}

\usepackage{graphicx}
\usepackage{auto-pst-pdf}
\usepackage{chemnum}

\begin{document}

	\begin{figure}
		\replacecmpd{compound}
		\includegraphics[scale=1]{E:/test/test_eps}
                \caption{Some caption.}
	\end{figure}
	
\end{document}

A MWE causing the described problem:

Code: Select all

\documentclass[12pt,a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}

\usepackage{caption}

\usepackage{graphicx}
\usepackage{auto-pst-pdf}
\usepackage{chemnum}

\begin{document}
	
	\begin{figure}
		\includegraphics[scale=1]{E:/test/test_png}
		\caption{Some caption.}
	\end{figure}
	
	\begin{figure}
		\replacecmpd{compound}
		\includegraphics[scale=1]{E:/test/test_eps}
		\caption{Some caption.}
	\end{figure}
	
\end{document}
The second MWE compiles and shows the PNG in the PDF, but the log says the following:

test.tex Bad Box Line 20 Overfull \hbox (810.0003pt too wide) in paragraph
test.tex Warning Line 22 Float too large for page by 632.50029pt
test.tex Warning 'test-pics.pdf' contains 2 pages (pst-pdf) but 1 pages are requested: (pst-pdf) File 'test-pics.pdf' is no more valid! (pst-pdf) Recreate it.

I get what it means, but I don't understand why it occurs if a PNG is loaded before. Also, several EPS figures are fine, but as soon as one PNG in included, it stops working.

Is there someone who can help me out with this and shed some light on the matter?

Cheers

Steffen

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

.png figure seems to suppress display of succeeding .eps in pdflatex with shell escape

Post by Stefan Kottwitz »

Hi Steffen,

welcome to the forum!

Can you perhaps post the test images (png and eps) as attachment? That way we can test it directly on our TeX installation. I don't have eps samples here, and your png image could have features such as transparency or not...

Thanks!

Stefan
LaTeX.org admin
sgl
Posts: 8
Joined: Tue Oct 22, 2019 11:40 pm

.png figure seems to suppress display of succeeding .eps in pdflatex with shell escape

Post by sgl »

Hi Stefan,

thank you for your reply and sorry for not submitting them right away, could have guessed it.

Attached please find a PNG and EPS file for the above scenario.

Cheers

Steffen
test_eps.eps
(13.56 KiB) Downloaded 193 times
test_png.png
test_png.png (18.31 KiB) Viewed 7438 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

.png figure seems to suppress display of succeeding .eps in pdflatex with shell escape

Post by Stefan Kottwitz »

Hi Steffen,

that example works for me with both images, I get (cut):
output.png
output.png (12 KiB) Viewed 7407 times
Perhaps post your .log file here, as attachment. I could compare with my LaTeX run.

Stefan
LaTeX.org admin
sgl
Posts: 8
Joined: Tue Oct 22, 2019 11:40 pm

.png figure seems to suppress display of succeeding .eps in pdflatex with shell escape

Post by sgl »

Hi Stefan,

btw I tried texLive in the meantime, still no change.

What I get after compilation is the following

Code: Select all

Prozess gestartet: pdflatex.exe -synctex=1 -interaction=nonstopmode --shell-escape "test".tex

This is dvips(k) 5.999 Copyright 2019 Radical Eye Software (www.radicaleye.com) ' TeX output 2019.10.23:2305' -> test-autopp.ps <e:/Programme/texlive/2019/texmf-dist/dvips/base/tex.pro> <e:/Programme/texlive/2019/texmf-dist/dvips/config/alt-rule.pro>

<e:/Programme/texlive/2019/texmf-dist/dvips/pstricks/pstricks.pro>

<e:/Programme/texlive/2019/texmf-dist/dvips/pstricks/pst-algparser.pro>

<e:/Programme/texlive/2019/texmf-dist/dvips/pst-tools/pst-tools.pro>

<e:/Programme/texlive/2019/texmf-dist/dvips/pstricks/pst-dots.pro> <e:/Programme/texlive/2019/texmf-dist/dvips/psfrag/psfrag.pro>

<e:/Programme/texlive/2019/texmf-dist/dvips/base/texps.pro> <e:/Programme/texlive/2019/texmf-dist/dvips/base/special.pro> <e:/Programme/texlive/2019/texmf-dist/dvips/base/color.pro>

.

<e:/Programme/texlive/2019/texmf-dist/fonts/type1/public/amsfonts/cm/cmssbx10.pfb> <e:/Programme/texlive/2019/texmf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb> [1] [2

<e:/test/test_eps.eps>]

system returned with code 1

Prozess endete normal
Anything conclusive in there?

Steffen
sgl
Posts: 8
Joined: Tue Oct 22, 2019 11:40 pm

.png figure seems to suppress display of succeeding .eps in pdflatex with shell escape

Post by sgl »

Seemingly I forgot a fair bit:

Code: Select all

This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/W32TeX) (preloaded format=pdflatex 2019.10.23)  23 OCT 2019 23:05
entering extended mode
 \write18 enabled.
 %&-line parsing enabled.
**test.tex
(./test.tex
LaTeX2e <2019-10-01> patch level 1
(e:/Programme/texlive/2019/texmf-dist/tex/latex/base/report.cls
Document Class: report 2019/08/27 v1.4j Standard LaTeX document class
(e:/Programme/texlive/2019/texmf-dist/tex/latex/base/size12.clo
File: size12.clo 2019/08/27 v1.4j Standard LaTeX file (size option)
)
\c@part=\count80
\c@chapter=\count81
\c@section=\count82
\c@subsection=\count83
\c@subsubsection=\count84
\c@paragraph=\count85
\c@subparagraph=\count86
\c@figure=\count87
\c@table=\count88
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(e:/Programme/texlive/2019/texmf-dist/tex/latex/base/inputenc.sty
Package: inputenc 2018/08/11 v1.3c Input encoding file
\inpenc@prehook=\toks14
\inpenc@posthook=\toks15
)
(e:/Programme/texlive/2019/texmf-dist/tex/generic/babel/babel.sty
Package: babel 2019/10/15 3.35 The Babel package

(e:/Programme/texlive/2019/texmf-dist/tex/generic/babel/switch.def
File: switch.def 2019/10/15 3.35 Babel switching mechanism
)
(e:/Programme/texlive/2019/texmf-dist/tex/generic/babel-english/english.ldf
Language: english 2017/06/06 v3.3r English support from the babel system

(e:/Programme/texlive/2019/texmf-dist/tex/generic/babel/babel.def
File: babel.def 2019/10/15 3.35 Babel common definitions
\babel@savecnt=\count89
\U@D=\dimen103

(e:/Programme/texlive/2019/texmf-dist/tex/generic/babel/txtbabel.def)
\bbl@dirlevel=\count90
)
\l@canadian = a dialect from \language\l@american 
\l@australian = a dialect from \language\l@british 
\l@newzealand = a dialect from \language\l@british 
))
(e:/Programme/texlive/2019/texmf-dist/tex/latex/caption/caption.sty
Package: caption 2019/09/01 v3.3d Customizing captions (AR)

(e:/Programme/texlive/2019/texmf-dist/tex/latex/caption/caption3.sty
Package: caption3 2019/09/01 v1.8d caption3 kernel (AR)
Package caption3 Info: TeX engine: e-TeX on input line 64.

(e:/Programme/texlive/2019/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks16
)
\captionmargin=\dimen104
\captionmargin@=\dimen105
\captionwidth=\dimen106
\caption@tempdima=\dimen107
\caption@indent=\dimen108
\caption@parindent=\dimen109
\caption@hangindent=\dimen110
)
\c@caption@flags=\count91
\c@ContinuedFloat=\count92
)
(e:/Programme/texlive/2019/texmf-dist/tex/latex/graphics/graphicx.sty
Package: graphicx 2017/06/01 v1.1a Enhanced LaTeX Graphics (DPC,SPQR)

(e:/Programme/texlive/2019/texmf-dist/tex/latex/graphics/graphics.sty
Package: graphics 2019/10/08 v1.3c Standard LaTeX Graphics (DPC,SPQR)

(e:/Programme/texlive/2019/texmf-dist/tex/latex/graphics/trig.sty
Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
)
(e:/Programme/texlive/2019/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
)
Package graphics Info: Driver file: pdftex.def on input line 105.

(e:/Programme/texlive/2019/texmf-dist/tex/latex/graphics-def/pdftex.def
File: pdftex.def 2018/01/08 v1.0l Graphics/color driver for pdftex
))
\Gin@req@height=\dimen111
\Gin@req@width=\dimen112
)
(e:/Programme/texlive/2019/texmf-dist/tex/latex/auto-pst-pdf/auto-pst-pdf.sty
Package: auto-pst-pdf 2009/04/26 v0.6 Wrapper for pst-pdf

(e:/Programme/texlive/2019/texmf-dist/tex/generic/oberdiek/ifpdf.sty
Package: ifpdf 2018/09/07 v3.3 Provides the ifpdf switch
)
(e:/Programme/texlive/2019/texmf-dist/tex/latex/xkeyval/xkeyval.sty
Package: xkeyval 2014/12/03 v2.7a package option processing (HA)

(e:/Programme/texlive/2019/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(e:/Programme/texlive/2019/texmf-dist/tex/generic/xkeyval/xkvutils.tex
\XKV@toks=\toks17
\XKV@tempa@toks=\toks18
)
\XKV@depth=\count93
File: xkeyval.tex 2014/12/03 v2.7a key=value parser (HA)
))
(e:/Programme/texlive/2019/texmf-dist/tex/latex/ifplatform/ifplatform.sty
Package: ifplatform 2017/10/13 v0.4a Testing for the operating system

(e:/Programme/texlive/2019/texmf-dist/tex/latex/tools/shellesc.sty
Package: shellesc 2016/06/07 v0.02b unified shell escape interface for LaTeX
Package shellesc Info: Unrestricted shell escape enabled on input line 70.
)
(e:/Programme/texlive/2019/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
Package: pdftexcmds 2019/07/25 v0.30 Utility functions of pdfTeX for LuaTeX (HO
)

(e:/Programme/texlive/2019/texmf-dist/tex/generic/oberdiek/infwarerr.sty
Package: infwarerr 2016/05/16 v1.4 Providing info/warning/error messages (HO)
)
(e:/Programme/texlive/2019/texmf-dist/tex/generic/oberdiek/ifluatex.sty
Package: ifluatex 2016/05/16 v1.4 Provides the ifluatex switch (HO)
Package ifluatex Info: LuaTeX not detected.
)
(e:/Programme/texlive/2019/texmf-dist/tex/generic/oberdiek/ltxcmds.sty
Package: ltxcmds 2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
)
Package pdftexcmds Info: LuaTeX not detected.
Package pdftexcmds Info: \pdf@primitive is available.
Package pdftexcmds Info: \pdf@ifprimitive is available.
Package pdftexcmds Info: \pdfdraftmode found.
)
(e:/Programme/texlive/2019/texmf-dist/tex/generic/oberdiek/catchfile.sty
Package: catchfile 2016/05/16 v1.7 Catch the contents of a file (HO)

(e:/Programme/texlive/2019/texmf-dist/tex/generic/oberdiek/etexcmds.sty
Package: etexcmds 2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO)
)))
\c@app@runs=\count94
runsystem(echo " ")...executed.

runsystem(echo "-------------------------------------------------")...executed.

runsystem(echo "auto-pst-pdf: Auxiliary LaTeX compilation")...executed.

runsystem(echo "-------------------------------------------------")...executed.

runsystem(del "test-pics.pdf")...executed.

runsystem(latex -disable-write18 -jobname="test-autopp" -interaction=batchmode 
 "\let \APPmakepictures \empty \input  test.tex")...executed.

runsystem(dvips -Ppdf -o "test-autopp.ps" "test-autopp.dvi")...executed.

runsystem(ps2pdf  "test-autopp.ps" "test-autopp.pdf")...executed.

runsystem(pdfcrop  "test-autopp.pdf" "test-pics.pdf")...executed.

runsystem(del "test-autopp.log")...executed.

runsystem(del "test-autopp.dvi")...executed.

runsystem(del "test-autopp.ps")...executed.

runsystem(del "test-autopp.pdf")...executed.

runsystem(echo "-------------------------------------------------")...executed.

runsystem(echo "auto-pst-pdf: End auxiliary LaTeX compilation")...executed.

runsystem(echo "-------------------------------------------------")...executed.


(e:/Programme/texlive/2019/texmf-dist/tex/latex/pst-pdf/pst-pdf.sty
Package: pst-pdf 2017/06/22 v1.2d PS graphics for pdfLaTeX (RN,HjG)

(e:/Programme/texlive/2019/texmf-dist/tex/generic/ifxetex/ifxetex.sty
Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional
)
(e:/Programme/texlive/2019/texmf-dist/tex/generic/oberdiek/ifvtex.sty
Package: ifvtex 2016/05/16 v1.6 Detect VTeX and its facilities (HO)
Package ifvtex Info: VTeX not detected.
)
(e:/Programme/texlive/2019/texmf-dist/tex/generic/luatex85/luatex85.sty
Package: luatex85 2016/06/15 v1.4 pdftex aliases for luatex
)
\c@pspicture=\count95
Package pst-pdf Info: MODE: 1 (pdfTeX mode) on input line 214.

(e:/Programme/texlive/2019/texmf-dist/tex/latex/pstricks/pstricks.sty
Package: pstricks 2018/12/21 v0.69 LaTeX wrapper for `PSTricks' (RN,HV)

(e:/Programme/texlive/2019/texmf-dist/tex/generic/iftex/iftex.sty
Package: iftex 2013/04/04 v0.2 Provides if(tex) conditional for PDFTeX, XeTeX, 
and LuaTeX
)
(e:/Programme/texlive/2019/texmf-dist/tex/latex/xcolor/xcolor.sty
Package: xcolor 2016/05/11 v2.12 LaTeX color extensions (UK)

(e:/Programme/texlive/2019/texmf-dist/tex/latex/graphics-cfg/color.cfg
File: color.cfg 2016/01/02 v1.6 sample color configuration
)
Package xcolor Info: Driver file: pdftex.def on input line 225.
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1348.
Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1352.
Package xcolor Info: Model `RGB' extended on input line 1364.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1366.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1367.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1368.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1369.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1370.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1371.
)
(e:/Programme/texlive/2019/texmf-dist/tex/generic/xkeyval/pst-xkey.tex
File: pst-xkey.tex 2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
)
(e:/Programme/texlive/2019/texmf-dist/tex/generic/pstricks/pstricks.tex
(e:/Programme/texlive/2019/texmf-dist/tex/generic/pstricks/pst-fp.tex
`pst-fp' v0.05, 2010/01/17 (hv)
\pstFP@xs=\count96
\pstFP@xia=\count97
\pstFP@xib=\count98
\pstFP@xfa=\count99
\pstFP@xfb=\count100
\pstFP@rega=\count101
\pstFP@regb=\count102
\pstFP@regs=\count103
\pstFP@times=\count104
)
(e:/Programme/texlive/2019/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.
tex
\pgfutil@everybye=\toks19
\pgfutil@tempdima=\dimen113
\pgfutil@tempdimb=\dimen114

(e:/Programme/texlive/2019/texmf-dist/tex/generic/pgf/utilities/pgfutil-common-
lists.tex))
(e:/Programme/texlive/2019/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.te
x
\pgfkeys@pathtoks=\toks20
\pgfkeys@temptoks=\toks21

(e:/Programme/texlive/2019/texmf-dist/tex/generic/pgf/utilities/pgfkeysfiltered
.code.tex
\pgfkeys@tmptoks=\toks22
))
(e:/Programme/texlive/2019/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex
Loading pgffor.code.tex
(e:/Programme/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex
(e:/Programme/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.tex

(e:/Programme/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex
\pgf@x=\dimen115
\pgf@xa=\dimen116
\pgf@xb=\dimen117
\pgf@xc=\dimen118
\pgf@y=\dimen119
\pgf@ya=\dimen120
\pgf@yb=\dimen121
\pgf@yc=\dimen122
\c@pgf@counta=\count105
\c@pgf@countb=\count106
\c@pgf@countc=\count107
\c@pgf@countd=\count108
\pgfutil@tempcnta=\count109
\pgfutil@tempcntb=\count110
)
(e:/Programme/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.t
ex
\pgfmath@dimen=\dimen123
\pgfmath@count=\count111
\pgfmath@box=\box27
\pgfmath@toks=\toks23
\pgfmath@stack@operand=\toks24
\pgfmath@stack@operation=\toks25
)
(e:/Programme/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.cod
e.tex
(e:/Programme/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.bas
ic.code.tex)
(e:/Programme/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.tri
gonometric.code.tex)
(e:/Programme/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.ran
dom.code.tex)
(e:/Programme/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.com
parison.code.tex)
(e:/Programme/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.bas
e.code.tex)
(e:/Programme/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.rou
nd.code.tex)
(e:/Programme/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.mis
c.code.tex)
(e:/Programme/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.int
egerarithmetics.code.tex)))
(e:/Programme/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathfloat.code.te
x
\c@pgfmathroundto@lastzeros=\count112
))
\pgffor@iter=\dimen124
\pgffor@skip=\dimen125
\pgffor@stack=\toks26
\pgffor@toks=\toks27
)
\psLoopIndex=\count113

`PSTricks' v2.97  <2019/05/11> (tvz,hv)
\pst@dima=\dimen126
\pst@dimb=\dimen127
\pst@dimc=\dimen128
\pst@dimd=\dimen129
\pst@dimg=\dimen130
\pst@dimh=\dimen131
\pst@dimm=\dimen132
\pst@dimn=\dimen133
\pst@dimo=\dimen134
\pst@dimp=\dimen135
\pst@hbox=\box28
\pst@ibox=\box29
\pst@boxg=\box30
\pst@cnta=\count114
\pst@cntb=\count115
\pst@cntc=\count116
\pst@cntd=\count117
\pst@cntg=\count118
\pst@cnth=\count119
\pst@cntm=\count120
\pst@cntn=\count121
\pst@cnto=\count122
\pst@cntp=\count123
\@zero=\count124
\pst@toks=\toks28
(e:/Programme/texlive/2019/texmf-dist/tex/generic/pstricks/pstricks.con)
\psunit=\dimen136
\psxunit=\dimen137
\psyunit=\dimen138
\pst@C@@rType=\count125
\pslinewidth=\dimen139
\psk@startLW=\dimen140
\psk@endLW=\dimen141
\pst@customdefs=\toks29
\pslinearc=\dimen142
\pst@symbolStep=\dimen143
\pst@symbolWidth=\dimen144
\pst@symbolLinewidth=\dimen145
\everypsbox=\toks30
\psframesep=\dimen146
\pslabelsep=\dimen147
\sh@wgridXunit=\dimen148
\sh@wgridYunit=\dimen149
\pst@shift=\dimen150
)
File: pstricks.tex 2019/05/11 v2.97 `PSTricks' (tvz,hv)

(e:/Programme/texlive/2019/texmf-dist/tex/generic/pstricks/pst-fp.tex)
File: pst-fp.tex 2019/05/11 v2.97 `PST-fp' (hv)
)
\ppf@output=\toks31

(e:/Programme/texlive/2019/texmf-dist/tex/latex/preview/preview.sty
Package: preview 2017/04/24 11.91 (AUCTeX/preview-latex)
\pr@snippet=\count126
\pr@box=\box31
\pr@output=\toks32
)
(e:/Programme/texlive/2019/texmf-dist/tex/latex/graphics-def/dvips.def
File: dvips.def 2017/06/20 v3.1d Graphics/color driver for dvips
)
(e:/Programme/texlive/2019/texmf-dist/tex/latex/environ/environ.sty
Package: environ 2014/05/04 v0.3 A new way to define environments

(e:/Programme/texlive/2019/texmf-dist/tex/latex/trimspaces/trimspaces.sty
Package: trimspaces 2009/09/17 v1.1 Trim spaces around a token list
)
\@envbody=\toks33
)))
(e:/Programme/texlive/2019/texmf-dist/tex/latex/chemnum/chemnum.sty
(e:/Programme/texlive/2019/texmf-dist/tex/latex/l3kernel/expl3.sty
Package: expl3 2019-10-14 L3 programming layer (loader) 

(e:/Programme/texlive/2019/texmf-dist/tex/latex/l3kernel/expl3-code.tex
Package: expl3 2019-10-14 L3 programming layer (code)
\c_max_int=\count127
\l_tmpa_int=\count128
\l_tmpb_int=\count129
\g_tmpa_int=\count130
\g_tmpb_int=\count131
\l__seq_internal_a_int=\count132
\l__seq_internal_b_int=\count133
\g__kernel_prg_map_int=\count134
\c__ior_term_noprompt_ior=\count135
\c_log_iow=\count136
\l_iow_line_count_int=\count137
\l__iow_line_target_int=\count138
\l__iow_one_indent_int=\count139
\l__iow_indent_int=\count140
\c_zero_dim=\dimen151
\c_max_dim=\dimen152
\l_tmpa_dim=\dimen153
\l_tmpb_dim=\dimen154
\g_tmpa_dim=\dimen155
\g_tmpb_dim=\dimen156
\c_zero_skip=\skip43
\c_max_skip=\skip44
\l_tmpa_skip=\skip45
\l_tmpb_skip=\skip46
\g_tmpa_skip=\skip47
\g_tmpb_skip=\skip48
\c_zero_muskip=\muskip10
\c_max_muskip=\muskip11
\l_tmpa_muskip=\muskip12
\l_tmpb_muskip=\muskip13
\g_tmpa_muskip=\muskip14
\g_tmpb_muskip=\muskip15
\l_keys_choice_int=\count141
\l__intarray_loop_int=\count142
\c__intarray_sp_dim=\dimen157
\g__intarray_font_int=\count143
\c__fp_leading_shift_int=\count144
\c__fp_middle_shift_int=\count145
\c__fp_trailing_shift_int=\count146
\c__fp_big_leading_shift_int=\count147
\c__fp_big_middle_shift_int=\count148
\c__fp_big_trailing_shift_int=\count149
\c__fp_Bigg_leading_shift_int=\count150
\c__fp_Bigg_middle_shift_int=\count151
\c__fp_Bigg_trailing_shift_int=\count152
\c__kernel_randint_max_int=\count153
\g__fp_array_int=\count154
\l__fp_array_loop_int=\count155
\l__sort_length_int=\count156
\l__sort_min_int=\count157
\l__sort_top_int=\count158
\l__sort_max_int=\count159
\l__sort_true_max_int=\count160
\l__sort_block_int=\count161
\l__sort_begin_int=\count162
\l__sort_end_int=\count163
\l__sort_A_int=\count164
\l__sort_B_int=\count165
\l__sort_C_int=\count166
\l__str_internal_int=\count167
\c__str_replacement_char_int=\count168
\l__tl_analysis_normal_int=\count169
\l__tl_analysis_index_int=\count170
\l__tl_analysis_nesting_int=\count171
\l__tl_analysis_type_int=\count172
\l__regex_internal_a_int=\count173
\l__regex_internal_b_int=\count174
\l__regex_internal_c_int=\count175
\l__regex_balance_int=\count176
\l__regex_group_level_int=\count177
\l__regex_mode_int=\count178
\c__regex_cs_in_class_mode_int=\count179
\c__regex_cs_mode_int=\count180
\l__regex_catcodes_int=\count181
\l__regex_default_catcodes_int=\count182
\c__regex_catcode_D_int=\count183
\c__regex_catcode_S_int=\count184
\c__regex_catcode_L_int=\count185
\c__regex_catcode_O_int=\count186
\c__regex_catcode_A_int=\count187
\c__regex_all_catcodes_int=\count188
\l__regex_show_lines_int=\count189
\l__regex_min_state_int=\count190
\l__regex_max_state_int=\count191
\l__regex_left_state_int=\count192
\l__regex_right_state_int=\count193
\l__regex_capturing_group_int=\count194
\l__regex_min_pos_int=\count195
\l__regex_max_pos_int=\count196
\l__regex_curr_pos_int=\count197
\l__regex_start_pos_int=\count198
\l__regex_success_pos_int=\count199
\l__regex_curr_char_int=\count266
\l__regex_curr_catcode_int=\count267
\l__regex_last_char_int=\count268
\l__regex_case_changed_char_int=\count269
\l__regex_curr_state_int=\count270
\l__regex_step_int=\count271
\l__regex_min_active_int=\count272
\l__regex_max_active_int=\count273
\l__regex_replacement_csnames_int=\count274
\l__regex_match_count_int=\count275
\l__regex_min_submatch_int=\count276
\l__regex_submatch_int=\count277
\l__regex_zeroth_submatch_int=\count278
\g__regex_trace_regex_int=\count279
\c_empty_box=\box32
\l_tmpa_box=\box33
\l_tmpb_box=\box34
\g_tmpa_box=\box35
\g_tmpb_box=\box36
\l__box_top_dim=\dimen158
\l__box_bottom_dim=\dimen159
\l__box_left_dim=\dimen160
\l__box_right_dim=\dimen161
\l__box_top_new_dim=\dimen162
\l__box_bottom_new_dim=\dimen163
\l__box_left_new_dim=\dimen164
\l__box_right_new_dim=\dimen165
\l__box_internal_box=\box37
\l__coffin_internal_box=\box38
\l__coffin_internal_dim=\dimen166
\l__coffin_offset_x_dim=\dimen167
\l__coffin_offset_y_dim=\dimen168
\l__coffin_x_dim=\dimen169
\l__coffin_y_dim=\dimen170
\l__coffin_x_prime_dim=\dimen171
\l__coffin_y_prime_dim=\dimen172
\c_empty_coffin=\box39
\l__coffin_aligned_coffin=\box40
\l__coffin_aligned_internal_coffin=\box41
\l_tmpa_coffin=\box42
\l_tmpb_coffin=\box43
\g_tmpa_coffin=\box44
\g_tmpb_coffin=\box45
\l__coffin_bounding_shift_dim=\dimen173
\l__coffin_left_corner_dim=\dimen174
\l__coffin_right_corner_dim=\dimen175
\l__coffin_bottom_corner_dim=\dimen176
\l__coffin_top_corner_dim=\dimen177
\l__coffin_scaled_total_height_dim=\dimen178
\l__coffin_scaled_width_dim=\dimen179
\c__coffin_empty_coffin=\box46
\l__coffin_display_coffin=\box47
\l__coffin_display_coord_coffin=\box48
\l__coffin_display_pole_coffin=\box49
\l__coffin_display_offset_dim=\dimen180
\l__coffin_display_x_dim=\dimen181
\l__coffin_display_y_dim=\dimen182
\g__char_data_ior=\read1

(e:/Programme/texlive/2019/texmf-dist/tex/latex/l3kernel/l3deprecation.def
File: l3deprecation.def 2019-04-06 v L3 Deprecated functions
))
(e:/Programme/texlive/2019/texmf-dist/tex/latex/l3backend/l3backend-pdfmode.def
File: l3backend-pdfmode.def 2019-04-06 L3 backend support: PDF mode
\l__kernel_color_stack_int=\count280
\l__pdf_internal_box=\box50
)) (e:/Programme/texlive/2019/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
Package: xparse 2019-10-11 L3 Experimental document command parser
\l__xparse_current_arg_int=\count281
\g__xparse_grabber_int=\count282
\l__xparse_m_args_int=\count283
\l__xparse_v_nesting_int=\count284
)
(e:/Programme/texlive/2019/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.st
y
Package: l3keys2e 2019-10-11 LaTeX2e option processing using LaTeX3 keys
)
Package: chemnum 2019/10/02 v1.2c a comprehensive approach for the numbering of
 chemical compounds (CN)

(e:/Programme/texlive/2019/texmf-dist/tex/latex/translations/translations.sty
Package: translations 2017/08/31 v1.7a internationalization of LaTeX2e packages
 (CN)

(e:/Programme/texlive/2019/texmf-dist/tex/latex/koma-script/scrlfile.sty
Package: scrlfile 2019/10/12 v3.27 KOMA-Script package (loading files)
)
(e:/Programme/texlive/2019/texmf-dist/tex/latex/etoolbox/etoolbox.sty
Package: etoolbox 2019/09/21 v2.5h e-TeX tools for LaTeX (JAW)
\etb@tempcnta=\count285
))
(e:/Programme/texlive/2019/texmf-dist/tex/latex/chemgreek/chemgreek.sty
(e:/Programme/texlive/2019/texmf-dist/tex/latex/amsmath/amstext.sty
Package: amstext 2000/06/29 v2.01 AMS text

(e:/Programme/texlive/2019/texmf-dist/tex/latex/amsmath/amsgen.sty
File: amsgen.sty 1999/11/30 v2.0 generic functions
\@emptytoks=\toks34
\ex@=\dimen183
))
Package: chemgreek 2016/12/20 v1.1 interfaceforuprightgreeklettersforuseinchemi
stry (CN)
\l__chemgreek_tmpa_int=\count286
\g__chemgreek_tmpa_int=\count287
)
(e:/Programme/texlive/2019/texmf-dist/tex/latex/psfrag/psfrag.sty
Package: psfrag 1998/04/11 v3.04 PSfrag (MCG)
\pfg@pcount=\count288
\pfg@scount=\count289
\pfg@temp=\write3
)
\l__chemnum_tmpa_int=\count290
\l__chemnum_tmpb_int=\count291
\l__chemnum_tmpc_int=\count292
\c@cmpdmain=\count293
\g__chemnum_main_int=\count294
\l__chemnum_compound_replace_int=\count295
) (./test.aux)
\openout1 = `test.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 11.
LaTeX Font Info:    ... okay on input line 11.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 11.
LaTeX Font Info:    ... okay on input line 11.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 11.
LaTeX Font Info:    ... okay on input line 11.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 11.
LaTeX Font Info:    ... okay on input line 11.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 11.
LaTeX Font Info:    ... okay on input line 11.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 11.
LaTeX Font Info:    ... okay on input line 11.
Package caption Info: Begin \AtBeginDocument code.
Package caption Info: End \AtBeginDocument code.
 (e:/Programme/texlive/2019/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count296
\scratchdimen=\dimen184
\scratchbox=\box51
\nofMPsegments=\count297
\nofMParguments=\count298
\everyMPshowfont=\toks35
\MPscratchCnt=\count299
\MPscratchDim=\dimen185
\MPnumerator=\count300
\makeMPintoPDFobject=\count301
\everyMPtoPDFconversion=\toks36
)
Preview: Fontsize 12pt
Preview: PDFoutput 1

(e:/Programme/texlive/2019/texmf-dist/tex/latex/translations/translations-basic
-dictionary-english.trsl
File: translations-basic-dictionary-english.trsl (english translation file `tra
nslations-basic-dictionary')
)
Package translations Info: loading dictionary `translations-basic-dictionary' f
or `english'. on input line 11.

Package chemgreek Info: Activating mapping `default' on line 11.

<E:/test/test_png.png, id=2, 142.3719pt x 142.3719pt>
File: E:/test/test_png.png Graphic file (type png)
<use E:/test/test_png.png>
Package pdftex.def Info: E:/test/test_png.png  used on input line 14.
(pdftex.def)             Requested size: 142.37154pt x 142.37154pt.
.................................................
. Package chemnum Info: defined new compound `compound' with output `1'.
.................................................
<test-pics.pdf, id=4, page=1, 1200.00322pt x 1200.00322pt>
File: test-pics.pdf Graphic file (type pdf)
<use test-pics.pdf, page 1>
Package pdftex.def Info: test-pics.pdf , page1 used on input line 20.
(pdftex.def)             Requested size: 1200.0003pt x 1200.0003pt.

Overfull \hbox (810.0003pt too wide) in paragraph at lines 20--21
[][] 
 []


LaTeX Warning: Float too large for page by 632.50029pt on input line 22.


Package pst-pdf Warning: `test-pics.pdf' contains 2 pages 
(pst-pdf)                but 1 pages are requested: 
(pst-pdf)                File `test-pics.pdf' is no more valid! 
(pst-pdf)                Recreate it .

[1{e:/Programme/texlive/2019/texmf-var/fonts/map/pdftex/updmap/pdftex.map} <e:/
test/test_png.png>] [2 <./test-pics.pdf>] (./test.aux) ) 
Here is how much of TeX's memory you used:
 22980 strings out of 492167
 444615 string characters out of 6124418
 486889 words of memory out of 5000000
 27130 multiletter control sequences out of 15000+600000
 532636 words of font info for 25 fonts, out of 8000000 for 9000
 1141 hyphenation exceptions out of 8191
 54i,7n,77p,797b,415s stack positions out of 5000i,500n,10000p,200000b,80000s
<e:/Programme/texlive/2
019/texmf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb>
Output written on test.pdf (2 pages, 28521 bytes).
PDF statistics:
 24 PDF objects out of 1000 (max. 8388607)
 13 compressed objects within 1 object stream
 0 named destinations out of 1000 (max. 500000)
 16 words of extra memory for PDF output out of 10000 (max. 10000000)
sgl
Posts: 8
Joined: Tue Oct 22, 2019 11:40 pm

.png figure seems to suppress display of succeeding .eps in pdflatex with shell escape

Post by sgl »

Update:

Loading the epstopdf package gets both png and eps displayed, but then of course without the tag replaced in the eps.

Steffen
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

.png figure seems to suppress display of succeeding .eps in pdflatex with shell escape

Post by Stefan Kottwitz »

So it's ok now? What about the tag, I don't see a tag issue in the code?

Stefan
LaTeX.org admin
sgl
Posts: 8
Joined: Tue Oct 22, 2019 11:40 pm

.png figure seems to suppress display of succeeding .eps in pdflatex with shell escape

Post by sgl »

No unfortunately I need the tag replaced, just thought the addition might give some hint. Is there any discrepancy between my and your log? The log is from a run without epstopdf.

Steffen
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

.png figure seems to suppress display of succeeding .eps in pdflatex with shell escape

Post by Stefan Kottwitz »

How do you replace the tag? Using psfrag? You could use pdfrack.

Or use chemfig.

A simple example from my LaTeX cookbook:

Code: Select all

\documentclass[border=15pt]{standalone}
\usepackage{chemfig}
\begin{document}
\chemfig{C*6((-H)-C(-H)=C(-H)-C(-H)=C(-H)-C(-H)=)}
\end{document}
13-benzene.png
13-benzene.png (15.33 KiB) Viewed 7351 times
Stefan
LaTeX.org admin
Post Reply