Skip to Content.
Sympa Menu

texmacs-users - Re: [texmacs-users] scheme problem

Subject: mailing-list for TeXmacs Users

List archive

Chronological Thread  
  • From: vincent douce <address@concealed>
  • To: Grégoire Lecerf <address@concealed>
  • Cc: address@concealed
  • Subject: Re: [texmacs-users] scheme problem
  • Date: Thu, 26 Dec 2024 18:28:15 +0100

thanks Gregoire
it is so logical…
how can i have not thougt to it
quasiquoting (with…) [inside the definition] and unquoting the variables there
thanks very much
Vincent


> Le 26 déc. 2024 à 16:45, Grégoire Lecerf
> <address@concealed> a écrit :
>
> Dear Vincent,
>
> I hope that the code below will help.
>
> Best wishes,
> Grégoire.
>
> (define q "0.866")
>
> (define qm "-0.866")
>
> (define (ligne-avec-style x1 x2 y1 y2 width)
> ‘(with "dash-style" "10" "line-width" ,width
> (line (point ,x1 ,y1) (point ,x2 ,y2))))
>
> (insert ‘(small-figure
> (with
> "gr-mode" (tuple "edit" "math-at")
> "gr-frame" (tuple "scale" "1cm" (tuple "0.5gw" "0.5gh"))
> "gr-geometry" (tuple "geometry" "3.5cm" "3.2cm")
> "gr-line-width" "0.5ln"
> (graphics "" ,(ligne-avec-style "-0.5" "-0.5" qm q "0.4ln")))))
>




Archive powered by MHonArc 2.6.24.

Top of Page