Forgot to attach the patch...
verb.patch
Description: Binary data
On Jan 30, 2011, at 4:30 PM, Carsten Dominik wrote:
Aloha Tom, On Jan 29, 2011, at 7:40 PM, Thomas S. Dye wrote:Aloha all,The default value of org-export-latex-emphasis-alist treats the = and ~ delimiters as \\verb. Both settings are ignored because org- export-latex-use-verb is nil by default. The = and ~ delimiters produce \texttt{} instead of \verb. This patch distinguishes = and ~ by changing the default for = to \\texttt{%s}.The docstring has also been changed to refer to org-export-latex- use-verb.With this patch, users exporting to LaTeX will be able to use = for \texttt text in LaTeX moving environments and ~ for \verb text in places where it is safe to use this construct.This is a pretty good patch, but I think we should still modify it. Org users traditionally use =stuff= to mark code pieces, and I thinkit is still important to escape special characters like ^ and ~ and others.The modified patch below does the following: - Like your patch, it makes Org use \\verb for the ~...~ emphasis. - For =...= emphasis, it uses a new keyword \\protectedtexttt. This will protect special characters and then do texttt. And Ihave extended the protection to include multiple hyphens by converting"--" to "-{}-". Do you agree with this solution? - CarstenTom <0001-Changed-org-export-latex-emphasis-alist-to-distingui.patch> _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
_______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode