Nicolas Goaziou <m...@nicolasgoaziou.fr> writes:

> Hello,
>
> Timothy <t...@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

Reply via email to