emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] Distinguish = and ~ delimiters in LaTeX export
@ 2011-01-29 18:40 Thomas S. Dye
  2011-01-30 15:30 ` Carsten Dominik
  2011-01-30 17:49 ` Sébastien Vauban
  0 siblings, 2 replies; 10+ messages in thread
From: Thomas S. Dye @ 2011-01-29 18:40 UTC (permalink / raw)
  To: Org Mode

[-- Attachment #1: Type: text/plain, Size: 605 bytes --]

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.

Tom


[-- Attachment #2: 0001-Changed-org-export-latex-emphasis-alist-to-distingui.patch --]
[-- Type: application/octet-stream, Size: 1716 bytes --]

From 024b03e14f4b1348f2f07c25306ee8ab9ee33215 Mon Sep 17 00:00:00 2001
From: Tom Dye <tsd@tsdye.com>
Date: Sat, 29 Jan 2011 08:31:57 -1000
Subject: [PATCH] Changed org-export-latex-emphasis-alist to distinguish = from ~
 delimiters.  Added reference to org-export-latex-use-verb in docstring.

---
 lisp/org-latex.el |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/lisp/org-latex.el b/lisp/org-latex.el
index a45546a..3fd67b0 100644
--- a/lisp/org-latex.el
+++ b/lisp/org-latex.el
@@ -230,16 +230,16 @@ are written as utf8 files."
     ("/" "\\emph{%s}" nil)
     ("_" "\\underline{%s}" nil)
     ("+" "\\st{%s}" nil)
-    ("=" "\\verb" t)
+    ("=" "\\texttt{%s}" t)
     ("~" "\\verb" t))
   "Alist of LaTeX expressions to convert emphasis fontifiers.
-Each element of the list is a list of three elements.
-The first element is the character used as a marker for fontification.
-The second element is a formatting string to wrap fontified text with.
-If it is \"\\verb\", Org will automatically select a delimiter
-character that is not in the string.
-The third element decides whether to protect converted text from other
-conversions."
+Each element of the list is a list of three elements.  The first
+element is the character used as a marker for fontification.  The
+second element is a formatting string to wrap fontified text
+with.  If it is \"\\verb\", and org-export-latex-use-verb is not
+nil, Org will automatically select a delimiter character that is
+not in the string.  The third element decides whether to protect
+converted text from other conversions."
   :group 'org-export-latex
   :type 'alist)
 
-- 
1.7.1


[-- Attachment #3: Type: text/plain, Size: 1 bytes --]



[-- Attachment #4: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-02-01 17:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-29 18:40 [PATCH] Distinguish = and ~ delimiters in LaTeX export Thomas S. Dye
2011-01-30 15:30 ` Carsten Dominik
2011-01-30 15:32   ` Carsten Dominik
2011-01-30 18:23   ` Thomas S. Dye
2011-02-01 10:30     ` Bastien
2011-01-30 17:49 ` Sébastien Vauban
2011-01-30 18:44   ` Thomas S. Dye
2011-02-01 11:09   ` Bastien
2011-02-01 11:17   ` Carsten Dominik
2011-02-01 17:04     ` Bastien

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).