[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [skribilo-users] Customising the ConTeXt engine

From: Ludovic Courtès
Subject: Re: [skribilo-users] Customising the ConTeXt engine
Date: Tue, 26 Jan 2016 11:53:20 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Roger Mason <address@hidden> 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

--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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]