LaTeX Export: Fix problem with alignment specs that contain a comma
This commit is contained in:
parent
9a72345b0f
commit
9a1612410f
|
@ -1,5 +1,8 @@
|
|||
2010-05-14 Carsten Dominik <carsten.dominik@gmail.com>
|
||||
|
||||
* org-latex.el (org-export-latex-tables): Accept comma in
|
||||
align string.
|
||||
|
||||
* org-docbook.el (org-export-docbook-xslt-stylesheet): New option.
|
||||
(org-export-docbook-xslt-proc-command): Fix docstring.
|
||||
(org-export-docbook-xsl-fo-proc-command): Fix docstring.
|
||||
|
|
|
@ -1327,7 +1327,7 @@ links, keywords, lists, tables, fixed-width"
|
|||
(unless (or
|
||||
;; check for comment line
|
||||
(save-excursion (goto-char (match-beginning 0))
|
||||
(equal (char-after (point-at-bol)) ?#))
|
||||
(org-in-indented-comment-line))
|
||||
;; Check if this is a defined entity, so that is may need conversion
|
||||
(org-entity-get (match-string 1)))
|
||||
(add-text-properties (match-beginning 0) (match-end 0)
|
||||
|
@ -1592,7 +1592,7 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
|
|||
longtblp (and attr (stringp attr)
|
||||
(string-match "\\<longtable\\>" attr))
|
||||
align (and attr (stringp attr)
|
||||
(string-match "\\<align=\\([^ \t\n\r,]+\\)" attr)
|
||||
(string-match "\\<align=\\([^ \t\n\r]+\\)" attr)
|
||||
(match-string 1 attr))
|
||||
floatp (or caption label))
|
||||
(setq caption (and caption (org-export-latex-fontify-headline caption)))
|
||||
|
@ -2068,7 +2068,7 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
|
|||
(unless (or
|
||||
;; check for comment line
|
||||
(save-excursion (goto-char (match-beginning 0))
|
||||
(equal (char-after (point-at-bol)) ?#))
|
||||
(org-in-indented-comment-line))
|
||||
;; Check if this is a defined entity, so that is may need conversion
|
||||
(org-entity-get (match-string 1))
|
||||
)
|
||||
|
|
|
@ -17234,6 +17234,13 @@ With prefix arg UNCOMPILED, load the uncompiled versions."
|
|||
"Is point in a line starting with `#'?"
|
||||
(equal (char-after (point-at-bol)) ?#))
|
||||
|
||||
(defun org-in-indented-comment-line ()
|
||||
"Is point in a line starting with `#' after some white space?"
|
||||
(save-excursion
|
||||
(save-match-data
|
||||
(goto-char (point-at-bol))
|
||||
(looking-at "[ \t]*#"))))
|
||||
|
||||
(defun org-in-verbatim-emphasis ()
|
||||
(save-match-data
|
||||
(and (org-in-regexp org-emph-re 2) (member (match-string 3) '("=" "~")))))
|
||||
|
|
Loading…
Reference in New Issue