LyXHow to maintain italics when pasting text from elsewhere?

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
insipidtoast
Posts: 128
Joined: Wed Jul 04, 2012 5:34 pm

How to maintain italics when pasting text from elsewhere?

Post by insipidtoast »

I need to copy and paste documents that I have alread written in word. Many of the words are italicized throughout the various documents.

When I copy the documents and then paste them into Lyx the italics are gone and those words just appear as normal text.

Is there a command I can enter into the preamble in order to preserve italics from pasted words?
FYI:
I'm using windows with LyX 2.0 and MiKTeX 2.9
I'm designing a book using the Koma-script class

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

scottkosty
Site Moderator
Posts: 542
Joined: Sat Sep 01, 2012 6:38 am

How to maintain italics when pasting text from elsewhere?

Post by scottkosty »

insipidtoast wrote:I need to copy and paste documents that I have alread written in word. Many of the words are italicized throughout the various documents.

When I copy the documents and then paste them into Lyx the italics are gone and those words just appear as normal text.
I am not aware of any way to do this. There is a way to do the "opposite" (turn formatted text into unformatted text):
Edit > Paste Special > Unformatted Text

This might make for a nice feature request:
http://www.lyx.org/trac
(it's very easy to register and post)
insipidtoast wrote: Is there a command I can enter into the preamble in order to preserve italics from pasted words?
Creative thinking! This is a good place to stop and ask yourself "is this a LaTeX issue or a LyX issue?" The answer is that it's a LyX issue. The LaTeX preamble is for LaTeX. The closest thing for LyX for what the LaTeX preamble is to LaTeX is Document Settings > Local Layout.
insipidtoast
Posts: 128
Joined: Wed Jul 04, 2012 5:34 pm

Re: How to maintain italics when pasting text from elsewhere

Post by insipidtoast »

I guess I should mention for anyone else who comes across this thread, that while italics are not maintained. You can highlight the text and hit ctrl+e to make italics.

That's quicker than entering code or selecting italics from the drop down menu.
FYI:
I'm using windows with LyX 2.0 and MiKTeX 2.9
I'm designing a book using the Koma-script class
Post Reply