瀏覽代碼

LaTeX export: Fix problem with emphasis in quotes

Carsten Dominik 15 年之前
父節點
當前提交
0ba7d3d2f9
共有 3 個文件被更改,包括 6 次插入2 次删除
  1. 4 0
      lisp/ChangeLog
  2. 1 1
      lisp/org-latex.el
  3. 1 1
      lisp/org.el

+ 4 - 0
lisp/ChangeLog

@@ -1,8 +1,12 @@
 2009-08-18  Carsten Dominik  <carsten.dominik@gmail.com>
 
+	* org.el (org-emphasis-regexp-components): Add "`" to set of
+	pre-emphasis characters.
+
 	* org-latex.el (org-export-latex-classes): Always include the soul
 	package.
 	(org-export-latex-emphasis-alist): Use \st for strikethough.
+	(org-export-latex-fontify): Fix emphasis in quotes.
 
 	* org-exp-blocks.el (org-export-blocks-preprocess): Use
 	`indent-code-rigidly' to indent.

+ 1 - 1
lisp/org-latex.el

@@ -1434,7 +1434,7 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
       (unless emph
 	(message "`org-export-latex-emphasis-alist' has no entry for formatting triggered by \"%s\""
 		 (match-string 3)))
-      (unless (or (get-text-property (1- (point)) 'org-protected)
+      (unless (or (get-text-property (- (point) 3) 'org-protected)
 		  (save-excursion
 		    (goto-char (match-beginning 1))
 		    (save-match-data

+ 1 - 1
lisp/org.el

@@ -2779,7 +2779,7 @@ org-leve-* faces."
 		    "\\([" post  "]\\|$\\)")))))
 
 (defcustom org-emphasis-regexp-components
-  '(" \t('\"{" "- \t.,:!?;'\")}\\" " \t\r\n,\"'" "." 1)
+  '(" \t('`\"{" "- \t.,:!?;'\")}\\" " \t\r\n,\"'" "." 1)
   "Components used to build the regular expression for emphasis.
 This is a list with 6 entries.  Terminology:  In an emphasis string
 like \" *strong word* \", we call the initial space PREMATCH, the final