Same figure entered twice

Daniel xracoonx at gmx.de
Wed Jun 17 01:59:59 UTC 2020


On 2020-06-17 01:56, Rich Shepard wrote:
> I've no idea how I managed to enter the same figure twice, but I did.
> 
> LyX finds the same place when I search for both Figure 1 and Figure 2 using
> the Navigate -> Figures menu.
> 
> Looking at the .lyx file in emacs I think the following encompasses both
> instances:
> 
> \begin_layout Standard
> The entity-relationship (E-R) diagram (Figure \begin_inset CommandInset ref
> LatexCommand ref
> reference "fig: e-r diagram"
> plural "false"
> caps "false"
> noprefix "false"
> 
> \end_inset
> 
> )
> \begin_inset Float figure
> wide false
> sideways false
> status collapsed
> 
> \begin_layout Plain Layout
> \align center
> \begin_inset CommandInset ref
> LatexCommand ref
> reference "fig: E-R diagram"
> plural "false"
> caps "false"
> noprefix "false"
> 
> \end_inset
> 
> 
> \begin_inset Graphics
>      filename erd.pdf
>      width 75theight%
>      BoundingBox 60bp 60bp 685bp 815bp
>      clip
> 
> \end_inset
> 
> 
> \end_layout
> 
> 
> \begin_layout Plain Layout
> \begin_inset Caption Standard
> 
> \begin_layout Plain Layout
> \begin_inset CommandInset label
> LatexCommand label
> name "fig: E-R diagram"
> 
> \end_inset
> 
> The OpenEDMS E-R diagram.
>   Each table stores observations, the results of data collection (sampling)
>   events for each category of data.
>   The categories do not depend on each other except that all observations
>   are related to a location in the Sites table.
>   The weather data are independent of the other data because weather 
> stations
>   frequently are separate from biological, chemical, and physical data.
> \end_layout
> 
> \end_inset
> 
> 
> \end_layout
> 
> How do I remove one and leave the other? It doesn't matter to me which 
> label
> is left; they're the same figure and the same caption.
> 
> I suppose I could just drop the float and re-create it but I'm not sure 
> that would
> lose both of them.
> 
> TIA,
> 
> Rich

Looks like the snipped is not well-formed lyx code (e.g. has a stray 
\begin_layout tag). Can you reproduce a minimal example as a lyx-file?

Daniel



More information about the lyx-users mailing list