1

It seems I have lots of questions that either aren't explained anywhere, or that I don't know the right search term to find them! This time, I'm not sure how one is supposed to remove an instant preview block from the LyX editor.

I put an instant-preview block around an entire float block, but apparently it can't preview that (which makes sense) so I put one inside the float block, which does work, but now my float block is surrounded by a black border in the editor, and I'd like to get rid of that (especially because something about this arrangement of multiple nested previews crashed LyX once earlier, and I'd like it not to crash again). I found the "dissolve inset" button in the context menu, but that only seems to get rid of the float block, which I want to keep.

1 Answer 1

1

Three possibilities:

Dissolve inset

Dissolve inset (available via right click) does what you want, you just need to be careful where the cursor is placed. Two options for cursor placement that work here:

  • Before and outside the preview inset.
  • After the figure inset, inside the preview inset.

I suppose one could say that dissolve inset acts on the inset to the right of the cursor.

Backspace

As scottkosty mentioned in his comment: With the cursor inside the preview inset, at the very start (before the figure inset), you can hit the backspace key to delete the preview inset.

Cut and paste

Select the figure inset, cut it, delete the now empty preview inset, paste the figure inset back in.

In keyboard shortcuts, if you place the cursor inside the outer preview inset, just before the figure inset: Shift + to select the figure. Ctrl + X to cut. Del (or backspace) to delete empty preview. Ctrl + V to paste figure back in.

9
  • I was hoping there'd be a way to just remove the preview block without doing that, but I suppose that's not too difficult. Thanks!
    – Hearth
    May 25, 2018 at 17:02
  • @Felthry Updated my answer. May 25, 2018 at 17:07
  • 1
    If the cursor is just inside the preview inset but outside the figure inset, you can do "Backspace".
    – scottkosty
    May 25, 2018 at 17:25
  • @Felthry If this answers your question, please click the "Green checkmark" to accept the answer.
    – scottkosty
    May 25, 2018 at 17:26
  • 1
    @scottkosty It wasn't quite satisfactory at first, but now I think it is, so I'm accepting it. Thank you, Torbjørn and Scott!
    – Hearth
    May 25, 2018 at 20:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .