emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* ConTeXt exporter for Org Mode
@ 2021-08-04 16:01 Jason Ross
  2021-08-04 19:43 ` Juan Manuel Macías
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Jason Ross @ 2021-08-04 16:01 UTC (permalink / raw)
  To: emacs-orgmode

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ConTeXt exporter for Org Mode
  2021-08-04 16:01 ConTeXt exporter for Org Mode Jason Ross
@ 2021-08-04 19:43 ` Juan Manuel Macías
  2021-08-05 10:23   ` András Simonyi
  2021-08-06  9:27 ` Axel Kielhorn
  2021-08-09  8:06 ` Denis Maier
  2 siblings, 1 reply; 7+ messages in thread
From: Juan Manuel Macías @ 2021-08-04 19:43 UTC (permalink / raw)
  To: Jason Ross; +Cc: orgmode

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 




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ConTeXt exporter for Org Mode
  2021-08-04 19:43 ` Juan Manuel Macías
@ 2021-08-05 10:23   ` András Simonyi
  0 siblings, 0 replies; 7+ messages in thread
From: András Simonyi @ 2021-08-05 10:23 UTC (permalink / raw)
  To: Juan Manuel Macías; +Cc: orgmode, Jason Ross

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
>
>
>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ConTeXt exporter for Org Mode
  2021-08-04 16:01 ConTeXt exporter for Org Mode Jason Ross
  2021-08-04 19:43 ` Juan Manuel Macías
@ 2021-08-06  9:27 ` Axel Kielhorn
  2021-08-06 15:04   ` Jason Ross
  2021-08-09  8:06 ` Denis Maier
  2 siblings, 1 reply; 7+ messages in thread
From: Axel Kielhorn @ 2021-08-06  9:27 UTC (permalink / raw)
  To: Org-Mode Mailing List

[-- 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ConTeXt exporter for Org Mode
  2021-08-06  9:27 ` Axel Kielhorn
@ 2021-08-06 15:04   ` Jason Ross
  2021-08-07  8:56     ` Axel Kielhorn
  0 siblings, 1 reply; 7+ messages in thread
From: Jason Ross @ 2021-08-06 15:04 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: org-mode


 > 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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ConTeXt exporter for Org Mode
  2021-08-06 15:04   ` Jason Ross
@ 2021-08-07  8:56     ` Axel Kielhorn
  0 siblings, 0 replies; 7+ messages in thread
From: Axel Kielhorn @ 2021-08-07  8:56 UTC (permalink / raw)
  To: Org-Mode Mailing List



> 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ConTeXt exporter for Org Mode
  2021-08-04 16:01 ConTeXt exporter for Org Mode Jason Ross
  2021-08-04 19:43 ` Juan Manuel Macías
  2021-08-06  9:27 ` Axel Kielhorn
@ 2021-08-09  8:06 ` Denis Maier
  2 siblings, 0 replies; 7+ messages in thread
From: Denis Maier @ 2021-08-09  8:06 UTC (permalink / raw)
  To: Jason Ross, emacs-orgmode

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



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-08-09  8:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-04 16:01 ConTeXt exporter for Org Mode Jason Ross
2021-08-04 19:43 ` Juan Manuel Macías
2021-08-05 10:23   ` András Simonyi
2021-08-06  9:27 ` Axel Kielhorn
2021-08-06 15:04   ` Jason Ross
2021-08-07  8:56     ` Axel Kielhorn
2021-08-09  8:06 ` Denis Maier

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).