skribilo-users
[Top][All Lists]
Advanced

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

[PATCH 2/5] doc: Replace unreproducible date->string computation.


From: Arun Isaac
Subject: [PATCH 2/5] doc: Replace unreproducible date->string computation.
Date: Sat, 2 Oct 2021 01:03:22 +0530

The date->string computation is unreproducible. A slightly different
version of the documentation is built each time. Also, the output of
date->string is locale dependent, and does not render correctly in all
locales.

* doc/user/start.skb (Dynamic Documents)[Simple Computations]: Replace
unreproducible date->string computation with a square root
computation.
---
 doc/user/start.skb | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/doc/user/start.skb b/doc/user/start.skb
index 401aca0..99554bc 100644
--- a/doc/user/start.skb
+++ b/doc/user/start.skb
@@ -162,17 +162,17 @@ presents here the kind of documents that can be created 
with Skribilo.])
       (p [In this section we present how to introduce a simple
 computation into a document. For instance, the following sentence
 
-,(disp [Document creation date: ,(date->string (current-date))])
+,(disp [sqrt(2) = ,(sqrt 2)])
 
-is generated with the following piece of code (using ,(srfi-ref 19)):
+is generated with the following piece of code:
 
 ,(prgm :language skribe [
-\[Document creation date: \,(date->string (current-date))\]
+\[sqrt(2) =  \,(sqrt 2)\]
 ])
 
-Here, we use the Skribilo function ,(code "date") to compute the date to
-be inserted in the document. In general, any valid Scheme expression
-is authorized inside a ,(code ",(...)") construct,(footnote
+Here, we use the Scheme function ,(code "sqrt") to compute the square
+root to be inserted in the document. In general, any valid Scheme
+expression is authorized inside a ,(code ",(...)") construct,(footnote
 [Any valid GNU Guile Scheme code may be used inside ,(code ",(...)")
 expressions!]).])
 
-- 
2.33.0




reply via email to

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