From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2LG0JR8V22HAoAAAgWs5BA (envelope-from ) for ; Sun, 09 Jan 2022 18:02:23 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id KLuAHh8V22GvQQEAG6o9tA (envelope-from ) for ; Sun, 09 Jan 2022 18:02:23 +0100 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 E70582B970 for ; Sun, 9 Jan 2022 18:02:22 +0100 (CET) Received: from localhost ([::1]:41868 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n6baG-0008O3-Tz for larch@yhetil.org; Sun, 09 Jan 2022 12:02:21 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58376) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6bXa-0008Mw-9n for emacs-orgmode@gnu.org; Sun, 09 Jan 2022 11:59:34 -0500 Received: from [2a00:1450:4864:20::42a] (port=41693 helo=mail-wr1-x42a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n6bXY-0004Gz-Ls for emacs-orgmode@gnu.org; Sun, 09 Jan 2022 11:59:34 -0500 Received: by mail-wr1-x42a.google.com with SMTP id v6so22240339wra.8 for ; Sun, 09 Jan 2022 08:59:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fU4J6UMNQtpkPvtqP2SlRTdPXLCy/x4DhqLEQUYwZ8Y=; b=O61+l1tLYtXcw8ZIJP7Y1KdOAhkljfhHhKqvfp8QSxxS8+BILj1vaVn+yBu3UWA0jY zFBhQwVfRPacONHiQH+XJB3ZlABqMRl55duw46gQcWBGEGWbiNh5muM7KHjA47y++V2O pHvqctjqsGyqY/ftCilVPtEaMYZCjfEtEuBIoF2dUDLH901Ucr3x9ZaM2pF3ONfhiOgb dNPs3adLDBBw4c3xeF+XdVveZnFYT3YEcfqLzbFv7m5yQrXIYLhc/6wpBA5JRC1JMYVj VdJ70Zeh3LHivtCCnGxjz2lKEChAhdLneFwTFfbi8pWmKEqMSJffpRA9x8ZT5h62A1/k gvsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fU4J6UMNQtpkPvtqP2SlRTdPXLCy/x4DhqLEQUYwZ8Y=; b=M+i/VUF/3BWcKiEcF6wjT21eIvEf8HwsrHtoO85DF3ICKOZCCg+jXSFCeyAzKVAmPZ dEBp0x1VemRF+1cej94is1GtasSBuiASoxeuLjnlWphrUTjyjLr40X8k8tPY9J1DfIn3 ah9yDtvrjEbyK1wmAqLUrxLx2Zt8HjgKWVB66zuZvf6HHvvFxZ7vuLQn5i6S7XFbNZFH XhkiTs90TGPZy6i4AmkfYQdqn/XS1ZCJQnF/T/72/Uwk8Mn8pYlzgvcj51p1BUJWvwQL C9zgvm8AN+aIUBvFVZS7mqxkch40Ca4AWZtxO0Xmsv0XjzF3AcG+g0wNIWtaFyjmQrNl 3tiQ== X-Gm-Message-State: AOAM531BE4jeeeEQnA98Ma0JmwaLeQjgXVENBhTG3glMjS2NPbU3xU5K xyTqEVXDci93JbuXyIZc683u5DZimG5LE92kvKY= X-Google-Smtp-Source: ABdhPJyaUOnIUvX4eKSHLYHy2YFt4ohoS6Jz2jnhKweNKnH0xdcBeWA3ANluAqexx3bsliQ/8RYjIAN1M1MgLGk7zvY= X-Received: by 2002:adf:e706:: with SMTP id c6mr12945425wrm.116.1641747571089; Sun, 09 Jan 2022 08:59:31 -0800 (PST) MIME-Version: 1.0 References: <87ee5kwwht.fsf@posteo.net> <877dbcwtf7.fsf@posteo.net> <561D83E2-47BF-4AC2-B2AD-24B08D614845@health.ucsd.edu> In-Reply-To: From: Kaushal Modi Date: Sun, 9 Jan 2022 11:58:55 -0500 Message-ID: Subject: Re: Way to mark contents of an Org special block as verbatim? To: "Berry, Charles" Content-Type: text/plain; charset="UTF-8" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::42a (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=kaushal.modi@gmail.com; helo=mail-wr1-x42a.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?Q?Juan_Manuel_Mac=C3=ADas?= , orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641747743; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=fU4J6UMNQtpkPvtqP2SlRTdPXLCy/x4DhqLEQUYwZ8Y=; b=WszfxUmGClFqeGXCFoDuh0/2SUj0P9MD96yZFMd+ZD3JLuqJfZnUgG+FvomTBYyaDHgHBT cBJtu3htyRj7HOa4OKjOsP2+uIfaFFiP6F1hUeF+7lMvhnPzRW1gHp9s5iYQyvRiSJHLCY MWk5OpxzIhHdHeeqQMJvG3QRk3nP7Ct8r8T+yMjLJsico+vcL/Z5KABN/GQnWz4Rm4LwKI bQeMbbm7DOZ+NLODDPBip5o+l+goMUu0QNcl/LFq96A+EpEzVpkTHGsPD3I40ftFk7fPfe seFFPgFxZgBXhh026+jUCp5az7tatXkXC6wMPPoxrpX6+jkSAl00HnqGo1T9VQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641747743; a=rsa-sha256; cv=none; b=hGueqtR41uK0L6hgToUjkLhRho0t3oFagYs2YRQn+VWU2NcipZiaI8Wec7voe6ioawKUUV wizzdrxm46ZY/t5Jef8cSxvHMEyYCpQdVixaHpPmUd8Xz0iEC8Uyihq6QP4fBeAQ5K8kz9 IsbfYFfAuYFhRpIt02UO1I8dTCiOmQByruROpzhXPpXTE7zOOQeDbCStjFSqP18EVduPvK Fw3jVhlm7sxuy2y5TcQFmRPn+etV6JpOo0cF+QWJ3ijwUQQwhTZrrGTcHd0tQTN0X140QW OgNo67mOrCp/MYBYOrCUA8CJCNRKBJn41zHjMeeDJIh/oLTrL75FLGq89yeO8w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=O61+l1tL; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.31 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=O61+l1tL; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: E70582B970 X-Spam-Score: -3.31 X-Migadu-Scanner: scn1.migadu.com X-TUID: pXsM7d7ftYFW > On Sat, Jan 8, 2022 at 10:01 PM Berry, Charles wrote: Hi Charles, I used your minimal example to show the issue I am seeing when using ox-md as the base exporter. ===== #+property: header-args :results none :exports none :eval never-export #+options: toc:nil * Define newmd :noexport: Eval below to define a minimal "newmd" exporter: #+begin_src emacs-lisp ;; minimal backend with md parent (org-export-define-derived-backend 'newmd 'md :translate-alist '((special-block . org-newmd-special-block))) ;; special block transcoder (defun org-newmd-special-block (special-block contents info) "Newmd special block transcoder." (let ((type (org-element-property :type special-block))) (if (equal type "katex") (format "{{<%s>}}\n%s{{}}\n" type contents type) ;; not `katex' so default to md transcoder (org-export-with-backend 'md special-block contents info)))) #+end_src * Test block for exporting #+begin_katex E = -J \sum_{i=1}^N s_i s_{i+1} #+end_katex * Do export :noexport: Eval below to export this buffer using the ~newmd~ exporter: #+begin_src emacs-lisp (org-export-to-buffer 'newmd "*Org NEW LATEX Export*" nil nil nil :body-only) #+end_src ===== 1. Eval the block in first heading 2. Eval the block in second heading to export Exporter buffer content: ===== # Test block for exporting {{}} E = -J ∑i=1^N s\_i si+1 {{}} ===== How do we disable Org from transforming this: E = -J \sum_{i=1}^N s_i s_{i+1} to this: E = -J ∑i=1^N s\_i si+1