Is it possible to compile europasscv.lyx using ps2pdf or dvipdfmx or
dviluatex? When I try it, I get an error "cannot determine size of
graphic..."

Stefan (the author of europasscv.lyx) was kind enough to take a look,
reproduce the errors I got, and give a detailed explanation, which I
paste below. Is there anything we should be doing differently? If not,
we will just ignore these particular export tests for the ctests.

<below are Stefan's comments, sent in a private email but with
permission to forward to the list>

The compilation errors may be traced back to the 'europasscv.cls' file,
in which several vector graphic logos are included as pdf files, e.g.:
@line 352:
  \includegraphics[width=0.6\ecv@logowidth]{europasslogo2013.pdf}

To my knowledge the dvips latex/graphics engine is, among others,
not able to determine the graphics size of various picture formats,
including the PDF format, that lack a specific bounding box
specification like the following as metadata:
        %%BoundingBox: 0 0 595 842

Apparently, there are at least two workarounds for these issues, all
of which will probably require tampering with the europasscv Latex
class definition:

  1. Define a bounding box for each included PDF graphic, e.g.:
        \includegraphics[width=0.6\ecv@logowidth,bb=0 0 595 842]
        {europasslogo2013.pdf}
  2. Convert the SVG/PDFs to the eps format and include them instead:
        $ convert europasslogo2013.svg europasslogo2013.eps
        $ grep -i bounding europasslogo2013.eps
          %%BoundingBox: -0 -0 595 842
          %%HiResBoundingBox: 0 0 595.266 842
          %%PageBoundingBox: 0 0 595 842
     And within the europasscv.cls file change the corresponding
     inclusions:
     \includegraphics[width=0.6\ecv@logowidth]{europasslogo2013.eps}

Since my Latex specific knowledge is rather limited, I am not aware
of a method to modify an installed class depending on the output engine
used through LyX or a way to re-declare \includegraphics
occurrences in the Preamble in order to include specific bounding box
arguments.

<End of Stefan's comments>

Best,

Scott

Reply via email to