mailing-list for TeXmacs Users

Text archives Help


Re: Linux live CD with TeXmacs


Chronological Thread 
  • From: Enrique Perez-Terron <address@hidden>
  • To: address@hidden
  • Subject: Re: Linux live CD with TeXmacs
  • Date: 05 Jun 2003 19:01:20 +0200
  • Organization:

On Thu, 2003-06-05 at 03:58, Salman Khilji wrote:
> >
> > No only you wish that!
> >
>
> Actually I don't think that I am the only one wishing that!
>
> The reason I posted earlier about running teXmacs in debug was that I
> wanted
> to investigate what it would take to:
>
> 1) modify TeX itself to enable WYSIWYG
> 2) Steal fon't drawing and misc code from TeXmacs and create a
> cross-platform
> Qt based WYSIWYG TeX/LateX editor.
> 3) Get rid of TeXmacs typesetting code and replace it with modified version
> of
> TeX compiled as a shared object.
>

1. Make TeX become a coroutine, i.e, let it have a separate stack.
2. Find a way of marking the start of paragraphs in the TeX input.
It doesn't have to be paragraph beginnings, any suitable event
inside TeX that happens three-twenty times per page or so will do.
3. Save the entire state of the TeX process before each paragraph.
4. When a paragraph of the TeX input changes, reload the TeX state
saved at the start of the paragraph, and call TeX.
5. Have TeX call the main program at the start of the next paragraph.
6. The main program then saves TeX's state, and calls TeX again to
process the next paragraph.
8. When reaching a paragraph below what is being displayed, discard any
saved states for the rest of the document. If the user moves the
cursor down the document, run TeX on every paragraph skipped over.
9. Some TeX inputs will leave the TeX state unchanged except that
certain counters are incremented by amounts that do not depend on the
start conditions. As an optimization, develop a theory of such
inputs and write a program that recognizes them. When such data is
present in the input file, do not discard states associated with
later points in the file just because of changes to portions of the
input ahead of such data. Instead perform the relevant additions
to the counters.

That's easy :)

> The new editor's native file-format would be that of TeX. Meaning that
> someone could take a *.tex file and edit it directly instead of doing
> conversions.
>
> Yes TeXmacs may run under cygwin, but cygwin is not the answer. Its too
> messy
> to work with. I would rather have a native windows binary done with either
> wxWindows or Qt.
>
> Salman

Regards, Enrique




Archive powered by MHonArc 2.6.19.

Top of page