You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docx format requires you to include the image size. In the case of other image formats, pandoc looks inside the file to determine the image size. Presumably that is possibly too in the case of eps, in which case this could be added. But I'd need to look into the eps format more.
The EPS spec is here: http://partners.adobe.com/public/developer/en/ps/5002.EPSF_Spec.pdf
An EPS file contains a "bounding box" record, but the units seem to have no fixed meaning. (The spec just talks about the default postscript coordinate system, and suggests that this can vary.) I did see someone online saying that the units were points, which we could use.
"%%BoundingBox: llx lly urx ury
[Required] The %%BoundingBox comment specifies the imaginary box that
encloses all marks painted on the page. Specify the integer coordinates in the
default user coordinate system. Negative numbers are allowed."
So - what is the "default user coordinate system"?
"19.1.3 PAGE Resource
This resource contains the x and y coordinates of the document’s page origin
as specified by the Page tool in Adobe Illustrator. The coordinates are in the
default user coordinate system. In this system, the unit length along both axes
is 1/72 inch."
Any EPS image included like
\includegraphics[width=116pt,height=50pt]{circles.eps}
or
\includegraphics{circles.eps}
gets the fixed dimensions "120ptx120pt" in the resulting docx file.
The text was updated successfully, but these errors were encountered: