Paste text with italics

Ricardo Berlasso rgb.mldc at
Sun Jul 4 16:59:27 UTC 2021

El dom, 4 jul 2021 a las 17:15, <_johnny7_ger at> escribió:

> Hello,
> is there a way to paste text (from a source such as LibreOffice) into
> LyX and keeping the words in italics emphasized?
> If not, could such an option be implemented?

As Scott pointed out, right now it's not possible on a direct way, but you
can use LibreOffice's own tools to "tag" text in italic and then use the
"paste as LaTeX" option on LyX. It goes like this:

- On Writer, make a copy of the document (don't work on the original!)
- Open the search and replace tool (Ctrl-H)
- On the Search box, write the following, complete with parenthesis: (.*)
- With the cursor still on the search box, enable "Regular Expressions"
and, under Format, select Italics (you'll see the word Italic bellow the
search box)
- On the Replace box, write \emph{$1}
- Replace

You'll see that all the italic text will be surrounded with the \emph{·}
tag. Now, you can copy the text to the clipboard and go to LyX → Edit →
Paste Special → Paste as LaTeX.

Of course, for short texts it's not worth doing all that, but for longer
texts, it works pretty well.


> Thanks.
> --
> lyx-users mailing list
> lyx-users at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the lyx-users mailing list