Am Sonntag, den 24.03.2019, 18:28 +0100 schrieb Kornel Benko:
> I am haunting another issue, connected with the reorganisation.
>
> 1.) Using es/Curricula_Vitae/Modern_CV.lyx for test.
> In the layout 'Photo' we use a path to CV-image. To use this in tests
> (whch
> are made outside of the source dir) we have to convert the path to
> absolute
> value. This does not work anymore, because the path (according to
> latex
> output) seems to be truncated and thus not found.
> Trying to copy the CV-image.png to some safe name and position near
> the tested
> document. The resulting file name is for instance xx_CV-
> image_ds2PMqki.png.
> Now the compilation fails, because the name contains underlines (it
> is
> transfered to latex as 'xx\_CV-image\_ds2PMqki')
>
> ! LaTeX Error: File `tmp\_pdf5\_es\_Modern\_CV/xx\_CV-
> image\_ZjVwbfuH' not
> foun
> LaTeX.cpp (920): line: 88
> Desc: LaTeX Error: File `tmp\_pdf5\_es\_Modern\_CV/xx\_CV-
> image\_ZjVwbfuH'
> not foun
>
> The relevant exported latex snippet is:
> \photo[64pt][0.4pt]{tmp\_pdf5\_es\_Modern\_CV/xx\_CV-
> image\_ZjVwbfuH}
>
> (We don't have problems with \includegraphics{}'
>
> > Jürgen
>
> Can we do something to enamble underlines in this paths?
Yes, we should probably set
PassThru 1
in the Photo style (or at least PassThruChars _)
I.e.
Style Photo
CopyStyle CVStyle
LatexName photo
LabelString "Photo:"
+ PassThru 1
Argument 1
LabelString "Height"
Tooltip "Height the photo is resized to"
PassThru 1
EndArgument
Argument 2
LabelString "Thickness"
Tooltip "Thickness of the surrounding frame"
PassThru 1
EndArgument
End
This command takes an image file name or path, so I suppose PassThru is
the right choice.
Jürgen
>
> Kornel
signature.asc
Description: This is a digitally signed message part
