mailing-list for TeXmacs Users

Text archives Help


Re: How to set default width for images?


Chronological Thread 
  • From: Giovanni Piredda <address@hidden>
  • To: address@hidden
  • Subject: Re: How to set default width for images?
  • Date: Sat, 18 Sep 2021 12:04:14 +0000


On 18.09.21 13:56, Giovanni Piredda wrote:


Perhaps checking if the tree has the script-label output in a loop till it has could be the way to write the function, but I have not been able to make it work yet. I have tried with

(define (image-set-default-size)
  (if (equal? (tree-label (cursor-tree)) 'script-busy)
      (begin (usleep 250000)
             (image-set-default-size))
      (let ((t (find-image (cursor-tree))))
                   (set-image-size t))))

but TeXmacs hangs.



Maybe because it either executes Scheme or it execuets Python.

Followups on TeXmacs-dev ;-)




Archive powered by MHonArc 2.6.19.

Top of page