Problem with if/else/fi in figure environment

Jürgen Spitzmüller spitz at lyx.org
Tue Feb 4 16:35:43 UTC 2020


Am Dienstag, den 04.02.2020, 17:02 +0100 schrieb Glen Guhr:
> Section 1 works fine. There, I am loading the two pictures, where
> separate figure environments are put after  \if  \else.
> 
> In section2 I am trying to load the very same pictures. There, I need
> to
> switch the pictures within one figure environment, because for both I
> want to use the same caption and labels. Only the picture should be
> switched, depending on the selected \if-condition.

The problem probably is that you use relative paths in ERT (whereas the
file is processed in a temporary directory).

Why not use real graphic insets as in the attached modified example?

Jürgen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Working_example.lyx
Type: application/x-lyx
Size: 7614 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200204/77723780/attachment.lyx>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200204/77723780/attachment.asc>


More information about the lyx-devel mailing list