Hi Ludo', [email protected] (Ludovic Courtès) writes:
> 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): > > ;; 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))) > > 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. Thank you for your reply. I have now modified the context engine to: ;; Insert User customization (let ((s (engine-custom e 'user-style))) (if s (format #t "\\input ~a\n" s) ;; Load Style - default is book (format #t "\\input context-~a.tex\n" (engine-custom e 'document-style)) )) The user can get a context document by providing context customisations in "context-book.tex" or in some '*.tex' file if they use skribilo's user-style option. I made a few other changes too and have been able to generate compilable context files. A possible improvement would be to have skribilo _write_ the default context customisation file "context-book.tex" but I don't know how to do this because I don't know much Guile. I am working on getting skribilo to read org-mode syntax. I want to be able to write a document in org-mode and transform it to context (or other format). I am using a clone of the outline reader as a starting point. I have a question about getting from the outline format to the full skribilo document format. I can see there might be circumstances where I begin a document in outline mode (or org mode) but transform it to the full skribilo format for final editing. I saw the question about this on the mailing list but did not understand the answer. Best wishes, Roger _______________________________________________ Skribilo-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/skribilo-users
