skribilo-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [skribilo-users] Math in skribilo


From: Ludovic Courtès
Subject: Re: [skribilo-users] Math in skribilo
Date: Tue, 24 Apr 2012 18:56:34 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.93 (gnu/linux)

Hi!

Roger Mason <address@hidden> skribis:

> the fragment
>
> ,(eq '(= phi (/ (+ 1 (sin 2)) 2)))
>
> writes
>
> {\textit{\begin{math}\varphi\end{math} = (1 + 0.909297426825682) / 2}}
>
> into a LaTeX document.  How do I prevent Guile from interpreting (sin 2)?

Hmm, the way it’s currently implemented, eq.scm has to be modified along
these lines:

diff --git a/src/guile/skribilo/package/eq.scm 
b/src/guile/skribilo/package/eq.scm
index bc9980a..b763f7d 100644
--- a/src/guile/skribilo/package/eq.scm
+++ b/src/guile/skribilo/package/eq.scm
@@ -159,6 +159,12 @@ a symbol representing the mathematical operator denoted by 
@var{m} (e.g.,
   ;; Taken from http://en.wikipedia.org/wiki/Order_of_operations .
   '((expt . 2)
     (sqrt . 2)
+    (sin . 2)
+    (cos . 2)
+    (tan . 2)
+    (acos . 2)
+    (asin . 2)
+    (atan . 2)
 
     (* . 3)
     (/ . 3)
Can you confirm that it works for you?

Thanks,
Ludo’.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]