Hi Sebastien,

2015ko urtarrilak 16an, Sebastien Vauban-ek idatzi zuen:
> 
> Hello,
> 
> When ~code~ is converted to LaTeX, it becomes \verb~code~; i.e., it uses
> a potentially "dangerous" character, in this case `~' which is active.
> 
> In most cases, it is unnoticeable, but in some environments, it breaks.
> 
> The solution is to protect the command, what the attached patch does.

If this is the problem, would a simpler solution be to remove ~ (and other
special characters, like #^_$) from ‘org-latex--find-verb-separator’?

But as Nick points out, the problem with \verb is probably deeper.  The
protectedtexttt case in ox-latex already implements the suggestion from
the thread he linked.  Perhaps the solution is to change the code entry
in ‘org-latex-text-markup-alist’ to use protectedtexttt and drop the
verb case entirely from ‘org-latex--text-markup’.  What do you think?

Thanks,

-- 
Aaron Ecay

Reply via email to