Dear Sebastien,

On Mon, Aug 19, 2013 at 9:43 PM, Sebastian Kranz
<[email protected]> wrote:
> I wanted to ask if perhaps, it could be possible to add a Lyx command that
> allows to copy selected Lyx text containing math and text as Latex code. To
> be more precise, when I paste copied Lyx text in a text editor it shall be
> correct Latex code including $ signs.
>
I gave it more thought and I think that one thing that is worth
requesting on our bugtracker (
http://www.lyx.org/trac/wiki/BugTrackerHome ), to avoid it getting
forgotten on the ML, is the following:
- in the Source pane, in the "Current paragraph" combo add a 'Current
inset' item
- and lower, add a button to 'Copy' currently displayed code (or
perhaps through a different UI solution, such as a custom c-menu in
Source)

I assume that to make this generally useful functionality come alive,
there would be a need to add an LFUN that copies the source code of
current {inset, paragraph, etc.} for the selected 'Format' to
clipboard, thus satisfying your original request. This could look
like:
copy-source pdflatex inset

or:
copy-source lyxhtml paragraph

Regards,
Liviu

Reply via email to