emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jason Ross <jasonross1024@gmail.com>
To: emacs-orgmode@gnu.org
Cc: org-mode@axelkielhorn.de
Subject: Re: ConTeXt exporter for Org Mode
Date: Fri, 6 Aug 2021 08:04:06 -0700	[thread overview]
Message-ID: <8a1dbafb-aa3b-0e0b-3e50-b88a580cd9da@gmail.com> (raw)
In-Reply-To: <5A3DD97F-AFA0-4A5A-A62A-3A7BDA822689@axelkielhorn.de>

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

  '("paper-a4" . "\\setuppapersize[A4]")

You can then add the setup command to a document with the following:


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)

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


  reply	other threads:[~2021-08-06 15:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2021-08-07  8:56     ` Axel Kielhorn
2021-08-09  8:06 ` Denis Maier

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:

  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=8a1dbafb-aa3b-0e0b-3e50-b88a580cd9da@gmail.com \
    --to=jasonross1024@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=org-mode@axelkielhorn.de \


* 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


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