mailing-list for TeXmacs Users

Text archives Help


Re: Pasting source code into TeXmacs?


Chronological Thread 
  • From: Adam Warner <address@hidden>
  • To: address@hidden
  • Subject: Re: Pasting source code into TeXmacs?
  • Date: 24 Feb 2002 13:45:48 +1300

On Sun, 2002-02-24 at 13:16, David Allouche wrote:
> On Sunday 24 February 2002 00:45, Adam Warner wrote:
> >
> > What environment do people use to paste source code into TeXmacs? I've
> > tried the code and verbatim environments but both throw away the
> > indenting and carriage returns. Plus the code seems to interact with
> > TeXmacs as well [for example if I paste in this segment: "(if (< (-
> > (length ND0_list) iperiods) t)" then the output becomes: "(if
> > (<expand|(->(define lambdaTech 1.0)"].
>
> It is not a matter of environment. You must specify the import conversion
> (here, verbatim) using Edit->import->verbatim before pasting into TeXmacs.

Thanks again David!

> I think this is a misfeature, since:
>
> 1. default conversion conversion for text pasted from other applications
> should be verbatim, not TeXmacs (that is, mostly no-op) as it is now;

Agreed.

> 2. I believe X clipboard protocol (I do not remember the technical acronym)
> supports some form of content type negociation, so 1. is not incompatible
> with having text copied from other TeXmacs instances use, by default,
> TeXmacs
> conversion. Maybe this would even allow text copied from LyX to be
> automatically pasted using the appropriate conversion (LaTeX?)

That would be clever. I'd like to see the option to force the type of
import type remain though.

Regards,
Adam





Archive powered by MHonArc 2.6.19.

Top of page