diff options
author | Arun Isaac | 2021-10-01 15:00:52 +0530 |
---|---|---|
committer | Arun Isaac | 2021-10-01 15:06:52 +0530 |
commit | 525d57be66f4c3ee4396e8042ffba1b5b291bb7c (patch) | |
tree | 52630eaf1564170181d8ee2051954fb8e729a349 | |
parent | df4e79518c6681e117592919782f5b26b2952a55 (diff) | |
download | skribilo-525d57be66f4c3ee4396e8042ffba1b5b291bb7c.tar.gz skribilo-525d57be66f4c3ee4396e8042ffba1b5b291bb7c.tar.lz skribilo-525d57be66f4c3ee4396e8042ffba1b5b291bb7c.zip |
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.
-rw-r--r-- | doc/user/start.skb | 12 |
1 files 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!]).]) |