From: Timothy <tec@tecosaur.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: org-mode-email <emacs-orgmode@gnu.org>
Subject: Re: [PATCH] ox-latex: Replace \verb instances in headings with \texttt
Date: Fri, 02 Apr 2021 23:26:43 +0800 [thread overview]
Message-ID: <87im54hfm4.fsf@tecosaur.com> (raw)
In-Reply-To: <87zgygram9.fsf@nicolasgoaziou.fr>
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> Hello,
>
> Timothy <tec@tecosaur.com> 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
prev parent reply other threads:[~2021-04-02 15:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-31 15:14 [PATCH] ox-latex: Replace \verb instances in headings with \texttt Timothy
2021-03-31 17:03 ` Timothy
2021-03-31 18:09 ` Timothy
2021-04-02 15:04 ` Nicolas Goaziou
2021-04-02 15:15 ` Timothy
2021-04-02 15:26 ` Timothy [this message]
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
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=87im54hfm4.fsf@tecosaur.com \
--to=tec@tecosaur.com \
--cc=emacs-orgmode@gnu.org \
--cc=mail@nicolasgoaziou.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* 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
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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).