Re: scheme problem
vincent douce <[email protected]> Thu, 26 Dec 2024 18:28:15 +0100
| Newsgroups | gmane.editors.texmacs.user |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> 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"))))) >