3

I want to copy some text from MathOverflow, that contains mathematical formulas, to LyX. Currently the text looks like this:

So, we have $2r = 2rr+rl$ and $2l = 2ll+rl$.

How can I automatically convert all the text between $ symbols to LyX formulas?

1
  • 1
    This feature has been requested for a while (the ticket is 7 years old) and was finally implemented by Georg Baum for LyX 2.1. In LyX 2.1 you can go to Edit > Paste Special > Paste From LaTeX. If you happen to use Ubuntu, it's very easy to use 2.1beta2 simultaneously with your current version of LyX without any conflict. – scottkosty Nov 20 '13 at 17:24
1

As far as I know you have to do it manually, but in a short way:

  • Copy that line and insert it into LyX
  • Mark the $2r = 2rr+rl$ with (!) the two $
  • hit Insert->Math->Inline

that will convert that expression into inline math code.

4
  • OK, but what do I do if I have tens of them? Is there a way to convert all of them automatically? – Erel Segal-Halevi Nov 20 '13 at 17:29
  • 1
    only when they are all in an external file which is then included or as an alternative: Hit CTRL-L and insert the equations as ERT. Looks a bit weird but works – user2478 Nov 20 '13 at 17:34
  • OK, I put everything inside Ctrl+L and it works, thanks. – Erel Segal-Halevi Nov 21 '13 at 9:32
  • @ErelSegalHalevi you might also want to put the ERT in an insert > Preview box. This depends on your preference. – scottkosty Nov 22 '13 at 0:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.