From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OMxgHYlPDWHUXwAAgWs5BA (envelope-from ) for ; Fri, 06 Aug 2021 17:04:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id aC4UGYlPDWGxfwAAB5/wlQ (envelope-from ) for ; Fri, 06 Aug 2021 15:04:41 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 89FD01D57D for ; Fri, 6 Aug 2021 17:04:40 +0200 (CEST) Received: from localhost ([::1]:56622 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mC1Oo-0005jP-0s for larch@yhetil.org; Fri, 06 Aug 2021 11:04:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mC1OQ-0005jG-3T for emacs-orgmode@gnu.org; Fri, 06 Aug 2021 11:04:14 -0400 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]:41653) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mC1OM-00043k-Fa for emacs-orgmode@gnu.org; Fri, 06 Aug 2021 11:04:13 -0400 Received: by mail-pl1-x633.google.com with SMTP id z3so7434130plg.8 for ; Fri, 06 Aug 2021 08:04:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=sds/F95hbUvuowICm1DlMqZjq0AYQnnG7pL63Sd5JqM=; b=Z+fRWhXMkr672GDidMaulbheEFsd4KQbef/MaQ0L2tNB2AGInYf+O1/qlNSMIKwYn/ PGA5/hiaLsyzR465PMw4EBlGNQVt8dgMk8VQ+yZRXSjyaNt7b4qHnL234bvytKn43inR ZX2g5b8v6FfNnXmAsh+ZJIZFwE+DOgrwLu7ZIrQpgXuHDyQpJ3NpDfGCjS1mQyqBcmX6 3E4/QhqdaXtGY0WHJGDimn2FkXSSUDBVBrv0RgZ6WjkzhJbmN56wqe+Kx7ClcQ6it0QG N561qcRQGMgyb9PYRntjFtfzO9d9hyK/ipapNZhCpmwEqPhk5pfqPyzkreAKfqUbNeYB svrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=sds/F95hbUvuowICm1DlMqZjq0AYQnnG7pL63Sd5JqM=; b=h1opL9rNpFtaNq+KlvV3BGCvc9r64vfqdI0Z5QmqpzmLkfbcFAWub4vyCqOgfPMfPb 2Rfzz5veSlRPRwJJCX6MzaCoAbWFzqKM0573Y5osPuce0aZk5xrzyLIBQaDQLeq+J914 ydvY2xXR8FIXdvwFujZ8CAdQ11IyqI6OeEYCjTdpr+spcMmhgG1xuP+hS7ApJ+cRrm+n N0gpSjZoq4lX59FYgUoxH7Pm9Li7zGHx6YmumLhmclPWwNBB8qr6OrPNKwctkP4SKUTj n+Ofe66tER9j9HVnmovmMMLq8JwUXGzInVwT0HxcwCIM7FVHhCP91DTeCCCPUPjiQJUU UvTg== X-Gm-Message-State: AOAM531Q6v1E722savRKxZe0vb4omYNRoDsbMCsrW6/9pAcHrwfPC9Eg W9e9nGjztWLDgkEeoARwUfyLwGUFvZ0= X-Google-Smtp-Source: ABdhPJyrknu6f5li/aePBSp40Kvmw+jtumUOtiZVmSFZlrymW5B/W/NEwbE3LkTYVTrU0nIeHTUVxQ== X-Received: by 2002:a63:5802:: with SMTP id m2mr334280pgb.171.1628262247900; Fri, 06 Aug 2021 08:04:07 -0700 (PDT) Received: from [192.168.1.124] (c-71-59-145-34.hsd1.or.comcast.net. [71.59.145.34]) by smtp.gmail.com with ESMTPSA id v63sm10664441pgv.59.2021.08.06.08.04.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 06 Aug 2021 08:04:07 -0700 (PDT) Subject: Re: ConTeXt exporter for Org Mode To: emacs-orgmode@gnu.org References: <5A3DD97F-AFA0-4A5A-A62A-3A7BDA822689@axelkielhorn.de> From: Jason Ross Message-ID: <8a1dbafb-aa3b-0e0b-3e50-b88a580cd9da@gmail.com> Date: Fri, 6 Aug 2021 08:04:06 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <5A3DD97F-AFA0-4A5A-A62A-3A7BDA822689@axelkielhorn.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::633; envelope-from=jasonross1024@gmail.com; helo=mail-pl1-x633.google.com X-Spam_score_int: -44 X-Spam_score: -4.5 X-Spam_bar: ---- X-Spam_report: (-4.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, NICE_REPLY_A=-2.619, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: org-mode@axelkielhorn.de Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1628262280; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=sds/F95hbUvuowICm1DlMqZjq0AYQnnG7pL63Sd5JqM=; b=NqtA4Ueb5hSylWAs4dOAjQ5y/gh+0Z2H5QxolHS8Su7bIJSM1pWZ8kNW9jlnJNlc3kP8fR OpFmvfKc8v5E6Q90LJGcfSJ2RnpOgwPTDF1PJm/gpVWJD3yKxpy/sTyZOJw3HRBxiLzcqT OU6fXmj/zcIjOFWgEp+yI+hssZuBG0BU/ITSzCCTQ57XLTzIFE0RxvV1OeeqW3aOduDLG3 NYPBJrSVHxe8VlbRQLgNMHySSWb3nLrHKu8O6C5+mOpoZ0syz/MpodxuwLd+5fLIHgfaj+ 6vGmMpwq18v6VSNByXMUBIyBVNX92RR5dXihPaMivORLHjJHLmuw6lbROLZA5g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628262280; a=rsa-sha256; cv=none; b=MqT7fQS8O9qO+r+LBMftthZk5CrSbtocrDM1z1SdMM+fbLgRUs8Ver8RqSf10tiFp/LTDX 1cqzbteZH4skJ3KKiwYM/Uwbj5Sc4L6Cf7nNZkF6ok23Cq2MsQZodDcmHccI0ewMgudiXB KAoTI4EayTWwPszIMF5Pdj1My/F4NNu551VqhH+RN9rOc2xy89ceI8nP7rgP9h/KLa6Kic bQuhTqLc2o8qR07K0T5NvI02fXo3EuzToC5aUMnqPty/B5sIN5cAuhDA2riJMM7zTwQCQo ltIOXeKo7jCaxpipChJ11hl+q39+Rzquq6bZHm1MxeH3zpNJQkHaJhDF8UoTiA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Z+fRWhXM; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Z+fRWhXM; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 89FD01D57D X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: gEbAB5r0LFH2 > 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