emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: juh <juh+org-mode@mailbox.org>
To: org-mode-email <emacs-orgmode@gnu.org>
Subject: add-to-list problem with ox-context
Date: Tue, 18 Jan 2022 13:06:36 +0100	[thread overview]
Message-ID: <9415fe7b-003d-0f13-52ec-d6176503628e@mailbox.org> (raw)

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	other threads:[~2022-01-18 13:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9415fe7b-003d-0f13-52ec-d6176503628e@mailbox.org \
    --to=juh+org-mode@mailbox.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).