Skip to Content.
Sympa Menu

texmacs-users - Re: [TeXmacs] Please help me to create a Scheme script

Subject: mailing-list for TeXmacs Users

List archive

Re: [TeXmacs] Please help me to create a Scheme script


Chronological Thread 
  • From: Victor Porton <address@hidden>
  • To: Massimiliano Gubinelli <address@hidden>
  • Cc: François Poulain <address@hidden>, "address@hidden" <address@hidden>
  • Subject: Re: [TeXmacs] Please help me to create a Scheme script
  • Date: Thu, 31 Oct 2013 20:26:20 +0200
  • Envelope-from: address@hidden

I have corrected the parentheses, but Ctrl+U keeps to underline text despite
of the fact that I've remapped this keyboard shortcut to call
(my-refresh-buffer) instead.

What's yet wrong?

(kbd-map (:mode in-math-not-hybrid?)
("|" "|")
("@ /" "<emptyset>")
("x tab tab" "<times>")
("o tab tab" "<circ>")
)

(use-modules (generic document-edit)
(generic generic-menu)
(texmacs menus file-menu))

(define (my-refresh-buffer)
(begin
(init-page-medium "paper")

(generate-all-aux)
(inclusions-gc)
(wait-update-current-buffer)

(generate-all-aux)
(inclusions-gc)
(wait-update-current-buffer)

(generate-all-aux)
(inclusions-gc)
(wait-update-current-buffer)

(generate-all-aux)
(inclusions-gc)
(wait-update-current-buffer)

(generate-all-aux)
(inclusions-gc)
(wait-update-current-buffer)

(generate-all-aux)
(inclusions-gc)
(wait-update-current-buffer)

(init-page-medium "papyrus")
)
)

(kbd-map ("C-U" (my-refresh-buffer)))


31.10.2013, 16:16, "Massimiliano Gubinelli" <address@hidden>:
> I think you have a problem with parenteses in your scheme code.
> max
>
> On 31 oct. 2013, at 15:15, Victor Porton <address@hidden> wrote:
>
>>  31.10.2013, 14:49, "François Poulain" <address@hidden>:
>>>  Le Thu, 31 Oct 2013 14:43:12 +0200,
>>>  Victor Porton <address@hidden> a écrit :
>>>>   What's wrong?
>>>  s/my-refresh-buffer/(my-refresh-buffer)
>>>
>>>  Moreover you may have to load modules with something like.
>>>
>>>  (use-modules (generic document-edit)
>>>               (generic generic-menu)
>>>               (texmacs menus file-menu))
>>  (use-modules (generic document-edit)
>>              (generic generic-menu)
>>              (texmacs menus file-menu))
>>
>>  (define (my-refresh-buffer)
>>   (begin
>>     (init-page-medium "paper")
>>
>>     (generate-all-aux)
>>     (inclusions-gc)
>>     (wait-update-current-buffer))
>>
>>     (generate-all-aux)
>>     (inclusions-gc)
>>     (wait-update-current-buffer))
>>
>>     (generate-all-aux)
>>     (inclusions-gc)
>>     (wait-update-current-buffer))
>>
>>     (generate-all-aux)
>>     (inclusions-gc)
>>     (wait-update-current-buffer))
>>
>>     (generate-all-aux)
>>     (inclusions-gc)
>>     (wait-update-current-buffer))
>>
>>     (generate-all-aux)
>>     (inclusions-gc)
>>     (wait-update-current-buffer)
>>
>>     (init-page-medium "papyrus"))
>>  )
>>
>>  On start of TeXmacs:
>>
>>  $ command texmacs
>>  TeXmacs] Loading corktounicode
>>  TeXmacs] Loading cork-unicode-oneway
>>  TeXmacs] Loading tmuniversaltounicode
>>  TeXmacs] Loading symbol-unicode-oneway
>>  TeXmacs] Loading symbol-unicode-math
>>
>>  TeXmacs] Fatal error, no active view
>>
>>  TeXmacs] Fatal unrecoverable error, no active view
>>
>>  --
>>  Victor Porton - http://portonvictor.org

--
Victor Porton - http://portonvictor.org



Archive powered by MHonArc 2.6.19.

Top of Page