Here is a workaround using atom editor (https://atom.io/) to open the lyx file as a text file:
Find and Replce with Regex option (.* button to top right of Find button) selected.
Find (regex)
\n\\begin_inset
Replace (note space at the beginning)
\n\\begin_inset
Some replacements change ...
Search found 2 matches
- Fri Jan 17, 2020 2:13 pm
- Forum: LyX
- Topic: tex import omits spaces before insets (Lyx 2.3)
- Replies: 1
- Views: 1230
- Fri Jan 17, 2020 1:28 pm
- Forum: LyX
- Topic: tex import omits spaces before insets (Lyx 2.3)
- Replies: 1
- Views: 1230
tex import omits spaces before insets (Lyx 2.3)
When I import a tex file, the resulting lyx file omits the spaces before insets
e.g. where $c\in\mathbb{R}_{\ge0}^{n}$
becomes
where$c\in\mathbb{R}_{\ge0}^{n}$
in the code pane of lyx, and in the source file
where
\begin_inset Formula $c\in\mathbb{R}_{\ge0}^{n}$
\end_inset
rather than
where ...
e.g. where $c\in\mathbb{R}_{\ge0}^{n}$
becomes
where$c\in\mathbb{R}_{\ge0}^{n}$
in the code pane of lyx, and in the source file
where
\begin_inset Formula $c\in\mathbb{R}_{\ge0}^{n}$
\end_inset
rather than
where ...