From 796318b21545a1c9ffb1e51ceaaf02d0b4803421 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Mon, 16 Aug 2010 14:28:29 +0200 Subject: [PATCH] Fix Table attribute issue during PDF export * lisp/org-latex.el (org-export-latex-first-lines): Do not protect meta lines that have nothing to do with babel. --- lisp/org-latex.el | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 9142747de..4f27f425a 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -1257,9 +1257,13 @@ If END is non-nil, it is the end of the region." '(:org-license-to-kill t)) (save-excursion (goto-char pt) - (while (re-search-forward "^[ \t]*#+.*\n?" limit t) - (remove-text-properties (match-beginning 0) (match-end 0) - '(:org-license-to-kill t)))))))))) + (while (re-search-forward "^[ \t]*#\\+.*\n?" limit t) + (let ((case-fold-search t)) + (unless (org-string-match-p + "^[ \t]*#\\+\\(attr_\\|caption\\>\\|label\\>\\)" + (match-string 0)) + (remove-text-properties (match-beginning 0) (match-end 0) + '(:org-license-to-kill t)))))))))))) (defvar org-export-latex-header-defs nil