<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El dom, 4 jul 2021 a las 17:15, <_<a href="mailto:johnny7_ger@web.de">johnny7_ger@web.de</a>> escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
is there a way to paste text (from a source such as LibreOffice) into<br>
LyX and keeping the words in italics emphasized?<br>
If not, could such an option be implemented?<br></blockquote><div><br></div><div>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:</div><div><br></div><div>- On Writer, make a copy of the document (don't work on the original!)<br></div><div>- Open the search and replace tool (Ctrl-H)</div><div>- On the Search box, write the following, complete with parenthesis: (.*)</div><div>- 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)</div><div>- On the Replace box, write \emph{$1}</div><div>- Replace</div><div><br></div><div>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. <br></div><div><br></div><div>Of course, for short texts it's not worth doing all that, but for longer texts, it works pretty well.</div><div><br></div><div>Regards,</div><div>Ricardo<br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Thanks.<br>
-- <br>
lyx-users mailing list<br>
<a href="mailto:lyx-users@lists.lyx.org" target="_blank">lyx-users@lists.lyx.org</a><br>
<a href="http://lists.lyx.org/mailman/listinfo/lyx-users" rel="noreferrer" target="_blank">http://lists.lyx.org/mailman/listinfo/lyx-users</a><br>
</blockquote></div></div>