[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
- [PATCH 0/5] My first few patches, Arun Isaac, 2021/10/01
- [PATCH 5/5] doc: Document the skribilo emacs mode., Arun Isaac, 2021/10/01
- [PATCH 2/5] doc: Replace unreproducible date->string computation.,
Arun Isaac <=
- [PATCH 3/5] doc: Remove redundant footnote., Arun Isaac, 2021/10/01
- [PATCH 4/5] doc: Re-indent and re-fill paragraph., Arun Isaac, 2021/10/01
- [PATCH 1/5] gitignore: Add po/* files., Arun Isaac, 2021/10/01
- Re: [PATCH 0/5] My first few patches, Ludovic Courtès, 2021/10/08