emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: life on the eading bledge


From: Greg Minshall
Subject: Re: life on the eading bledge
Date: Tue, 06 Apr 2021 05:25:27 +0300

Kyle,

> The below change seems to fix the issue, though Nicolas may be able to
> suggest a more appropriate change.

yes, that seems to work for me.

cheers, Greg
----
> diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
> index 932f38530..ac24f1f74 100644
> --- a/lisp/ox-latex.el
> +++ b/lisp/ox-latex.el
> @@ -1961,8 +1961,16 @@ (defun org-latex-headline (headline contents info)
>                 ;; commands (like \section, etc.), and this causes 
> compilation to fail.
>                 ;; So, within headings it's a good idea to replace any 
> instances of \verb
>                 ;; with \texttt.
> -               (code . (lambda (_ c _) (org-latex--protect-texttt c)))
> -               (verbatim . (lambda (_ c _) (org-latex--protect-texttt c))))))
> +               (code . (lambda (o c i)
> +                         (org-latex--protect-texttt
> +                          (or c
> +                              (org-export-data
> +                               (org-element-property :value o) i)))))
> +               (verbatim . (lambda (o c i)
> +                             (org-latex--protect-texttt
> +                              (or c
> +                                  (org-export-data
> +                                   (org-element-property :value o) i))))))))
>          (text
>           (org-export-data-with-backend
>            (org-element-property :title headline) section-back-end info))
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]