Roger Mason <[email protected]> skribis:

> I wish to customise the context engine using pre-defined styles.  I call
> skribilo on a document document like this:
>
> skribilo --reader=outline -t context --custom=user-style=manuscript.tex -o \
> test-org-skribilo.tex test-org-skribilo.skb
>
> The output ConTeXt document contains the preamble:
>
> % interface=en output=pdftex
> %%%% -*- TeX -*-
> %%%% File automatically generated by Skribilo 0.9.3
>
> \setupinteraction[state=start]
> \setupbodyfont[roman,11pt]
> \setupcolors[state=start]
> \input skribe-context-book.tex
> \input manuscript.tex
>
> I thought the customisation would _replace_ the default \input ... to give:
>
> ...
> \setupcolors[state=start]
> \input manuscript.tex
> ...
>
> What am I doing wrong?

Nothing!  :-)

Currently the ‘document’ writer in the ‘context’ engine does this (see
skribilo/engine/context.scm):

--8<---------------cut here---------------start------------->8---
             ;; Load Style
             (format #t "\\input skribe-context-~a.tex\n"
                     (engine-custom e 'document-style))
             ;; Insert User customization
             (let ((s (engine-custom e 'user-style)))
               (when s (format #t "\\input ~a\n" s)))
--8<---------------cut here---------------end--------------->8---

So it really just inserts the user-style.

But I realize we’re indeed lacking the skribe-context-*.tex files,
making the thing unusable (illustrating that this engine has had no
testing since it was imported from Skribe…)

For now I would suggest that you simply remove the line that generates
the offending \input line.

From there, if you’re a ConTeXt user, it would be nice if you could see
whether other pieces are missing.  Looking at Skribe 1.2l, which was
probably the last Skribe release, I don’t see skribe-context-*.tex
either.

Thanks,
Ludo’.

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

Reply via email to