Skip to Content.
Sympa Menu

texmacs-users - Re: [TeXmacs] command interruption

Subject: mailing-list for TeXmacs Users

List archive

Re: [TeXmacs] command interruption


Chronological Thread 
  • From: Joris van der Hoeven <address@hidden>
  • To: address@hidden
  • Subject: Re: [TeXmacs] command interruption
  • Date: Mon, 18 Jun 2007 15:34:27 +0200

On Mon, Jun 18, 2007 at 08:18:08PM +0800, Buganini wrote:
> I made a shell script to inserting specified session automatically
> texmacs-session:
> #!/bin/sh
> texmacs -x "(if (no-name?) (make-session \"$1\" (url->string
> (get-name-buffer))))" -x '(session-use-math-input (not
> (session-math-input?)))'
>
> by this I can set "texmacs-session maxima" as maxima's command, and
> "texmacs-session scilab" as for scilab
>
> The problem is:
> If I click on the document before the maxima's prompt shows up, maxima
> session won't be inserted.

You may use the following kind of command

texmacs -x "(begin (lazy-plugin-force) (make-session \"maxima\"
\"default\"))"

The point is that TeXmacs boots is a lazy fashion, so you should always
make sure that the needed functionality is already present.
In the case of plug-ins, this can be done using (lazy-plugin-force),
or, more specifically, using (lazy-plugin-initialize "maxima").

Best wishes, Joris



Archive powered by MHonArc 2.6.19.

Top of Page