From 525d57be66f4c3ee4396e8042ffba1b5b291bb7c Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 1 Oct 2021 15:00:52 +0530 Subject: doc: Replace unreproducible date->string computation. 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!]).]) -- cgit v1.2.3