> On 2011-02-26, Dean Montgomery wrote: >> I'm trying to copy and Paste LyX source view to moodle (Firefox). I >> add and extra $ at the beginning and end of the TeX code and Moodle >> will render it as a proper formula. However for some reason the LyX >> Source view window adds some HTML + CSS formating and shows up as a >> line of code right above the rendered formula: p, li { white-space: >> pre-wrap; } > > Strange. I never realized this. > Are you sure that LyX adds the HTML/CSS? > Does this also happen, if you paste into a "normal" text editor?
Yes I can paste to a plain text editor, then re-copy it to clipboard then it will paste without html formatting into Moodle/Drupal. Cont... >> This also happens if I paste source code from LyX view source window >> into Drupal. Is there a way to have LyX not copy html source to >> clipboard? > > You might try to copy from the buffer. At least here on my Linux > machine, formulas are exported as LaTeX code. Ok I found it works copying from the main window instead of the source view window in LyX. This resolves the problem. Thanks.