Re: Configuring ox-context

2021-12-24 Thread Jason Ross
On 12/23/21 12:16 PM, Denis Maier wrote: What do you think about using context's structurelevels instead? That would allow users to define their own mappings. Denis That looks like a brilliant solution. I'll have to give it a deeper look to know for sure though - table of contents

Re: Configuring ox-context

2021-12-23 Thread Denis Maier
What do you think about using context's structurelevels instead? That would allow users to define their own mappings. Denis Am 23.12.2021 um 08:24 schrieb juh: Am Mittwoch, dem 22.12.2021 um 10:37 -0800 schrieb Jason Ross: Thank you for bringing this up. I'd like to discuss this a bit with

Re: Configuring ox-context

2021-12-22 Thread juh
Am Mittwoch, dem 22.12.2021 um 10:37 -0800 schrieb Jason Ross: > > Thank you for bringing this up. I'd like to discuss this a bit with > you > before implementing such a feature. > > I'm not sure how an implementation of this would look to the end > user. > ConTeXt has the following system: >

Re: Configuring ox-context

2021-12-22 Thread Jason Ross
On 12/22/21 3:24 AM, juh wrote: In the meantime I debugged my context styles and discovered that ox- context starts with section not with chapters. My styles are always book styles starting at chapter level. *feeling a little dumb* I browsed through the code and found no hint for a book-like

Re: Configuring ox-context

2021-12-22 Thread juh
Hi Ross, Am Dienstag, dem 21.12.2021 um 11:05 -0800 schrieb Jason Ross: > Try `(setq org-context-pdf-process '("context --mode=trimsize %f"))` > to set this as the default. thanks a lot. The team "emacs org-mode ox-context" seems to be quite flexible. :-) In the meantime I debugged my context

Re: Configuring ox-context

2021-12-21 Thread Jason Ross
On 12/21/21 10:56 AM, juh wrote: Am Dienstag, dem 21.12.2021 um 19:36 +0100 schrieb juh Ok, one thing solved. I normally call context with --mode=trimsize to activate the given trimsize. Can I set this in org-mode? When I manually compile test.mkiv I get the right page dimensions but the

Re: Configuring ox-context

2021-12-21 Thread juh
Am Dienstag, dem 21.12.2021 um 19:36 +0100 schrieb juh Ok, one thing solved. I normally call context with --mode=trimsize to activate the given trimsize. Can I set this in org-mode? When I manually compile test.mkiv I get the right page dimensions but the layout is scrambled. Maybe

Re: Configuring ox-context

2021-12-21 Thread juh
On 21.12.21 19:04, Jason Ross wrote: There is a problem on the ConTeXt side of things. ox-context just calls the ConTeXt process on the output file (it's exactly equivalent to calling `context test.mkiv` from the terminal) Very strange. I have to dig deeper. Thanks! juh

Re: Configuring ox-context

2021-12-21 Thread Jason Ross
On 12/21/21 9:55 AM, juh wrote: Yes: %=== % Preset Commands %=== \environment juh.env-garamond \environment

Re: Configuring ox-context

2021-12-21 Thread juh
On 21.12.21 17:19, Jason Ross wrote: Your configuration looks correct to me. Can you verify that the lines     \environment juh.env-garamond     \environment juh.env-garamond-trimsize5-8     \environment juh.env-makeups     \environment juh.env-umbruch     \environment juh.env-heading   

Re: Configuring ox-context

2021-12-21 Thread Jason Ross
On 12/21/21 7:50 AM, juh wrote: Dear all, this configuration does not work. #+begin_src emacs-lisp     (use-package ox-context   :straight (ox-context :type git :host github :repo "Jason-S-Ross/ox-context")     :config     (add-to-list 'org-context-presets-alist '("book" .