emacs-orgmode
[Top][All Lists]
Advanced

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

add-to-list problem with ox-context


From: juh
Subject: add-to-list problem with ox-context
Date: Tue, 18 Jan 2022 13:06:36 +0100

Hi all,

I guess that I am not able to configure ox-context like this:

#+begin_src emacs-lisp
  (use-package ox-context
:straight (ox-context :type git :host github :repo "Jason-S-Ross/ox-context")
    :config
    (setq org-context-pdf-process '("context --mode=trimsize %f"))
    (add-to-list 'org-context-presets-alist
          '("book1" .
            (:literal "\n\\environment juh.env-garamond
       \n\\environment juh.env-garamond-trimsize5.5-8.5
       \n\\environment juh.env-umbruch
       \n\\environment juh.env-layout
       \n\\environment juh.env-ligaturen
       \n\\environment juh.env-heading
       \n\\environment juh.env-deutsch"
             :template "report"
             :snippets ("title-report"))))
    (add-to-list 'org-context-presets-alist
         '("book2" .
            (:literal "\n\\environment juh.env-gentium
       \n\\environment juh.env-gentium-trimsize5.5-8.5
       \n\\environment juh.env-umbruch
       \n\\environment juh.env-layout
       \n\\environment juh.env-ligaturen
       \n\\environment juh.env-heading
       \n\\environment juh.env-deutsch"
             :template "report"
             :snippets ("title-report"))))
                )
#+end_src

While book1 works book2 give the default style of ox-context. So I guess that either I made a mistake (most likely) or somehow org-context-presets-alist don't get more than one additional entry.

TIA
juh



reply via email to

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