Closed bernhard-kleine closed 9 years ago
The filenames in the attributes on the graphics element in the XML are all missing the underscore, but I'm not seeing the underscores removed on my tests. Maybe there's some thing redefined or some broken package being included? (or some other typo?).
A complete (but small) example that displays the problem (but works in latex or pdflatex) would be very helpful here.
I have now a small example of what I encountered. I works perfectly well in Pdflatex. I think something wrong in the path conversion from xml to html , and only for SVG not for png:
\documentclass[12pt,a4paper]{book}
\usepackage[utf8]{inputenc}
\usepackage{rotating}% für gedrehte Tabelle etc.
\usepackage{float}
\usepackage{caption}
\begin{document}
\begin{figure}
\includegraphics{Chap4/g/orexine} %pdf and svg versions
\caption{Orexin precursor and its primary sequence}
\end{figure}
\begin{figure}
\includegraphics{Chap4/g/orexin} %only png
\caption{Orexin precursor and its primary sequence}
\end{figure}
\end{document}
The xml with latexml test3.tex --output=test3.xml
<?xml version="1.0" encoding="UTF-8"?>
<?latexml searchpaths="F:/EigeneDateien/BuchprojektSpringer/XMLtestordner"?>
<?latexml class="book" options="12pt,a4paper"?>
<?latexml package="inputenc" options="utf8"?>
<?latexml package="rotating"?>
<?latexml package="float"?>
<?latexml package="caption"?>
<?latexml RelaxNGSchema="LaTeXML"?>
<document xmlns="http://dlmf.nist.gov/LaTeXML">
<resource src="LaTeXML.css" type="text/css"/>
<resource src="ltx-book.css" type="text/css"/>
<figure frefnum="Figure 0.1" refnum="0.1" xml:id="Ch0.F1">
<graphics candidates="Chap4\g\orexine.pdf,Chap4\g\orexine.svg,Chap4\g\orexine.pdf,Chap4\g\orexine.svg" graphic="Chap4/g/orexine" xml:id="Ch0.F1.g1"/>
<!-- %pdf and svg versions -->
<toccaption><tag close=" ">0.1</tag>Orexin precursor and its primary sequence</toccaption>
<caption><tag close=": ">Figure 0.1</tag>Orexin precursor and its primary sequence</caption>
</figure>
<figure frefnum="Figure 0.2" refnum="0.2" xml:id="Ch0.F2">
<graphics candidates="Chap4\g\orexin.png,Chap4\g\orexin.png" graphic="Chap4/g/orexin" xml:id="Ch0.F2.g1"/>
<!-- %only png -->
<toccaption><tag close=" ">0.2</tag>Orexin precursor and its primary sequence</toccaption>
<caption><tag close=": ">Figure 0.2</tag>Orexin precursor and its primary sequence</caption>
</figure>
</document>
and the HTML:
<head>
<title></title>
<!--Generated on Sun Oct 19 14:35:45 2014 by LaTeXML (version v0.8.0) http://dlmf.nist.gov/LaTeXML/.-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="LaTeXML.css" type="text/css">
<link rel="stylesheet" href="ltx-book.css" type="text/css">
</head>
<body>
<div class="ltx_page_main">
<div class="ltx_page_content">
<section class="ltx_document">
<figure id="Ch0.F1" class="ltx_figure"><img src="" id="Ch0.F1.g1" class="ltx_graphics" alt="">
<figcaption class="ltx_caption"><span class="ltx_tag ltx_tag_figure">Figure 0.1: </span>Orexin precursor and its primary sequence</figcaption>
</figure>
<figure id="Ch0.F2" class="ltx_figure"><img src="Chap4%5Cg%5Corexin.png" id="Ch0.F2.g1" class="ltx_graphics" width="408" height="75" alt="">
<figcaption class="ltx_caption"><span class="ltx_tag ltx_tag_figure">Figure 0.2: </span>Orexin precursor and its primary sequence</figcaption>
</figure>
</section>
</div>
<footer class="ltx_page_footer">
<div class="ltx_page_logo">Generated on Sun Oct 19 14:35:45 2014 by <a href="http://dlmf.nist.gov/LaTeXML/">LaTeXML <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAOCAYAAAD5YeaVAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wKExQZLWTEaOUAAAAddEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIFRoZSBHSU1Q72QlbgAAAdpJREFUKM9tkL+L2nAARz9fPZNCKFapUn8kyI0e4iRHSR1Kb8ng0lJw6FYHFwv2LwhOpcWxTjeUunYqOmqd6hEoRDhtDWdA8ApRYsSUCDHNt5ul13vz4w0vWCgUnnEc975arX6ORqN3VqtVZbfbTQC4uEHANM3jSqXymFI6yWazP2KxWAXAL9zCUa1Wy2tXVxheKA9YNoR8Pt+aTqe4FVVVvz05O6MBhqUIBGk8Hn8HAOVy+T+XLJfLS4ZhTiRJgqIoVBRFIoric47jPnmeB1mW/9rr9ZpSSn3Lsmir1fJZlqWlUonKsvwWwD8ymc/nXwVBeLjf7xEKhdBut9Hr9WgmkyGEkJwsy5eHG5vN5g0AKIoCAEgkEkin0wQAfN9/cXPdheu6P33fBwB4ngcAcByHJpPJl+fn54mD3Gg0NrquXxeLRQAAwzAYj8cwTZPwPH9/sVg8PXweDAauqqr2cDjEer1GJBLBZDJBs9mE4zjwfZ85lAGg2+06hmGgXq+j3+/DsixYlgVN03a9Xu8jgCNCyIegIAgx13Vfd7vdu+FweG8YRkjXdWy329+dTgeSJD3ieZ7RNO0VAXAPwDEAO5VKndi2fWrb9jWl9Esul6PZbDY9Go1OZ7PZ9z/lyuD3OozU2wAAAABJRU5ErkJggg==" alt="[LOGO]"></a>
</div></footer>
</div>
</body>
</html>
What command line and options are you using to generate the html? I'm not even getting an tag for the svg case: the current latexml is generating an
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Finally a small example:
\documentclass[12pt,a4paper]{book} \usepackage[utf8]{inputenc} \usepackage{rotating}% für gedrehte Tabelle etc. \usepackage{float} \usepackage{caption}
\begin{document}
\begin{figure} \includegraphics{g/orexine} %pdf and svg versions \caption{Orexin precursor and its primary sequence} \end{figure}
\end{document}
Which runs nicely in pdflatex.
I hope this will help to localize the error.
Bernhard
F:\EigeneDateien\BuchprojektSpringer\XMLtestordner>latexml test3 --dest=test3.xml latexml (LaTeXML version v0.8.0) processing started Wed Nov 12 18:38:18 2014
(Digesting TeX test3... (Loading d:/latexml/latexml-master/lib/LaTeXML/Package/TeX.pool.ltxml... (Loading d:/latexml/latexml-master/lib/LaTeXML/Package/eTeX.pool.ltxml... 0.01 sec) (Loading d:/latexml/latexml-master/lib/LaTeXML/Package/pdfTeX.pool.ltxml... 0.02 sec) 0.52 sec) (Processing content F:/EigeneDateien/BuchprojektSpringer/XMLtestordner/test3.tex... (Loading d:/latexml/latexml-master/lib/LaTeXML/Package/LaTeX.pool.ltxml... 0.47 sec) (Loading d:/latexml/latexml-master/lib/LaTeXML/Package/book.cls.ltxml... 0.04 sec) (Loading d:/latexml/latexml-master/lib/LaTeXML/Package/inputenc.sty.ltxml... (Loading d:/latexml/latexml-master/lib/LaTeXML/Package/utf8.def.ltxml... 0.01 sec) 0.03 sec) (Loading d:/latexml/latexml-master/lib/LaTeXML/Package/rotating.sty.ltxml... (Loading d:/latexml/latexml-master/lib/LaTeXML/Package/graphicx.sty.ltxml... (Loading d:/latexml/latexml-master/lib/LaTeXML/Package/graphics.sty.ltxml... 0.01 sec) 0.09 sec) 0.12 sec) (Loading d:/latexml/latexml-master/lib/LaTeXML/Package/float.sty.ltxml... 0.01 sec) (Loading d:/latexml/latexml-master/lib/LaTeXML/Package/caption.sty.ltxml... 0.01 sec) 0.85 sec) 1.37 sec) (Building... (Loading compiled schema d:/latexml/latexml-master/lib/LaTeXML/resources/RelaxNG/LaTeXML.model... 0.04 sec). 0.13 sec) (Rewriting... 0.00 sec) (Finalizing... 0.00 sec) Conversion complete: No obvious problems. processing finished Wed Nov 12 18:38:20 2014
F:\EigeneDateien\BuchprojektSpringer\XMLtestordner>latexmlpost test3.xml --dest=test3.html --format=html5 latexmlpost (LaTeXML version v0.8.0) processing started Wed Nov 12 18:38:39 2014 (test3.html post-processing... (Scan test3.html processing... (CrossRef test3.html processing... (Graphics test3.html processing... (XSLT test3.html processing... (Writer test3.html processing... 0.05 sec) Postprocessing complete: No obvious problems processing finished Wed Nov 12 18:38:39 2014
F:\EigeneDateien\BuchprojektSpringer\XMLtestordner>
Von: bruce miller [mailto:notifications@github.com] Gesendet: Sonntag, 19. Oktober 2014 01:33 An: brucemiller/LaTeXML Cc: Bernhard Kleine Betreff: Re: [LaTeXML] Figure not showing (#544)
The filenames in the attributes on the graphics element in the XML are all missing the underscore, but I'm not seeing the underscores removed on my tests. Maybe there's some thing redefined or some broken package being included? (or some other typo?). A complete (but small) example that displays the problem (but works in latex or pdflatex) would be very helpful here. — Reply to this email directly or view it on GitHub. -----BEGIN PGP SIGNATURE----- Charset: utf-8
iQIcBAEBAgAGBQJUY5x7AAoJENCoWyDsDBkPTyYP/1Ig6ohdpwigh2tsXi06fTQ/ o9dl61dx+CkF4BntG337Fs6Y7KdY5EOX6qGpoqdWd9oDO2gNtA/VVaNQsdFWziFo s3r+gKLKaDl27NdJdQDjb4QcO8noOz1TexGybuyFgr56ea/c3vRHaopCvlIN+Mtr 7WNmce4Wl+wkVSefXC4VOjWGMjOUl26H1CPKvt1mVMvPypjHRKWtczJWElRnAkFk dz+zjeX8x7tbibpsqlQ8uhhiUzP6SzbDIZe0yhAAaE3bCb91eFtKGjS+d9dO/txx YiG4WK0HS658dP5gN8k2rYYnZXquSQLGv/ta2PNmIfQM3xDbP44AsiQB6lXXFRP/ V3b9pRrqYKnDHvqP3QYyDN5TRyZ1+D5FqndMjxQIpgbT/XZUJVwb1EouG9igJDND af0xccTQPmnZJYk1PvaJg2LcgezGpJ8S93ZPyZVr0UZGf4yqAjGs4kFjp1hrB+vL 6idPbeElf5XX77jccx8+bOMS47/r6OSFujIJwy/tJoXsYVW6yE+YFFFsfGqaCQBX muauHFv+8Zyo6f1ddZU1kbV8G2QdgKcHOrJhN3TtRN7Kj1VtU9gbEaLhUdvc+xDJ bn3xwCrA2wLZLsKUsgv3Xs2rE1iwTw4opDp2ixc4PrijRJ7ul4a24Q4s1Ulh7Qdv e+Qthae160g+vY8ZRZvz =K3JL -----END PGP SIGNATURE-----
Did you get the files via the list?
I saw the message, but haven't actually looked at the files; it looks like enough to try to reproduce and hopefully fix the problem. I'm working through a backlog, but should get to it pretty quick.
So, I got the files; I put the orexine images into a g subdirectory, and everything seems to work as expected. I'm puzzled. The only thing I can think of at the moment is there's some stray mangling of windows pathnames affecting the graphics post processing.
Could you post the result of
latexmlpost --verb --verb --dest=html/test3.html test3
maybe that gives a clue where it's looking?
F:\EigeneDateien\BuchprojektSpringer\XMLtestordner>latexmlpost --verb --verb --dest=html/test3.html test3
latexmlpost (LaTeXML version v0.8.0) processing started Sun Nov 16 14:29:20 2014 (test3.html post-processing... (Scan test3.html processing... [DBStatus: 3/0 objects] (CrossRef test3.html processing... [Filled in 0 glossaryrefs] [Filled in 0 TOCs] [Filled in fragment 2 ids] [Filled in 0 refs] [Filled in 0 RDFa refs] [Filled in 0 bibrefs] (Graphics test3.html processing... [Using graphicspaths: F:/EigeneDateien/BuchprojektSpringer/XMLtestordner, F:\EigeneDateien\BuchprojektSpringer\XMLtestordner] [Processing F:/EigeneDateien/BuchprojektSpringer/XMLtestordner/g/orexine.svg as key=LaTeXML::Post::Graphics:g\orexine.svg] [Destination \EigeneDateien\BuchprojektSpringer\XMLtestordner\html\g\orexine.svg] (XSLT test3.html processing... (Writer test3.html processing... 0.17 sec) Postprocessing complete: No obvious problems processing finished Sun Nov 16 14:29:21 2014 F:\EigeneDateien\BuchprojektSpringer\XMLtestordner>
As you can see the src tag remains empty.
Kind regards Bernhard
Hmm, there is a clue: The Destination should be absolute; it seems to have been converted to the native windows \
form from /
, but is missing the drive. And then the "Copied to" part is missing, so it would appear windows/perl is unhappy with that path. Probably some unixy assumption hidden in the pathname code. I'll have to dig for it.
I've made an attempt to at least get better error reporting, if not fix the problem. Please git pull
and try that again and see if it helps (you might want to remove the html directory first)
you missed the src tag in the figure
<!-- ?xml version="1.0" encoding="UTF-8"? -->
<!-- ?latexml searchpaths="F:/EigeneDateien/Buchprojekt… -->
<!-- ?latexml class="book" options="12pt,a4paper"? -->
<!-- ?latexml package="inputenc" options="utf8"? -->
<!-- ?latexml package="rotating"? -->
<!-- ?latexml package="float"? -->
<!-- ?latexml package="caption"? -->
<!-- ?latexml RelaxNGSchema="LaTeXML"? -->
<html>
<head></head>
<body>
<document xml:id="Document" xmlns="http://dlmf.nist.gov/LaTeXML">
<resource type="text/css" src="LaTeXML.css">
<resource type="text/css" src="ltx-book.css">
<figure fragid="Ch0.F1" xml:id="Ch0.F1" refnum="0.1" frefnum="Figure 0.1">
<graphics fragid="Ch0.F1.g1" xml:id="Ch0.F1.g1" graphic="g/orexine" candidates="g\orexine.pdf,g\orexine.svg,g\orexine.pdf,g\orexine.svg">
<!--
%pdf and svg versions
-->
<toccaption>
<tag close=" "></tag>
Orexin precursor and its primary sequence
</toccaption>
<tag close=": ">
Figure 0.1
</tag>
Orexin precursor and its primary sequence
</graphics>
</figure>
</resource>
</resource>
</document>
</body>
</html>
I don't understand what you mean by "missed the src tag". Assuming the patch didn't fix the problem, I was wanting to see what the log said.
totally uneventful: latexml:
F:\EigeneDateien\BuchprojektSpringer\XMLtestordner>latexml test3.tex --dest=test3.xml
latexml (LaTeXML version v0.8.0)
processing started Sun Nov 16 18:05:42 2014
(Digesting TeX test3...
(Loading d:/latexml/latexml-master/lib/LaTeXML/Package/TeX.pool.ltxml...
(Loading d:/latexml/latexml-master/lib/LaTeXML/Package/eTeX.pool.ltxml... 0.01 sec)
(Loading d:/latexml/latexml-master/lib/LaTeXML/Package/pdfTeX.pool.ltxml... 0.01 sec) 0.50 sec)
(Processing content F:/EigeneDateien/BuchprojektSpringer/XMLtestordner/test3.tex...
(Loading d:/latexml/latexml-master/lib/LaTeXML/Package/LaTeX.pool.ltxml... 0.36 sec)
(Loading d:/latexml/latexml-master/lib/LaTeXML/Package/book.cls.ltxml... 0.03 sec)
(Loading d:/latexml/latexml-master/lib/LaTeXML/Package/inputenc.sty.ltxml...
(Loading d:/latexml/latexml-master/lib/LaTeXML/Package/utf8.def.ltxml... 0.00 sec) 0.02 sec)
(Loading d:/latexml/latexml-master/lib/LaTeXML/Package/rotating.sty.ltxml...
(Loading d:/latexml/latexml-master/lib/LaTeXML/Package/graphicx.sty.ltxml...
(Loading d:/latexml/latexml-master/lib/LaTeXML/Package/graphics.sty.ltxml... 0.01 sec) 0.06 sec) 0.09 sec)
(Loading d:/latexml/latexml-master/lib/LaTeXML/Package/float.sty.ltxml... 0.00 sec)
(Loading d:/latexml/latexml-master/lib/LaTeXML/Package/caption.sty.ltxml... 0.01 sec) 0.64 sec) 1.15 sec)
(Building...
(Loading compiled schema d:/latexml/latexml-master/lib/LaTeXML/resources/RelaxNG/LaTeXML.model... 0.03 sec). 0.09 sec)
(Rewriting... 0.00 sec)
(Finalizing... 0.00 sec)
Conversion complete: No obvious problems.
processing finished Sun Nov 16 18:05:44 2014
and latexmlpost:
F:\EigeneDateien\BuchprojektSpringer\XMLtestordner>latexmlpost --verb --verb --dest=html/test3.htm test3.xml
latexmlpost (LaTeXML version v0.8.0)
processing started Sun Nov 16 18:10:06 2014
(test3.htm post-processing...
(Scan test3.htm processing... [DBStatus: 3/0 objects]
(CrossRef test3.htm processing... [Filled in 0 glossaryrefs] [Filled in 0 TOCs] [Filled in fragment 2 ids] [Filled in 0 refs] [Filled in 0 RDFa refs] [Filled in 0 bibrefs]
(Writer test3.htm processing... 0.01 sec)
Postprocessing complete: No obvious problems
processing finished Sun Nov 16 18:10:06 2014
in the figure there is no longer the
<image src="" >
filled or not.
Now I'm really confused. The graphics processor didn't seem to run at all, so less messages rather than more! Is that the same source file, still with \includegraphics{g/orexine}
?
Yes it is! i am still in the same folder and it did not edit the file. the pdf still works.
Is there still a graphics
element in test3.xml? What does it look like?
(somehow there ought to be error messages showing up, but aren't; You do have Image::Magick installed, right?)
rotating forces graphicx loading.
(f:/Texlive/2014/texmf-dist/tex/latex/rotating/rotating.sty
Package: rotating 2009/03/28 v2.16a rotated objects in LaTeX
(f:/Texlive/2014/texmf-dist/tex/latex/graphics/graphicx.sty
Package: graphicx 2014/04/25 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)
(f:/Texlive/2014/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 2014/05/08 v1.15 key=value parser (DPC)
\KV@toks@=\toks16
)
(f:/Texlive/2014/texmf-dist/tex/latex/graphics/graphics.sty
Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
(f:/Texlive/2014/texmf-dist/tex/latex/graphics/trig.sty
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
)
(f:/Texlive/2014/texmf-dist/tex/latex/latexconfig/graphics.cfg
File: graphics.cfg 2010/04/23 v1.9 graphics configuration of TeX Live
)
Package graphics Info: Driver file: pdftex.def on input line 91.
(f:/Texlive/2014/texmf-dist/tex/latex/pdftex-def/pdftex.def
File: pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX
(f:/Texlive/2014/texmf-dist/tex/generic/oberdiek/infwarerr.sty
Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO)
)
(f:/Texlive/2014/texmf-dist/tex/generic/oberdiek/ltxcmds.sty
Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
)
\Gread@gobject=\count88
))
\Gin@req@height=\dimen103
\Gin@req@width=\dimen104
)
Right: I was asking if the <graphics ...>
element was still being generated in the test3.xml file, and if so, what does it look like --- what are the attributes.
<?xml version="1.0" encoding="UTF-8"?>
<?latexml searchpaths="F:/EigeneDateien/BuchprojektSpringer/XMLtestordner"?>
<?latexml class="book" options="12pt,a4paper"?>
<?latexml package="inputenc" options="utf8"?>
<?latexml package="rotating"?>
<?latexml package="float"?>
<?latexml package="caption"?>
<?latexml package="graphicx"?>
<?latexml RelaxNGSchema="LaTeXML"?>
<document xmlns="http://dlmf.nist.gov/LaTeXML">
<resource src="LaTeXML.css" type="text/css"/>
<resource src="ltx-book.css" type="text/css"/>
<figure frefnum="Figure 0.1" refnum="0.1" xml:id="Ch0.F1">
<graphics candidates="g\orexine.pdf,g\orexine.svg,g\orexine.pdf,g\orexine.svg" graphic="g/orexine" xml:id="Ch0.F1.g1"/>
<!-- %pdf and svg versions -->
<toccaption><tag close=" ">0.1</tag>Orexin precursor and its primary sequence</toccaption>
<caption><tag close=": ">Figure 0.1</tag>Orexin precursor and its primary sequence</caption>
</figure>
</document>
Please try this: remove the html directory and rerun the latexmlpost command, as you had above, with the destination to --html, and the two --verb's.... There's gotta be a clue in there somewhere!
F:\EigeneDateien\BuchprojektSpringer\XMLtestordner>rmdir /S html
Möchten Sie "html" löschen (J/N)? j
F:\EigeneDateien\BuchprojektSpringer\XMLtestordner>latexmlpost --verb --verb --dest=html/test3.htm test3.xml
latexmlpost (LaTeXML version v0.8.0)
processing started Sun Nov 16 20:09:51 2014
(test3.htm post-processing...
(Scan test3.htm processing... [DBStatus: 3/0 objects]
(CrossRef test3.htm processing... [Filled in 0 glossaryrefs] [Filled in 0 TOCs] [Filled in fragment 2 ids] [Filled in 0 refs] [Filled in 0 RDFa refs] [Filled in 0 bibrefs
(Writer test3.htm processing... 0.01 sec)
Postprocessing complete: No obvious problems
processing finished Sun Nov 16 20:09:51 2014
and the html:
<?xml version="1.0" encoding="UTF-8"?>
<?latexml searchpaths="F:/EigeneDateien/BuchprojektSpringer/XMLtestordner"?>
<?latexml class="book" options="12pt,a4paper"?>
<?latexml package="inputenc" options="utf8"?>
<?latexml package="rotating"?>
<?latexml package="float"?>
<?latexml package="caption"?>
<?latexml package="graphicx"?>
<?latexml RelaxNGSchema="LaTeXML"?>
<document xmlns="http://dlmf.nist.gov/LaTeXML" xml:id="Document">
<resource src="LaTeXML.css" type="text/css"/>
<resource src="ltx-book.css" type="text/css"/>
<figure frefnum="Figure 0.1" refnum="0.1" xml:id="Ch0.F1" fragid="Ch0.F1">
<graphics candidates="g\orexine.pdf,g\orexine.svg,g\orexine.pdf,g\orexine.svg" graphic="g/orexine" xml:id="Ch0.F1.g1" fragid="Ch0.F1.g1"/>
<!-- %pdf and svg versions -->
<toccaption><tag close=" ">0.1</tag>Orexin precursor and its primary sequence</toccaption>
<caption><tag close=": ">Figure 0.1</tag>Orexin precursor and its primary sequence</caption>
</figure>
</document>
I think I am seeing the cause - it is so silly that it is sneaky.
As a rule of thumb, always add --format=html5
to make sure post-processing is producing the right format for you. My guess is that because you are using a non-standard (for LaTeXML) file extension - .htm
, it fails to deduce the format and to use the correct post-processors that you would expect for an HTML5 document.
Hope this helps!
@brucemiller we may add .htm
to the format guessing game, seeing that people are using it. Probably having the exact same behaviour as .html
is a reasonable default.
the output:
F:\EigeneDateien\BuchprojektSpringer\XMLtestordner>rmdir /S html
Möchten Sie "html" löschen (J/N)?
Möchten Sie "html" löschen (J/N)? j
F:\EigeneDateien\BuchprojektSpringer\XMLtestordner>latexmlpost --verb --verb --format=html --dest=html/test3.htm test3.xml
latexmlpost (LaTeXML version v0.8.0)
processing started Sun Nov 16 20:33:08 2014
(test3.htm post-processing...
(Scan test3.htm processing... [DBStatus: 3/0 objects]
(CrossRef test3.htm processing... [Filled in 0 glossaryrefs] [Filled in 0 TOCs] [Filled in fragment 2 ids] [Filled in 0 refs] [Filled in 0 RDFa refs] [Filled in 0 bibrefs]
(Graphics test3.htm processing... [Using graphicspaths: F:/EigeneDateien/BuchprojektSpringer/XMLtestordner, F:\EigeneDateien\BuchprojektSpringer\XMLtestordner]
[Processing F:/EigeneDateien/BuchprojektSpringer/XMLtestordner/g/orexine.svg as key=LaTeXML::Post::Graphics:g\orexine.svg] [Destination \EigeneDateien\BuchprojektSpringer\XMLtestor
dner\html\g\orexine.svg]
(XSLT test3.htm processing...
(Writer test3.htm processing... 0.12 sec)
Postprocessing complete: No obvious problems
processing finished Sun Nov 16 20:33:09 2014
a file \EigeneDateien\BuchprojektSpringer\XMLtestordner\html\g\orexine.svg was not created! maybe missing the F:
the graphic is still not there:
<!DOCTYPE html><html>
<head>
<title></title>
<!--Generated on Sun Nov 16 20:33:09 2014 by LaTeXML (version v0.8.0) http://dlmf.nist.gov/LaTeXML/.-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="LaTeXML.css" type="text/css">
<link rel="stylesheet" href="ltx-book.css" type="text/css">
</head>
<body>
<div class="ltx_page_main">
<div class="ltx_page_content">
<section class="ltx_document">
<figure id="Ch0.F1" class="ltx_figure"><img src="" id="Ch0.F1.g1" class="ltx_graphics" alt="">
<figcaption class="ltx_caption"><span class="ltx_tag ltx_tag_figure">Figure 0.1: </span>Orexin precursor and its primary sequence</figcaption>
</figure>
</section>
</div>
<footer class="ltx_page_footer">
<div class="ltx_page_logo">Generated on Sun Nov 16 20:33:09 2014 by <a href="http://dlmf.nist.gov/LaTeXML/">LaTeXML <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAOCAYAAAD5YeaVAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wKExQZLWTEaOUAAAAddEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIFRoZSBHSU1Q72QlbgAAAdpJREFUKM9tkL+L2nAARz9fPZNCKFapUn8kyI0e4iRHSR1Kb8ng0lJw6FYHFwv2LwhOpcWxTjeUunYqOmqd6hEoRDhtDWdA8ApRYsSUCDHNt5ul13vz4w0vWCgUnnEc975arX6ORqN3VqtVZbfbTQC4uEHANM3jSqXymFI6yWazP2KxWAXAL9zCUa1Wy2tXVxheKA9YNoR8Pt+aTqe4FVVVvz05O6MBhqUIBGk8Hn8HAOVy+T+XLJfLS4ZhTiRJgqIoVBRFIoric47jPnmeB1mW/9rr9ZpSSn3Lsmir1fJZlqWlUonKsvwWwD8ymc/nXwVBeLjf7xEKhdBut9Hr9WgmkyGEkJwsy5eHG5vN5g0AKIoCAEgkEkin0wQAfN9/cXPdheu6P33fBwB4ngcAcByHJpPJl+fn54mD3Gg0NrquXxeLRQAAwzAYj8cwTZPwPH9/sVg8PXweDAauqqr2cDjEer1GJBLBZDJBs9mE4zjwfZ85lAGg2+06hmGgXq+j3+/DsixYlgVN03a9Xu8jgCNCyIegIAgx13Vfd7vdu+FweG8YRkjXdWy329+dTgeSJD3ieZ7RNO0VAXAPwDEAO5VKndi2fWrb9jWl9Esul6PZbDY9Go1OZ7PZ9z/lyuD3OozU2wAAAABJRU5ErkJggg==" alt="[LOGO]"></a>
</div></footer>
</div>
</body>
</html>
Now the SVG image is being processed, and it seems that processing fails silently. Back to @brucemiller on that front, I am still too young of an apprentice when it comes to image post-processing.
But this doesn't look like a valid Windows path:
[Destination \EigeneDateien\BuchprojektSpringer\XMLtestor
dner\html\g\orexine.svg]
Yeah; that's where I started looking; I think I got fooled & sidetracked by the "htm" thing which seemingly skipped graphics completely (good catch). So now I'm back to square 1 (or was it 2? :> )
I am not on my Windows laptop at the moment, will check tomorrow if I am right, but I think you should also use $vol
when you are invoking File::Spec->splitpath
(most importantly here).
You probably want something akin to:
$data{destinationDirectory} = "$vol$dir" || '.';
This is likely the underlying cause behind the malformed path for the image.
Just tested under Windows and I can confirm the observation. $vol$dir
is the absolute path to the directory, while the original full path is "$vol$dir$name"
, where the delimiters are all kept in the $dir
variable, i.e. the volume and name have no slashes or backslashes. So that solves the problem of the missing F:
.
This simple example does not show the picture.
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<img src="F:/EigeneDateien/BuchprojektSpringer/XMLtestordner/bkchem/mevalonate.svg"></img>
</body>
</html>
However when I opened the very same image in firefox, it opens and shows in the Fire... inspector. Is another tag necessary?
<svg id="svg2" xmlns:cdml="http://www.freesoftware.fsf.org/bkchem/cdml" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" height="45.867725" version="1.0" viewBox="0 0 204.08302 61.194033" width="152.92754" inkscape:version="0.48.4 r9939" sodipodi:docname="mevalonate.svg">
<metadata id="metadata56">
<rdf:rdf>
<cc:work rdf:about="">
<dc:format>
image/svg+xml
</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"></dc:type>
<dc:title></dc:title>
</cc:work>
</rdf:rdf>
</metadata>
<defs id="defs54"></defs>
<sodipodi:namedview id="namedview52" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1" objecttolerance="10" gridtolerance="10" guidetolerance="10" inkscape:pageopacity="0" inkscape:pageshadow="2" inkscape:window-width="640" inkscape:window-height="480" showgrid="false" fit-margin-top="0" fit-margin-left="0" fit-margin-right="0" fit-margin-bottom="0" inkscape:zoom="0.22425739" inkscape:cx="175.34466" inkscape:cy="162.01841" inkscape:window-x="0" inkscape:window-y="0" inkscape:window-maximized="0" inkscape:current-layer="svg2"></sodipodi:namedview>
<g id="g4" font-size="12pt" style="font-size:15px;stroke-linecap:round;font-family:Helvetica" transform="translate(-262.50116,-143.10247)">
<g id="g6" style="stroke:#000000;stroke-width:1"></g>
<g id="g12" style="stroke:#000000;stroke-width:1"></g>
<g id="g16" style="stroke:#000000;stroke-width:1"></g>
<g id="g20" style="stroke:#000000;stroke-width:1"></g>
<g id="g24" style="stroke:#000000;stroke-width:1"></g>
<g id="g28" style="stroke:#000000;stroke-width:1"></g>
<g id="g32" style="stroke:#000000;stroke-width:1"></g>
<g id="g36" style="stroke:#000000;stroke-width:1"></g>
<g id="g40" style="stroke:#000000;stroke-width:1"></g>
<text id="text44" font-size="12pt" x="261.29999" y="203.99001" style="font-size:15px;fill:#000000;font-family:helvetica"></text>
<text id="text46" font-size="12pt" x="303.29999" y="154.34" style="font-size:15px;fill:#000000;font-family:helvetica"></text>
<text id="text48" font-size="12pt" x="384.29999" y="153.89" style="font-size:15px;fill:#000000;font-family:helvetica"></text>
<text id="text50" font-size="12pt" x="445.29999" y="203.99001" style="font-size:15px;fill:#000000;font-family:helvetica"></text>
</g>
<cdml:cdml version="0.15">
<cdml:info>
<cdml:author_program version="0.13.0">
BKchem
</cdml:author_program>
</cdml:info>
<cdml:paper crop_margin="10" crop_svg="0" orientation="portrait" replace_minus="0" type="A4" use_real_minus="0"></cdml:paper>
<cdml:viewport viewport="0.000000 0.000000 640.000000 480.000000"></cdml:viewport>
<cdml:standard area_color="" font_family="helvetica" font_size="12" line_color="#000" line_width="1px" paper_crop_margin="10" paper_crop_svg="0" paper_orientation="portrait" paper_type="A4">
<cdml:bond double-ratio="0.75" length="0.7cm" wedge-width="5px" width="6px"></cdml:bond>
<cdml:arrow length="1.6cm"></cdml:arrow>
<cdml:atom show_hydrogens="0"></cdml:atom>
</cdml:standard>
<cdml:molecule id="molecule23488" name="">
<cdml:atom id="atom27772" name="C" valency="4">
<cdml:point x="7.168cm" y="4.229cm"></cdml:point>
</cdml:atom>
<cdml:atom id="atom83148" name="C" valency="4">
<cdml:point x="7.775cm" y="3.879cm"></cdml:point>
</cdml:atom>
<cdml:atom id="atom66152" name="C" valency="4">
<cdml:point x="6.590cm" y="3.879cm"></cdml:point>
</cdml:atom>
<cdml:atom id="atom48347" name="C" valency="4">
<cdml:point x="8.381cm" y="4.229cm"></cdml:point>
</cdml:atom>
<cdml:atom id="atom8750" name="C" valency="4">
<cdml:point x="8.987cm" y="3.879cm"></cdml:point>
</cdml:atom>
<cdml:atom id="atom38067" name="C" valency="4">
<cdml:point x="7.585cm" y="3.242cm"></cdml:point>
</cdml:atom>
<cdml:atom id="atom68781" hydrogens="on" name="O" pos="center-last" valency="2">
<cdml:point x="5.984cm" y="4.229cm"></cdml:point>
</cdml:atom>
<cdml:atom id="atom70270" name="O" pos="center-first" valency="2">
<cdml:point x="6.598cm" y="3.179cm"></cdml:point>
</cdml:atom>
<cdml:atom id="atom34615" hydrogens="on" name="O" pos="center-first" valency="2">
<cdml:point x="8.318cm" y="3.170cm"></cdml:point>
</cdml:atom>
<cdml:atom id="atom48741" hydrogens="on" name="O" pos="center-first" valency="2">
<cdml:point x="9.593cm" y="4.229cm"></cdml:point>
</cdml:atom>
<cdml:bond id="bond62351" bond_width="6.0" center="yes" double_ratio="0.75" end="atom70270" line_width="1.0" start="atom66152" type="n2"></cdml:bond>
<cdml:bond id="bond28339" double_ratio="0.75" end="atom8750" line_width="1.0" start="atom48347" type="n1"></cdml:bond>
<cdml:bond id="bond85410" double_ratio="0.75" end="atom27772" line_width="1.0" start="atom66152" type="n1"></cdml:bond>
<cdml:bond id="bond47805" double_ratio="0.75" end="atom83148" line_width="1.0" start="atom27772" type="n1"></cdml:bond>
<cdml:bond id="bond66316" double_ratio="0.75" end="atom48347" line_width="1.0" start="atom83148" type="n1"></cdml:bond>
<cdml:bond id="bond77121" double_ratio="0.75" end="atom66152" line_width="1.0" start="atom68781" type="n1"></cdml:bond>
<cdml:bond id="bond39123" double_ratio="0.75" end="atom34615" line_width="1.0" start="atom83148" type="n1"></cdml:bond>
<cdml:bond id="bond49236" double_ratio="0.75" end="atom38067" line_width="1.0" start="atom83148" type="n1"></cdml:bond>
<cdml:bond id="bond15048" double_ratio="0.75" end="atom48741" line_width="1.0" start="atom8750" type="n1"></cdml:bond>
</cdml:molecule>
</cdml:cdml>
</svg>
its a problem of firefox that the picture are not shown. In Chrome they are visible! Sorry for the noise. That means you have still to fill the src tag by latexmlpost
What was puzzling about the error messages is that it basically says it's working on that image, but then it should either say that it copied the image, or that there was an error; and we get neither of the latter! I've put in what should have been a redundant error message if it failed to get the image size, in case that's where the problem lie.
But also, deyan is correct about the drive; the puzzle there is why I was using splitpath instead of pathname_split
, which was exactly designed to handle this correctly!
So, anyway, I've just checked in a couple of changes that either will fix the problem, or at least give a little better diagnostic. Please try again! :>
F:\EigeneDateien\BuchprojektSpringer\XMLtestordner>latexml test3.tex --dest=test3.xml
latexml (LaTeXML version v0.8.0)
processing started Tue Nov 18 13:44:22 2014
(Digesting TeX test3...
(Loading d:/latexml/latexml-master/lib/LaTeXML/Package/TeX.pool.ltxml...
(Loading d:/latexml/latexml-master/lib/LaTeXML/Package/eTeX.pool.ltxml... 0.01 sec)
(Loading d:/latexml/latexml-master/lib/LaTeXML/Package/pdfTeX.pool.ltxml... 0.01 sec) 0.40 sec)
(Processing content F:/EigeneDateien/BuchprojektSpringer/XMLtestordner/test3.tex...
(Loading d:/latexml/latexml-master/lib/LaTeXML/Package/LaTeX.pool.ltxml... 0.41 sec)
(Loading d:/latexml/latexml-master/lib/LaTeXML/Package/book.cls.ltxml... 0.03 sec)
(Loading d:/latexml/latexml-master/lib/LaTeXML/Package/inputenc.sty.ltxml...
(Loading d:/latexml/latexml-master/lib/LaTeXML/Package/utf8.def.ltxml... 0.01 sec) 0.02 sec)
(Loading d:/latexml/latexml-master/lib/LaTeXML/Package/rotating.sty.ltxml...
(Loading d:/latexml/latexml-master/lib/LaTeXML/Package/graphicx.sty.ltxml...
(Loading d:/latexml/latexml-master/lib/LaTeXML/Package/graphics.sty.ltxml... 0.01 sec) 0.06 sec) 0.09 sec)
(Loading d:/latexml/latexml-master/lib/LaTeXML/Package/float.sty.ltxml... 0.01 sec)
(Loading d:/latexml/latexml-master/lib/LaTeXML/Package/caption.sty.ltxml... 0.01 sec) 0.72 sec) 1.13 sec)
(Building...
(Loading compiled schema d:/latexml/latexml-master/lib/LaTeXML/resources/RelaxNG/LaTeXML.model... 0.03 sec). 0.10 sec)
(Rewriting... 0.00 sec)
(Finalizing... 0.00 sec)
Conversion complete: No obvious problems.
processing finished Tue Nov 18 13:44:23 2014
F:\EigeneDateien\BuchprojektSpringer\XMLtestordner>latexmlpost test3.xml --form=html5 --dest=test3.htm
latexmlpost (LaTeXML version v0.8.0)
processing started Tue Nov 18 13:44:35 2014
(test3.htm post-processing...
(Scan test3.htm processing...
(CrossRef test3.htm processing...
(Graphics test3.htm processing...
Warning:expected:image Couldn't get usable image for F:/EigeneDateien/BuchprojektSpringer/XMLtestordner/g/orexine.svg
Postprocessing LaTeXML::Post::Graphics test3.htm
(XSLT test3.htm processing...
(Writer test3.htm processing... 0.04 sec)
Postprocessing complete: 1 warning
processing finished Tue Nov 18 13:44:35 2014
gives
<!DOCTYPE html><html>
<head>
<title></title>
<!--Generated on Tue Nov 18 13:44:35 2014 by LaTeXML (version v0.8.0) http://dlmf.nist.gov/LaTeXML/.-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="LaTeXML.css" type="text/css">
<link rel="stylesheet" href="ltx-book.css" type="text/css">
</head>
<body>
<div class="ltx_page_main">
<div class="ltx_page_content">
<section class="ltx_document">
<figure id="Ch0.F1" class="ltx_figure"><img src="" id="Ch0.F1.g1" class="ltx_graphics" alt="">
<figcaption class="ltx_caption"><span class="ltx_tag ltx_tag_figure">Figure 0.1: </span>Orexin precursor and its primary sequence</figcaption>
</figure>
</section>
</div>
<footer class="ltx_page_footer">
<div class="ltx_page_logo">Generated on Tue Nov 18 13:44:35 2014 by <a href="http://dlmf.nist.gov/LaTeXML/">LaTeXML <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAOCAYAAAD5YeaVAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wKExQZLWTEaOUAAAAddEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIFRoZSBHSU1Q72QlbgAAAdpJREFUKM9tkL+L2nAARz9fPZNCKFapUn8kyI0e4iRHSR1Kb8ng0lJw6FYHFwv2LwhOpcWxTjeUunYqOmqd6hEoRDhtDWdA8ApRYsSUCDHNt5ul13vz4w0vWCgUnnEc975arX6ORqN3VqtVZbfbTQC4uEHANM3jSqXymFI6yWazP2KxWAXAL9zCUa1Wy2tXVxheKA9YNoR8Pt+aTqe4FVVVvz05O6MBhqUIBGk8Hn8HAOVy+T+XLJfLS4ZhTiRJgqIoVBRFIoric47jPnmeB1mW/9rr9ZpSSn3Lsmir1fJZlqWlUonKsvwWwD8ymc/nXwVBeLjf7xEKhdBut9Hr9WgmkyGEkJwsy5eHG5vN5g0AKIoCAEgkEkin0wQAfN9/cXPdheu6P33fBwB4ngcAcByHJpPJl+fn54mD3Gg0NrquXxeLRQAAwzAYj8cwTZPwPH9/sVg8PXweDAauqqr2cDjEer1GJBLBZDJBs9mE4zjwfZ85lAGg2+06hmGgXq+j3+/DsixYlgVN03a9Xu8jgCNCyIegIAgx13Vfd7vdu+FweG8YRkjXdWy329+dTgeSJD3ieZ7RNO0VAXAPwDEAO5VKndi2fWrb9jWl9Esul6PZbDY9Go1OZ7PZ9z/lyuD3OozU2wAAAABJRU5ErkJggg==" alt="[LOGO]"></a>
</div></footer>
</div>
</body>
</html>
Where it says "couldn't get usable image", is that the correct path to the image file (except for slashes instead of backslashes)? Is the file readable, or does it have some restricted permission?
Supposedly the slash/backslash difference shouldn't matter, at least for perl itself, but maybe one of the libraries (Image::Size or Image::Magick) is being confused?
the file is always there and readable, no restriction at all.
F:\EigeneDateien\BuchprojektSpringer\XMLtestordner\g>stat orexine.svg
File: "orexine.svg"
Size: 129276 Blocks: 256 IO Block: 4096 reguläre Datei
Device: 4d47ed22h/1296559394d Inode: 1407374883759718 Links: 1
Access: (0666/-rw-rw-rw-) Uid: ( 0/ bk) Gid: ( 0/ UNKNOWN)
Access: 2014-11-12 18:28:52.347656200 +0100
Modify: 2014-10-19 13:00:48.263671800 +0200
Change: 2014-11-12 18:28:52.347656200 +0100
I donot know about libraries. what is to check?
I'm guessing it's a pathname portability issue; I've made some preliminary fixes to pathname processing (will probably have to be even more careful). Let's see if this helps first.
Please do a git pull
and then rerun: remove the html directory for good measure an then rerun using two --verb
on latexmlpost, so we get a clearer indication of the paths being used.
No success ;-)
F:\EigeneDateien\BuchprojektSpringer\XMLtestordner>latexml --verb --verb --dest=test3.xml test3.tex
latexml (LaTeXML version v0.8.0)
processing started Wed Nov 19 14:14:01 2014
(Digesting TeX test3...
(Loading d:/latexml/latexml-master/lib\LaTeXML/Package/TeX.pool.ltxml...
(Loading d:/latexml/latexml-master/lib\LaTeXML/Package/eTeX.pool.ltxml... 0.01 sec)
(Loading d:/latexml/latexml-master/lib\LaTeXML/Package/pdfTeX.pool.ltxml... 0.01 sec) 0.41 sec)
(Processing content F:/EigeneDateien/BuchprojektSpringer/XMLtestordner/test3.tex...
(Loading d:/latexml/latexml-master/lib\LaTeXML/Package/LaTeX.pool.ltxml... 0.44 sec)
(Loading d:/latexml/latexml-master/lib\LaTeXML/Package/book.cls.ltxml... 0.04 sec)
(Loading d:/latexml/latexml-master/lib\LaTeXML/Package/inputenc.sty.ltxml...
(Loading d:/latexml/latexml-master/lib\LaTeXML/Package/utf8.def.ltxml... 0.00 sec) 0.02 sec)
(Loading d:/latexml/latexml-master/lib\LaTeXML/Package/rotating.sty.ltxml...
(Loading d:/latexml/latexml-master/lib\LaTeXML/Package/graphicx.sty.ltxml...
(Loading d:/latexml/latexml-master/lib\LaTeXML/Package/graphics.sty.ltxml... 0.01 sec) 0.06 sec) 0.08 sec)
(Loading d:/latexml/latexml-master/lib\LaTeXML/Package/float.sty.ltxml... 0.00 sec)
(Loading d:/latexml/latexml-master/lib\LaTeXML/Package/caption.sty.ltxml... 0.01 sec) 0.73 sec) 1.14 sec)
(Building...
(Loading compiled schema d:/latexml/latexml-master/lib\LaTeXML/resources/RelaxNG/LaTeXML.model... 0.03 sec). 0.09 sec)
(Rewriting... 0.00 sec)
(Finalizing... 0.00 sec)
Conversion complete: No obvious problems.
processing finished Wed Nov 19 14:14:03 2014
F:\EigeneDateien\BuchprojektSpringer\XMLtestordner>rmdir /S html
Möchten Sie "html" löschen (J/N)? j
F:\EigeneDateien\BuchprojektSpringer\XMLtestordner>latexmlpost --verb --verb --form=html5 --dest=html/test3.html test3.xml
latexmlpost (LaTeXML version v0.8.0)
processing started Wed Nov 19 14:16:26 2014
(test3.html post-processing...
(Scan test3.html processing... [DBStatus: 3/0 objects]
(CrossRef test3.html processing... [Filled in 0 glossaryrefs] [Filled in 0 TOCs] [Filled in fragment 2 ids] [Filled in 0 refs] [Filled in 0 RDFa refs] [Filled in 0 bibrefs]
(Graphics test3.html processing... [Using graphicspaths: F:/EigeneDateien/BuchprojektSpringer/XMLtestordner/, F:\EigeneDateien\BuchprojektSpringer\XMLtestordner]
[Processing F:/EigeneDateien/BuchprojektSpringer/XMLtestordner/g/orexine.svg as key=LaTeXML::Post::Graphics:gorexine.svg] [Destination F:\EigeneDateien\BuchprojektSpringer\XMLtesto
rdner\html\g\orexine.svg]
Warning:expected:image Couldn't get usable image for F:/EigeneDateien/BuchprojektSpringer/XMLtestordner/g/orexine.svg
Postprocessing LaTeXML::Post::Graphics test3.html
(XSLT test3.html processing...
(Writer test3.html processing... 0.37 sec)
Postprocessing complete: 1 warning
processing finished Wed Nov 19 14:16:27 2014
F:\EigeneDateien\BuchprojektSpringer\XMLtestordner>dir html
Datenträger in Laufwerk F: ist Datenlaufwerk_BK
Volumeseriennummer: 4D47-ED22
Verzeichnis von F:\EigeneDateien\BuchprojektSpringer\XMLtestordner\html
19.11.2014 14:16 <DIR> .
19.11.2014 14:16 <DIR> ..
19.11.2014 14:16 24.576 LaTeXML.cache
02.04.2014 00:13 10.847 LaTeXML.css
31.10.2013 00:04 2.347 ltx-book.css
19.11.2014 14:16 1.834 test3.html
4 Datei(en), 39.604 Bytes
2 Verzeichnis(se), 162.757.529.600 Bytes frei
<!DOCTYPE html><html>
<head>
<title></title>
<!--Generated on Wed Nov 19 14:16:27 2014 by LaTeXML (version v0.8.0) http://dlmf.nist.gov/LaTeXML/.-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="LaTeXML.css" type="text/css">
<link rel="stylesheet" href="ltx-book.css" type="text/css">
</head>
<body>
<div class="ltx_page_main">
<div class="ltx_page_content">
<section class="ltx_document">
<figure id="Ch0.F1" class="ltx_figure"><img src="" id="Ch0.F1.g1" class="ltx_graphics" alt="">
<figcaption class="ltx_caption"><span class="ltx_tag ltx_tag_figure">Figure 0.1: </span>Orexin precursor and its primary sequence</figcaption>
</figure>
</section>
</div>
<footer class="ltx_page_footer">
<div class="ltx_page_logo">Generated on Wed Nov 19 14:16:27 2014 by <a href="http://dlmf.nist.gov/LaTeXML/">LaTeXML <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAOCAYAAAD5YeaVAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wKExQZLWTEaOUAAAAddEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIFRoZSBHSU1Q72QlbgAAAdpJREFUKM9tkL+L2nAARz9fPZNCKFapUn8kyI0e4iRHSR1Kb8ng0lJw6FYHFwv2LwhOpcWxTjeUunYqOmqd6hEoRDhtDWdA8ApRYsSUCDHNt5ul13vz4w0vWCgUnnEc975arX6ORqN3VqtVZbfbTQC4uEHANM3jSqXymFI6yWazP2KxWAXAL9zCUa1Wy2tXVxheKA9YNoR8Pt+aTqe4FVVVvz05O6MBhqUIBGk8Hn8HAOVy+T+XLJfLS4ZhTiRJgqIoVBRFIoric47jPnmeB1mW/9rr9ZpSSn3Lsmir1fJZlqWlUonKsvwWwD8ymc/nXwVBeLjf7xEKhdBut9Hr9WgmkyGEkJwsy5eHG5vN5g0AKIoCAEgkEkin0wQAfN9/cXPdheu6P33fBwB4ngcAcByHJpPJl+fn54mD3Gg0NrquXxeLRQAAwzAYj8cwTZPwPH9/sVg8PXweDAauqqr2cDjEer1GJBLBZDJBs9mE4zjwfZ85lAGg2+06hmGgXq+j3+/DsixYlgVN03a9Xu8jgCNCyIegIAgx13Vfd7vdu+FweG8YRkjXdWy329+dTgeSJD3ieZ7RNO0VAXAPwDEAO5VKndi2fWrb9jWl9Esul6PZbDY9Go1OZ7PZ9z/lyuD3OozU2wAAAABJRU5ErkJggg==" alt="[LOGO]"></a>
</div></footer>
</div>
</body>
</html>
Hmm.. it still didn't seem to put the source path into "proper" form with backslashes...
A modern Windows installation should be capable of coping with:
F:/EigeneDateien/BuchprojektSpringer/XMLtestordner/g/orexine.svg
as a path. While we investigate what is wrong with the slashes (will tinker tonight), are we sure this file exists and is indeed a usable image?
It works in pdflatex. I have shown already that the file exists.
Bernhard
Am 19. November 2014 23:55:58 MEZ, schrieb Deyan Ginev notifications@github.com:
A modern Windows installation should be capable of coping with:
F:/EigeneDateien/BuchprojektSpringer/XMLtestordner/g/orexine.svg
as a path. While we investigate what is wrong with the slashes (will tinker tonight), are we sure this file exists and is indeed a usable image?
Reply to this email directly or view it on GitHub: https://github.com/brucemiller/LaTeXML/issues/544#issuecomment-63730311
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
Thanks for that, and thanks for all the patience you have had with debugging this so far, I appreciate that you are taking from your time to help us make LaTeXML better!
However, a perl on Windows 8 can indeed use this path, just checked:
> perl -e "print ((-e 'F:/EigeneDateien/BuchprojektSpringer/XMLtestordner/g/orexine.svg') ? 'found' : 'not found'); "
found
I will now try a sample document that includes this SVG file and see what LaTeXML makes of it.
Yes, the path is perfectly usable (and used). The problem on my machine is that I don't have any of the ImageMagick packages, so this test fails: https://github.com/brucemiller/LaTeXML/blob/master/lib/LaTeXML/Util/Image.pm#L52
I recall from one of the emails Bernhard sent me that he also didn't have ImageMagick installed on his machine. So from here on we are stuck until we find a way to install a Windows Image::Magick for perl, I believe.
My recommendation would be to look for a solution briefly and then close as wontfix. Sorry about the anticlimactic conclusion.
@brucemiller : a more detailed error message explaining why the processing fails would be quite handy I think. Then we can diagnose quicker someone is missing packages.
imagemagick is installed here: 6.8.7-6 Q16 x64 2013-11-28. and the command cpan works:
C:\Users\bk>cpan
cpan shell -- CPAN exploration and modules installation (v2.05)
Enter 'h' for help.
cpan> h
Display Information (ver 2.05)
command argument description
a,b,d,m WORD or /REGEXP/ about authors, bundles, distributions, modules
i WORD or /REGEXP/ about any of the above
ls AUTHOR or GLOB about files in the author's directory
(with WORD being a module, bundle or author name or a distribution
name of the form AUTHOR/DISTRIBUTION)
Download, Test, Make, Install...
get download clean make clean
make make (implies get) look open subshell in dist directory
test make test (implies make) readme display these README files
install make install (implies test) perldoc display POD documentation
Upgrade
r WORDs or /REGEXP/ or NONE report updates for some/matching/all modules
upgrade WORDs or /REGEXP/ or NONE upgrade some/matching/all modules
...
I never thought that I may need a module in perl to install. Do I have?
How do I test that the module Image::Magick is working?
Image::Magick simply won't install cleanly as it has a failing test and for some reason the patch for that test just doesn't make it into Strawberry Perl. It's a messy situation and I tried to solve it a few times before, but finding the maintainers is very difficult.
You can try installing Image::Size first:
cpan -i Image::Size
and if you really want to install Image::Magick, you can force that via:
cpan -T -i Image::Magick
I did that and can confirm the conversion succeeds with copying the image over. So we can probably close the issue here as "wontfix" for Image::Magick. We are aware of the problem, but don't have a clean solution yet.
I finally have access to my Linux again, and installed latexml from Ubuntu with is only vers 0.7. I happened to notice that imagemagick was installed, so with the latest updates of Ubuntu 12.04, I tried to install the module Image::Magick via cpan, but did not succeed. What do you suggest?
On Ubuntu getting Image::Magick is quite well-understood (and described in the installation manual ).
The relevant part is:
sudo apt-get install imagemagick perlmagick
I have Image::Magick working in Ubuntu and still the image is not incorporated. Unfortunately I will be away 24 hrs, but will provide the test then.
. https://github.com/notifications/beacon/AIyh50WFr4hzQ_0iANq6wsRCs2PrIToGks5nPejZgaJpZM4CwPsI.gif
I have a figure:
which does not show up while there is no error message. The relevant text in test1.html formed by
remains empty: <img src="" ...
In Chap3/g/ are both HPAchsen.pdf and HPAchsen.svg and HPAchsen.svg is one candidate mentioned in test1.xml:
The figure as such is there with the caption but the image is lacking. please advise