Pasting latex in a lyx file

Andrew Parsloe ajparsloe at gmail.com
Wed Apr 7 22:44:13 UTC 2021


On 8/04/2021 3:14 am, Paul A. Rubin wrote:
> On 4/7/21 10:14 AM, Mario D wrote:
>> Hi all,
>>
>> sometime I need to paste some latex code inside a lyx file.
>> When I do this, I lose all the formatting and, in particular,  I lose 
>> all new lines: this means that what I end up with in my red box in 
>> lyx is a complete mess which requires a lot of editing.
>>
>> This is quite annoying: am I missing something which results in this 
>> behaviour?
>>
>> Thank you
>>
> Have you tried Edit > Paste Special > Paste from LaTeX? Note that this 
> is used to paste directly into the LyX document, /not/ into an ERT box 
> (ctrl+L).
>
> Paul

I usually just use Ctrl+Shift+V to paste text (including lines of LaTeX) 
that preserves new lines. It works in an ERT box. (I wasn't aware of the 
Paste from LateX option.  In fact, there's quite a bit here that has 
changed since I last carefully looked at what was offered by the 
different menus.)

Andrew

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20210408/7d5a9ebb/attachment.html>


More information about the lyx-users mailing list