[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [skribilo-users] How to use emit-sui
From: |
Vladimir Zhbanov |
Subject: |
Re: [skribilo-users] How to use emit-sui |
Date: |
Mon, 5 Dec 2016 12:55:22 +0300 |
On 12/4/16, Roger Mason <address@hidden> wrote:
> Hello,
>
> I'm trying to compile this document:
>
> =============================================
> (document :title [Various Links]
>
> (chapter :title [A Section]
>
> (p [The first link points to an external web page.
> Here we point to a ,(ref :url "http://slashdot.org/"
> :text [Slashdot]) web page. The second one points to
> the second ,(ref :chapter "A Second Section" :text
> [section]) of that document.])
>
> (p [This is another paragraph. It contains no useful
> information, but I want to see if it can be formatted like text,
> rather than like a program. Given that I'm writing text, this seems a
> reasonable expectation.] ))
>
> (chapter :title "A Second Section"
>
> (p [The last link points to the first
> ,(ref :skribe "user.sui" :chapter "Introduction"
> :text [chapter]) of the Skribilo User Manual.])))
> ===============================================
>
> to html. The command line invocation was:
>
> skribilo --custom=emit-sui='#t' -t html -o Html/test_3.html test_3.skb
>
> The result was:
>
> ===============================================
> invalid SUI form: #<eof>
>
> Call stack:
> In ice-9/boot-9.scm:
> 171: 19 [with-throw-handler srfi-34 ...]
> In ../../../skribilo-0.9.3/src/guile/skribilo.scm:
> 425: 18 [skribilo "--custom=emit-sui=#t" "-t" ...]
> In ice-9/boot-9.scm:
> 867: 17 [call-with-input-file "test_3.skb" ...]
> In ice-9/r4rs.scm:
> 172: 16 [with-input-from-port #<variable 2975ab20 value: #<input: file
> /dev/pts/1>> ...]
> In ../../../skribilo-0.9.3/src/guile/skribilo.scm:
> 150: 15 [doskribe #<module (#{ g1883}#) 29578048>]
> In ../../../skribilo-0.9.3/src/guile/skribilo/evaluator.scm:
> 134: 14 [evaluate-document-from-port #<input: test_3.skb 7> # # ...]
> In ice-9/boot-9.scm:
> 2401: 13 [save-module-excursion #<procedure 2973c378 at
> ../../../skribilo-0.9.3/src/guile/skribilo/evaluator.scm:89:3 ()>]
> In ../../../skribilo-0.9.3/src/guile/skribilo/evaluator.scm:
> 100: 12 [#<procedure 2973c378 at
> ../../../skribilo-0.9.3/src/guile/skribilo/evaluator.scm:89:3 ()>]
> In unknown file:
> ?: 11 [eval (document #:title (quasiquote #) ...) #<module (#{ g1883}#)
> 29578048>]
> In ice-9/eval.scm:
> 387: 10 [eval # #]
> 387: 9 [eval # #]
> 387: 8 [eval # #]
> 387: 7 [eval # #]
> 387: 6 [eval # #]
> In ../../../skribilo-0.9.3/src/guile/skribilo/package/base.scm:
> 1066: 5 [%ref-internal #<<location> 696026216 "test_3.skb":18:2> #:class
> ...]
> In ../../../skribilo-0.9.3/src/guile/skribilo/sui.scm:
> 126: 4 [load-sui "user.sui"]
> In ice-9/boot-9.scm:
> 102: 3 [#<procedure 287edf40 at ice-9/boot-9.scm:97:6 (thrown-k . args)>
> srfi-34 #]
> In ../../../skribilo-0.9.3/src/guile/skribilo/condition.scm:
> 153: 2 [abort 1]
> 136: 1 [show-stack-trace]
> In unknown file:
> ?: 0 [make-stack #t]
> ===============================================
If I invoke the same command with your text, I have another error
with similar backtrace:
user.sui: not found in path '(".")'
Call stack:
...
Just a guess, probably the file 'user.sui' is empty (?)
I would suggest to `locate user.sui', look if it is valid, and try
to insert the full path to it in your file.
--
Vladimir