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 OMVTDkFQ2mFEHwEAgWs5BA (envelope-from ) for ; Sun, 09 Jan 2022 04:02:25 +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 iIwqB0FQ2mE2vQAAG6o9tA (envelope-from ) for ; Sun, 09 Jan 2022 04:02:25 +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 539B4219AE for ; Sun, 9 Jan 2022 04:02:24 +0100 (CET) Received: from localhost ([::1]:42910 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n6OTN-00042f-3r for larch@yhetil.org; Sat, 08 Jan 2022 22:02:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6OST-0003zR-HF for emacs-orgmode@gnu.org; Sat, 08 Jan 2022 22:01:25 -0500 Received: from mx0a-00395d01.pphosted.com ([148.163.133.170]:8202) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6OSQ-00086w-7T for emacs-orgmode@gnu.org; Sat, 08 Jan 2022 22:01:25 -0500 Received: from pps.filterd (m0173171.ppops.net [127.0.0.1]) by mx0a-00395d01.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 2092BpZX020859; Sun, 9 Jan 2022 03:01:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucsd.edu; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=campus; bh=duwmue6dj8URuM1vrMjjp52ik9AHBEcwhEWaHCVBEO4=; b=Yj2zNoBpXGsmHeNnvyAAbOxTNGrm4uqzElZeKaD4DUoDR2s/JfB1g6NR1GeYMAKZhFHB VQlYkQ7vZnA0xMmxZ+7N7KEztyRMGMuwbbbo1nxQtM/B+KR7XETGfGMCq2LQdCyB5Lv1 ZZbMfkDtVidZR5zP+zyovaj2yN0/jfoMdUh7a1iZFKmM2+hQ3neQnmQMlXqqZQYigAva aM6+7y1YMZ2xd57h3H6gw8WXnlCy4f80C6BZDxQo/U6LgeHlR92uuImsSP6ihHK9JAeS AA9Cw1skvkWVOyUbXeI7LV1KAp1ZUbCSQ7Sfz+QTzg8ylxvK0gGMGHY0r9tVD839mySR 7w== Received: from secdlpezp05.ucsd.edu ([40.112.251.180]) by mx0a-00395d01.pphosted.com (PPS) with ESMTPS id 3df0pnh8xa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 09 Jan 2022 03:01:17 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BKhH99v6J6Sc5DU4Z2EsdTWJhOXbunSTMJG6NI7MnSXxyD0LT8E0RWVCPjuA9wVnbg9i4DY0WR8J0SdA1KcbImCudNv4+XXu+UVuUXxOX/XTUPCUdpTrw8tO5WXA6ta0vMsuoS5lkZ+aDUkyezgNLU9gk1gJmsUJ/n4v1zShkQuX8FKYSVV1H825gnJElQyW7C7mp4CVnD9Y+QN/3IKLVsGWhVTyWoHphhQ2wFTHiAA/S9w3excRf7Q1urJQbGTKrInqRuqRZ/ccgfKsW1yTVvPPFnXXCrpw4a6uLILxUf/dOSxmO9rsMYrnYsWri38PXYASoCBbvdr7DH4kcHPZCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=duwmue6dj8URuM1vrMjjp52ik9AHBEcwhEWaHCVBEO4=; b=Pud2CnjrYSfyO4n3xUtfaDB05u7PvaUDIgPlm2IZZnjQVeBu73BryPcUAhCf0YTgkgVbHpfXd+6BgsxWWZBglTI8rO6eym0DzuJV3efTFvzN3GVK16FZfkXJTD4i/an4Ux2vbDiTzCEMYUm5wOIaXrgfatuQ40mHvb/IxecJk17RaqFcDwI6ulGEuIrYSkx5tR7R8XFIidcNjQqDhSyuBBK4kUzGl+Dq5a/Me9BuIei4N5K3C4nay2BlhOgTRtTtE27/eUfkiAEZUA0k4O4PoMbrNXhkzfAjiUR++TuqVOMxjJFQAXkXgW3oDlKXBc6xiwwmzjBvnSMuDhHHV2dswA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=health.ucsd.edu; dmarc=pass action=none header.from=health.ucsd.edu; dkim=pass header.d=health.ucsd.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucsdhs.onmicrosoft.com; s=selector2-ucsdhs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=duwmue6dj8URuM1vrMjjp52ik9AHBEcwhEWaHCVBEO4=; b=PN+0zIB0YABiqCkr/mi6pGzvarrXrE1+dh/7xA3uS6ZVNB9N39KxPw7kZGwm6yq9jYFlmBC3zhPojmO9UZ6y8UB8QOd1MT+Epyy7Dhd1gEK/64yJSsixQeniwbizeTtJ86ZHb+zxeHD60HSm99UcTFJqw1P9wW9eUf3f1PlMZrI= From: "Berry, Charles" To: Kaushal Modi Subject: Re: Way to mark contents of an Org special block as verbatim? Thread-Topic: Way to mark contents of an Org special block as verbatim? Thread-Index: AQHYBNoQsHCf/GUrSkm5m2COK8VAaqxZxV8AgAA7PQA= Date: Sun, 9 Jan 2022 03:01:13 +0000 Message-ID: <561D83E2-47BF-4AC2-B2AD-24B08D614845@health.ucsd.edu> References: <87ee5kwwht.fsf@posteo.net> <877dbcwtf7.fsf@posteo.net> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f3d24c71-46a2-4e67-aabc-08d9d31c4c22 x-ms-traffictypediagnostic: BY3PR19MB4850:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Khnxw4YVO4pCalsVbjA30gKIzlIUiciDmBop3HMTHfVh2ZqPVGYb/Ubc9H5RaCT9KhP6bypA3cErxlJMn5JOHISzW7bsJ5cEu6F6IZuBnfPkKfI5pyU1fxccFP0HuMhq5ZJW80Zdg/IVBc1h+hlKJG7HLslTQy49ze3yhlxHwHW17WrGpQHGhroLipqBPvPSIA6FdJD5KnCP0ADH0sB6bF8kEW6QAPaKY0m53sHgzPV0YZuQrdq5zy8f1tbe4UtDWWjslMgAsctGYWBjyrF4aoqy+q1XTp++m5oNXouY+iKD6plrW+Ew75f8vpnMRg24YSTq04jj2qQAqDz0UqGl+51vB+oXOOcq2hIFmSLtfF+ZMzMmYSDRIBXYBNiDQqFMX7kMA2as7tA4XqUuOjNTEbG4+ck6btBPxOJsQVFN6MyMPSI1dnb/ttIt7Hv1dpv/Lg4jqagQC0Z0/hT/TTMeQRZP9CJQER+a7nqW+PiIM1dpg1S57ob7elXyWNZoWNyFN+6rv/b+JJMjvylVVSkHSQceMywcvGD9cNKBM3pQ37oxcMx/1MTYxL5v5XZVutp+wiF4Yaqilr6+TxKPvdSpJZSq6otNhjXllUmD7hIZ1tzywGCFGhGgjUXZ2OZazQaThKn2IzaJ20dAdSt8e7ga7r76ptm94JuYt2zk1RS7PcHSo2FvIvtuO6ezxHlWdd7WY9ZYuZr38bfrKAz/QsL9Bc6oMHx/fr/waSSBgbsR3xJb6HdSxe+Ss9UbtMV7uYnU3vOrIEpMoWYtRySZ9VWKlu6YWB4YVlDjgoJQKeGwA0COeuUmMHNDR0HqK0GtWuS+1nXZQie1EfYWRr4mIJdUynGgsFunHAZiKMVhBZqD4fE= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR19MB2581.namprd19.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(5660300002)(66446008)(66556008)(6916009)(33656002)(38070700005)(8936002)(75432002)(71200400001)(54906003)(6512007)(6506007)(53546011)(6486002)(38100700002)(4326008)(86362001)(66946007)(76116006)(66476007)(64756008)(122000001)(8676002)(83380400001)(186003)(2906002)(2616005)(786003)(316002)(966005)(508600001)(43043002)(45980500001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?gMNn157fEr3u1exWFSA7JiOwh645JisKhoyg0N0A7E9Wup5VxYihPr5V8E?= =?iso-8859-1?Q?NkYTDFZ+bj9FTjoN57RMc+MjdUQllHzPCIxg5Rh+a9qJASFzSiPy2PYFQk?= =?iso-8859-1?Q?jikvv5JF/M8BjEK67JaoV1KwSweXzgrxcwdwnsAswkbaINBMRgmv5m5c0C?= =?iso-8859-1?Q?53NrHUrWjInDWUXlV4+duEbXzl94h9hEIGDTCMdsk2TwCcZLmw7WWeruWt?= =?iso-8859-1?Q?u1jTiKjABWUz4dmxGJzrBx6VGKVikfKyhimYwdPDNzlJpsxA7VeKy1wxVB?= =?iso-8859-1?Q?fxpaTRxeX/O0w+f6xrHVW+GZm3hNUn3LEBWurlrvjaNjvG+jJGZE9rExbW?= =?iso-8859-1?Q?yCnrxrmaALdW9yuQ0hYnuSD/UQPJe09sXo5FxckC0tPzjt/R1DO0AuBoOw?= =?iso-8859-1?Q?ZxYaZ9UKmwS3cNL51LtgFNCb0AVb+BJLL2IOhmjjfRYtDtYrurnKzu79Un?= =?iso-8859-1?Q?0W8J+rIJNWwEH17acB5OJ9u9FcDzqXaCm3kRwjZ6P9rOgMgm4t8O1n9b1a?= =?iso-8859-1?Q?iufPcXOPW4mcHWxoe9O0YmFpKpkgtBjlnE2mSBAhhoAQvTcsq1xXdn0wz7?= =?iso-8859-1?Q?iOWxemsE3qQW9KWab2tHFSu9nxirqWEEMF9IvsXVEB0/+Fcd2bv/hFP0Wv?= =?iso-8859-1?Q?d4TXYYNXN1aMjSEZI92w4aMDWnixYhNTQwsXxesoJSI7GIReJkUqGXc17u?= =?iso-8859-1?Q?7aCnbqOA1j906fFdJ/CiQNxtjuuiW+MhSGMDifBr/QIVyqidKNW5pG36el?= =?iso-8859-1?Q?1/Ulk/eOoYH0Gx8ebiJNCMJehkqjdT0EEq2CcH5ZotAMldZjsUiGp0ji5O?= =?iso-8859-1?Q?UjBnUKb+oMy/uhSxkJBv5oYGQVBOoLaG79I2Bmice1Ip9FvcAPocJ6hwtk?= =?iso-8859-1?Q?VzjXNBnwE0+51+fkbRN5VZwQJgXW3zqPDGdA8eh2528f2l3XwMjlCqoGK+?= =?iso-8859-1?Q?jKsRNVyOQcJaTh7mHNKu9AOF5fmmdxChAyfBs220bgoT67I3V49KpD7oNA?= =?iso-8859-1?Q?CvZcZZ3twWpiDH74g64QmRdfhA6BHGWAgYZ62IgS/saAqn1A9czoEI5BU6?= =?iso-8859-1?Q?Y0SYUvig1o+VuD4ldtkv1z5k8Au8QxbpobnmSevE+0GScu6kqkKvdc1YqK?= =?iso-8859-1?Q?6a3qV1UB7NOuhBeVZsHmq5Xae85Z1j57nDDjX5fsnYaB9XYgYX94PY/iOG?= =?iso-8859-1?Q?JzT2Zih91j8qaROEn0eInJOspTBcNNL4UReHrObqHXI2MTHNyuWqem3ADK?= =?iso-8859-1?Q?lI36KBfxN+FagXm2UckCB+Yf/49arzAjo+qWg5+/vU1K/+b4k2ZXe7M3Yl?= =?iso-8859-1?Q?hKMe807lXIWwZY9TGtnyw+7vQNZihQG1JhuQcBe0R0SG+MaoOU1kjtRjFT?= =?iso-8859-1?Q?pQHZKUYSCLTkIYwlr4ONNJYXcq7dqV4rTU3vPLkx0hiS1SagR0WDws0jSk?= =?iso-8859-1?Q?vlPA8Zz/FHgWqJhK8YEUdVrksFBfj2oo02X/+fqfcEshj4i4SohQTW06+y?= =?iso-8859-1?Q?6QpTuDQGeeyt0FJDJT4dvRyCuk3fryMMU1KIDqsYgBFNEip/9GUcfek7Ok?= =?iso-8859-1?Q?3mJ2MxNPodcZP+iCyWUECzDO8LBmilGIQQr31LBkk0MKiB+wvFnzIF2u8J?= =?iso-8859-1?Q?kbaUlrllEPNkcp+37WQA2nyoa1C63X8Ka8YpRvTrkxbF6/eYdNwjd9EuqR?= =?iso-8859-1?Q?gNHYIu7K8d/eyz+vQCVs/bu+5I36lS3UaSAZrr6huVitDWrVIqkc3CLvb+?= =?iso-8859-1?Q?RUgRGB9ptrPAmky9h3gpgPRxQ=3D?= Content-Type: text/plain; charset="iso-8859-1" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: health.ucsd.edu X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR19MB2581.namprd19.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f3d24c71-46a2-4e67-aabc-08d9d31c4c22 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jan 2022 03:01:13.8896 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: e470d736-e7f7-41a8-8eab-dad544b2b579 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: gPGOxZChnKkWXWuonK5Z1bNGCdsDehFAXUCqHnonXPeJKM9qYzwv9w8pK4Sq/aUl14zmXi0rp042AmrLHRkGBw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY3PR19MB4850 X-Proofpoint-GUID: OlmUkJIRMmggnpLd0t_MMgtyv4m5s8pA X-Proofpoint-ORIG-GUID: OlmUkJIRMmggnpLd0t_MMgtyv4m5s8pA X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-01-09_01,2022-01-07_01,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 spamscore=0 malwarescore=0 clxscore=1015 mlxlogscore=875 phishscore=0 bulkscore=0 mlxscore=0 impostorscore=0 suspectscore=0 priorityscore=1501 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2201090019 Received-SPF: pass client-ip=148.163.133.170; envelope-from=ccberry@health.ucsd.edu; helo=mx0a-00395d01.pphosted.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, 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.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?iso-8859-1?Q?Juan_Manuel_Mac=EDas?= , 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=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641697344; 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=duwmue6dj8URuM1vrMjjp52ik9AHBEcwhEWaHCVBEO4=; b=iKe81KKxHTpbYx2clHOyXkmVJ8b4Mcm6gY1LcKrqG+7UibZ2dwzH9PXsiJze7T61ga7NVJ braMo3ewos6yDitFkjkJkLTtp2vo1JnrEwEaI/HhCfZ8l2ljifVt/9jTt3K8W31liBXgPy gSd46vAmEwsf5KBIpvKBy05AvLmlbGQoom/adgf5pA7WSyPCN21NMWKxjFF6a5ODTO8khD sWBosO4PVjJYP5s7Bw+FVhuxPkj5UbzrHG4mlKIAuFZQYTw54gSb+qB0hHWv5pScmcHPV6 zaOBEcIZtJJUiPbhk0oAzSOIl9cEkngK1uU71h7WdQ9TfhLMPrZ1ezjIM6rZug== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1641697344; a=rsa-sha256; cv=pass; b=izYCbNfJtvZyWgG6iWjFzMeJFNFdgfGWAL0HPCHLIv0sA0j7m3SyfdPPYUk+dP6c/52l0u eq9KkaN9gndMLXiYBT1xZebN3ClLCnRLDXiPleIx8IBvrWUdKgNY8gWx07i7yGZN+/NfJQ 4uJhIZKUwTblLxbvYm0UprXws8YezkUsEaO3r3kxvrGGM5ZLoHM68IxDVtpmsDwSNdZEN5 Wdv6IMhZtjh2tuAvZzMidhycbnZn7INy16gA2URFLUXASZbrMfGacRD4WdRfAdshxRc5dP f0O0dPumW1GGVy17Z2v8h4/CSbIiNkx/tBdFQhK+OQiSKMEEUZpCklPHLMI7gg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=ucsd.edu header.s=campus header.b=Yj2zNoBp; dkim=pass header.d=ucsdhs.onmicrosoft.com header.s=selector2-ucsdhs-onmicrosoft-com header.b=PN+0zIB0; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=ucsd.edu; 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: -5.31 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ucsd.edu header.s=campus header.b=Yj2zNoBp; dkim=pass header.d=ucsdhs.onmicrosoft.com header.s=selector2-ucsdhs-onmicrosoft-com header.b=PN+0zIB0; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=ucsd.edu; 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: 539B4219AE X-Spam-Score: -5.31 X-Migadu-Scanner: scn1.migadu.com X-TUID: C1YsxzuAc3nX > On Jan 8, 2022, at 3:29 PM, Kaushal Modi wrote: >=20 >> What am I missing? >>=20 >> It seems like you want your derived backend to transcode special blocks = somewhat differently than the parent backend. And adding a special block ex= port filter doesn't quite do the job. >=20 > I tried out the example Juan posted and it works perfectly well. But > it would require to user to do something similar for each arbitrary > new special block they need. E.g. #+being_katex, #+begin_tikz, > #+begin_tikzjax (could be anything!) where the content needs to be > kept unmodified. >=20 Right, so maybe use `(member type )' rather than '(= equals type "newlatex")' in the3 example below. >> For that purpose, you should write a special block transcoder - perhaps = falling back to the parent backend for block types you do not wish to handl= e as described above. >=20 > Can you please point me to an example? >=20 A simple one here: #+begin_src emacs-lisp ;; minimal backend with latex parent (org-export-define-derived-backend 'newlatex 'latex :translate-alist '((special-block . org-newlatex-special-block))) ;; special block transcoder (defun org-newlatex-special-block (special-block contents info) "Newlatex special block transcoder." (let ((type (org-element-property :type special-block))) (if (equal type "newlatex") (format "{{}}\n%s{{}}\n" contents) ;; not `newlatex` so default to latex transcoder (org-export-with-backend 'latex special-block contents info)))) #+end_src Eval the above, then use this as an example by copying the following src block to an org buffer and entering M-; (org-export-to-buffer 'newlatex "*Org NEW LATEX Export*" nil nil nil t)= RET #+begin_src org ,#+begin_newlatex This is the new content ,#+end_newlatex ,#+attr_latex: :caption \MyCaption{HeadingA} ,#+BEGIN_proof dot-dot-dot ,#+END_proof #+end_src I get an *Org NEW LATEX Export* buffer like this: #+begin_example {{}} This is the new content {{}} \begin{proof} dot-dot-dot \MyCaption{HeadingA} \end{proof} #+end_example >> Block specific customizations could rely on a backend specific attribute= . >=20 > Yes, I am doing block-specific customization (like support > #+attr_shortcode above special blocks here[1]). But I don't know how > to get back the original content of the special block because the > `contents` arg received by the exporter's org-hugo-special-block > already has the Org entities, and sub/super replacements done. >=20 > [1]: https://urldefense.com/v3/__https://github.com/kaushalmodi/ox-hugo/b= lob/458142675bb5a0e7ee26ecea07d75c10aa52184b/ox-hugo.el*L2872__;Iw!!LLK065n= _VXAQ!xZhh--YwGpo06BbAHLF_A2MY_4mk4gBxHgFG3InZakP_7mdFDpyBNMgqvDVvBimzWQ$=20