From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gV0bEf83Z2CbYAAAgWs5BA (envelope-from ) for ; Fri, 02 Apr 2021 17:27:59 +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 aLnFCf83Z2BDbAAAB5/wlQ (envelope-from ) for ; Fri, 02 Apr 2021 15:27:59 +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 71E3918AB6 for ; Fri, 2 Apr 2021 17:27:57 +0200 (CEST) Received: from localhost ([::1]:41452 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lSLiF-0005Yq-7a for larch@yhetil.org; Fri, 02 Apr 2021 11:27:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51176) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSLhX-0005Yb-P6 for emacs-orgmode@gnu.org; Fri, 02 Apr 2021 11:27:11 -0400 Received: from se5k-lax1.servconfig.com ([23.235.223.100]:59095) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSLhF-00048V-Cp for emacs-orgmode@gnu.org; Fri, 02 Apr 2021 11:27:11 -0400 Received: from biz215.inmotionhosting.com ([192.145.239.51]) by se5-lax1.servconfig.com with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1lSLh8-000zxe-TT; Fri, 02 Apr 2021 11:26:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tecosaur.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date: In-reply-to:Subject:Cc:To:From:References:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=5GGi2Hac9j0q9/Wd/PNDe80xe7IEvYXlg6A7BvdYaZE=; b=RYK6+iAwHIXSjN0QZSs4AHOKd ZQHscxBvQpjIB9JPeYthgIs4m5oC9z32WkR8jp21i8gwKsnBrO8qH2GKtcegWH3q/Pf+W4ae+DEVI b8NqSesoAVUnpHojaIsVMEXB5gxJUU12uJCnhZ5XYTS+Ik37GMQVg/p7qzAEheFyDl5IUeddpt8fB GYfKlrz4odoysKLLgzUUxdQ8CeRK6v/Vc1gRlp6vXDeSlPtE+6ucYxGUHUok8K0lbLlQsWDkSFFTw exmtZp+28UcmjGYKlBofVFeHY9GgYbmO5Ue2R2tsFlO5sSVPfYpodRxIsvTlJ/kOn2jggUB8qKr9L CWERATe2w==; Received: from 180-150-91-8.b4965b.per.nbn.aussiebb.net ([180.150.91.8]:43110 helo=localhost) by biz215.inmotionhosting.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lSLh6-004A92-Ui; Fri, 02 Apr 2021 08:26:45 -0700 References: <87mtujfj8k.fsf@tecosaur.com> <87blazfe6i.fsf@tecosaur.com> <878s63fb5m.fsf@tecosaur.com> <87zgygram9.fsf@nicolasgoaziou.fr> User-agent: mu4e 1.4.15; emacs 28.0.50 From: Timothy To: Nicolas Goaziou Subject: Re: [PATCH] ox-latex: Replace \verb instances in headings with \texttt In-reply-to: <87zgygram9.fsf@nicolasgoaziou.fr> Date: Fri, 02 Apr 2021 23:26:43 +0800 Message-ID: <87im54hfm4.fsf@tecosaur.com> MIME-Version: 1.0 Content-Type: text/plain X-Get-Message-Sender-Via: biz215.inmotionhosting.com: authenticated_id: tec@tecosaur.com X-Authenticated-Sender: biz215.inmotionhosting.com: tec@tecosaur.com X-Originating-IP: 192.145.239.51 X-SpamExperts-Domain: biz215.inmotionhosting.com X-SpamExperts-Username: 192.145.239.51 X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.25) X-Recommended-Action: accept X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT83PMYvzBeJkNmiC7niErzQPUtbdvnXkggZ 3YnVId/Y5jcf0yeVQAvfjHznO7+bT5x9gj0NykpSj79/UjbsBFDLmW5bE9/HHudgLlSMWOqekC2c unNA5lf+0SupXrbh6K8+Vy93rN8A3gjMe8JEA/IALih76BhQ7KVVUXum+d0YWCTg127TqHZDxA/k ZB41Rh9ZogwYhYHN3vesQPPsnV/bNKiPsnxh1B91qCS6oFDXbeWbsTxOJ63bd9aXdSGVM7hC2hMd OcMl7FXFu7rElBbaecQR5AjAozKaLM+uf3vn+raIPznH0SPDf/1UQaoxNf+pEMcQe6c4vyw3lP3O I2DsSkIeSre3ZBZznLtHa+BMpO/Geuce04o+nuvg7cN7PA2Qv/6HVovY6q2lJfYAckQlQJtR4QxW MOifmt9LOcQX1afTF2zzHOUj1s00F3rRRprnNn5IBqnTlllMXcpjmMh6nUghgAcG/Q/GitkIn+br rd9fxN2oReTDHAyOynaY0Cnkqq+bPz9V+piB3Bb8O/II1cyf98Zm4xj4k3xd9LL/vyxaRQsif/YU G8XfVQduyd16EipRzMVZ5LqwTx7Vvn9SVpfQCjlf31OWLN2NaNeFyz0f5/beQu/exMjaVCFt/3Vf mAHVOuB2zi96NdQ7QbNn4eqGUImARD6YYkVIFQxnQwBxmhzEAg9JP231LZ29BKfHxpYM+Na37ODV a4FCSNlETFc0wo2S4BfZLIe+V4fopj2SFokTsRq8oPdvjaG70zKCXZ/PIF5lsbZNU11sNqVxY9C2 lzJYRFd2YRW/Sur03u8m7n/BGo5wBl50/Y76pPLYUNgNlbczCl9e2EHRkzdtSX0F1SgHork9CE20 OmTiBYZaj6ap1iCzR/sr7Wp3FUkQ6GOvr16CDpws1tlR7+jT647lNwN4qOsSZg+fYhVZG8Cm5oQo UGkW63eF4Dnjkru0rIpjO6/1LqHA1UlOUbsqNUNskyEzRKqJAimkUzqUYogOjiY9epCzxz8BJLt8 RAikDnhSVdLq3Oq8+X81Ymop0GDCQVh0v+/eB5H/MGRJY7mNQ/32qASrcCwj0vbqkVOw1/p1yWVL ga78GK1pKP/E X-Report-Abuse-To: spam@se1-lax1.servconfig.com Received-SPF: pass client-ip=23.235.223.100; envelope-from=tec@tecosaur.com; helo=se5k-lax1.servconfig.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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-email 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=1617377278; 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=5GGi2Hac9j0q9/Wd/PNDe80xe7IEvYXlg6A7BvdYaZE=; b=Fi/sOBWYVeSWEziWdL4MZwzCdwhZ3m+wNae6csiNFQhndlKf5JZZCK+3iol3ioxmJBufTd g6H6EObCIqAAlnGhJa9KKaGQpNhyO6Sb57ynLxl8ig6A31hIum9vYsJ0lT4Yf3LHZoezsd M8W7L6K/2PYCamK+aQ+raST1k7l64apIJncKRXN4idwoy8cPWt1NF5kLkPj3X4ejmNC2nc ibD9jSO5ZglV6gBHmby6+q0Wmu0T2RviV152rQbTf1hIj4uROM0iivMd3PUkXgiuKiRmZH pfWRJryIPxGSr1BHT53E5OgVkhOqBv8BW3uae3bibh/GeqC9ZyBkaOcuezf7sw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617377278; a=rsa-sha256; cv=none; b=GtgKasYTDWbvsJuJJsWE3l2FDKPqI24S6ONhQboJCmN3Rv9N6aLJXAW1UpvXbvcuolfx9F CQ3B0EuxTHm3Jw/p8Y5A0qNYlVZZhvKkkc/6j1kltV/4towyjFae2QlDd7XjfyVa30kjCK GLFTLYyOyEQ52ZGmuvGUJqNgQsPQl7xqElTojQALIpX2dZKI1/O78iKAVmkIoAuyVFG000 OOwhlRrXCOgwwPXQpFkGNuxe4ix4jiPX/4jLC9snkngmcuQ9YpuAvq3pYjqRQ/vLK18WtV AJio27SUamKVW/tg35Mxe0JwwIaN2/+FpDBbyZxmF1sxgmvOtdXHkaq/pzVXFw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tecosaur.com header.s=default header.b=RYK6+iAw; 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: 0.07 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tecosaur.com header.s=default header.b=RYK6+iAw; dmarc=none; 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: 71E3918AB6 X-Spam-Score: 0.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: EGmxCyjepnhB Nicolas Goaziou writes: > Hello, > > Timothy writes: > >> * lisp/ox-latex.el (org-latex-format-headline-default-function): Convert >> any instances of \verb text with \texttt. This is required to work >> around LaTeX peculiarities that would otherwise cause compilation to >> fail (see the code comment for more information). > > This is not the appropriate location for the fix. > > In `section-back-end' variable within `org-latex-headline', you can > extend the local export back-end to handle correctly verbatim markup. > > Regards, I've just had a look; I don't feel that confident with my usage after checking the docstring for `org-export-create-backend'. Would you mind giving the below a quick look and letting me know if it looks right to you? #+begin_src diff @@ -1960 +1960,3 @@ (defun org-latex-headline (headline contents info) - '((underline . (lambda (o c i) (format "\\underline{%s}" c)))))) + '((underline . (lambda (o c i) (format "\\underline{%s}" c)))) + :options + '((:latex-text-markup-alist ((code . protectedtexttt)))))) #+end_src diff -- Timothy