Skip to Content.
Sympa Menu

texmacs-users - Re: Pasting source code into TeXmacs?

Subject: mailing-list for TeXmacs Users

List archive

Re: Pasting source code into TeXmacs?


Chronological Thread 
  • From: David Allouche <address@hidden>
  • To: address@hidden
  • Subject: Re: Pasting source code into TeXmacs?
  • Date: Sun, 24 Feb 2002 01:16:22 +0100

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.

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;

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?)
--

-- David --



Archive powered by MHonArc 2.6.19.

Top of Page