Hello!

Roger Mason <[email protected]> skribis:

> [email protected] (Ludovic Courtès) writes:
>
>> I think the problem is that ‘d’ here is a string, namely:
>>
>>   "(document #:title …)"
>>
>> whereas ‘evaluate-document’ expects an <ast> object.
>>
>> Instead, you should be doing something like:
>>
>>   (let* ((code (call-with-input-file infile read))
>>          (ast  (primitive-eval code)))
>>     (with-output-to-file …
>>       (lambda ()
>>         (evaluate-document ast e))))
>>
>> See ‘evaluate-ast-from-port’ in (skribilo evaluator) for an example.
>
> Yes, that was it!  I now have a means to begin a document in the outline
> syntax and convert it to the Guile syntax in order to insert objects
> that 'outline' can't handle.  I'm hoping to use this method to build
> documents that obtain data (via Guile) from external sources to
> construct tables and data plots.

Cool, it should be a good fit for this!

> P.S. I have patched Skribilo to provide a working ConTeXt output file
> with a basic 'setup.tex'.  I want to do some code cleanup and more
> extensive testing before submitting a patch.

Nice!  I’ve never even used ConTeXt so your work will be more than
welcome!

Ludo’.

_______________________________________________
Skribilo-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/skribilo-users

Reply via email to