Hello, I have developed a ConTeXt exporter for Org Mode. It is available at https://github.com/Jason-S-Ross/ox-context The exporter provides custom environments for each document element in an effort to make customization easier, in contrast to the Pandoc exporter which uses built-in environments for document elements. I welcome any feedback. Thanks, Jason
Hi Jason,
Jason Ross writes:
> Hello,
>
> I have developed a ConTeXt exporter for Org Mode. It is available at
> https://github.com/Jason-S-Ross/ox-context
>
> The exporter provides custom environments for each document element
> in an effort to make customization easier, in contrast to the Pandoc
> exporter which uses built-in environments for document elements.
>
> I welcome any feedback.
Congratulations on your excellent work. I am not a daily ConTeXt user, and I'm
afraid I can't help much. But I think a native exporter to ConTeXt
could be an important addition to Org. It could be interesting for users
who want to discover this powerful alternative to LaTeX (within the TeX
ecosystem), as well as for users who want high-quality pdf output without
the need for get caught up in the complexity of LaTeX packages, since
ConTeXt has a more monolithic conception than LaTeX.
Very interesting and promising, in any case.
Best regards,
Juan Manuel
Dear Jason,
this is excellent news, thanks for your work! I always wondered why
there is no Org exporter for ConTeXt which seemed such an obvious
target -- can't wait to try it out!
best regards,
András
On Wed, 4 Aug 2021 at 21:44, Juan Manuel Macías <maciaschain@posteo.net> wrote:
>
> Hi Jason,
>
> Jason Ross writes:
>
> > Hello,
> >
> > I have developed a ConTeXt exporter for Org Mode. It is available at
> > https://github.com/Jason-S-Ross/ox-context
> >
> > The exporter provides custom environments for each document element
> > in an effort to make customization easier, in contrast to the Pandoc
> > exporter which uses built-in environments for document elements.
> >
> > I welcome any feedback.
>
> Congratulations on your excellent work. I am not a daily ConTeXt user, and I'm
> afraid I can't help much. But I think a native exporter to ConTeXt
> could be an important addition to Org. It could be interesting for users
> who want to discover this powerful alternative to LaTeX (within the TeX
> ecosystem), as well as for users who want high-quality pdf output without
> the need for get caught up in the complexity of LaTeX packages, since
> ConTeXt has a more monolithic conception than LaTeX.
>
> Very interesting and promising, in any case.
>
> Best regards,
>
> Juan Manuel
>
>
>
[-- Attachment #1: Type: text/plain, Size: 1195 bytes --] > Am 04.08.2021 um 18:01 schrieb Jason Ross <jasonross1024@gmail.com>: > > Hello, > > I have developed a ConTeXt exporter for Org Mode. It is available at > https://github.com/Jason-S-Ross/ox-context > > The exporter provides custom environments for each document element > in an effort to make customization easier, in contrast to the Pandoc > exporter which uses built-in environments for document elements. > > I welcome any feedback. This is great news since I’m moving to ConTeXt for new documents.) Thanks for your work. I tried it on some small documents and it worked great. There are two minor issues: - ox-context does not honour #+options: toc: nil or too: 1 Since it is possible to add chapter TOCs later, it might be a good idea to omit the main TOC or limit it to one level. - I couldn’t find a way to change the paper size. There is ;; US letter paper ("paper-letter" . "\\setuppapersize[letter]") in the code, but it doesn’t appear in the output, and I prefer the a-sizes (especially 2 x a5 on a4) Do you prefer to receive comments here or should I use the githup tracker in the future? Greetings Axel [-- Attachment #2: ECM1.org --] [-- Type: application/octet-stream, Size: 298 bytes --] #+options: toc: nil #+title: ECM 1 * First asdf * Second asdf * Third asdf ** Third first asdf ** Third second asdf ** Third third asdf *** Third third first asdf *** Third third second asdf *** Third third third asdf **** Thirs third third first asdf **** Third third third last asdf
> There are two minor issues: > > - ox-context does not honour #+options: toc: nil or too: 1 > Since it is possible to add chapter TOCs later, > it might be a good idea to omit the main TOC or limit it to one level. This is an excellent catch. Not sure how this slipped by over the months but I will fix this ASAP. > - I couldn’t find a way to change the paper size. > There is > ;; US letter paper > ("paper-letter" . "\\setuppapersize[letter]") > in the code, but it doesn’t appear in the output, and I prefer the a-sizes (especially 2 x a5 on a4) To set the paper size in a particular document, add the following to the document header: #+CONTEXT_HEADER: \setuppapersize[A4] The following code will create a "Snippet" for a4 paper size: (add-to-list 'org-context-snippets-alist '("paper-a4" . "\\setuppapersize[A4]") t) You can then add the setup command to a document with the following: #+CONTEXT_SNIPPETS: paper-a4 The following will change the settings for the article template: (let ((article-preset (cdr (assoc "article" org-context-presets-alist)))) (plist-put article-preset :snippets (cons "paper-a4" (plist-get article-preset :snippets)))) Alternatively, the article template can be modified without declaring a snippet first with the following: (let ((article-preset (cdr (assoc "article" org-context-presets-alist)))) (plist-put article-preset :literal (concat (plist-get article-preset :literal) "\n\\setuppapersize[A4]"))) > Do you prefer to receive comments here or should I use the githup tracker in the future? Specific bugs like the table of contents setting probably belong in the github tracker. General questions like "how do I change to A4 paper" could go either way. Thank you for the feedback! Jason
> Am 06.08.2021 um 17:04 schrieb Jason Ross <jasonross1024@gmail.com>:
>
> > - I couldn’t find a way to change the paper size.
> > There is
> > ;; US letter paper
> > ("paper-letter" . "\\setuppapersize[letter]")
> > in the code, but it doesn’t appear in the output, and I prefer the a-sizes (especially 2 x a5 on a4)
>
> To set the paper size in a particular document, add the following to the
> document header:
>
> #+CONTEXT_HEADER: \setuppapersize[A4]
Thanks for the answer.
I would suggest going in a different direction.
I’ll post a suggestion on GitHub once I figured out what I want to suggest.
Greetings
Axel
Am 04.08.2021 um 18:01 schrieb Jason Ross:
> Hello,
>
> I have developed a ConTeXt exporter for Org Mode. It is available at
> https://github.com/Jason-S-Ross/ox-context
>
> The exporter provides custom environments for each document element
> in an effort to make customization easier, in contrast to the Pandoc
> exporter which uses built-in environments for document elements.
>
> I welcome any feedback.
>
> Thanks,
> Jason
>
>
Thanks, Jason. That's really awesome.
Denis