From e00ecff463c68f2b57bd7a9b16069a85f9d2540f Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Tue, 6 May 2008 02:06:09 +0200 Subject: [PATCH] Added support for blockquote conversion in org-export-latex.el. Also added *.elc to .gitignore. --- .gitignore | 1 + ChangeLog | 5 +++++ lisp/org-export-latex.el | 8 ++++++++ 3 files changed, 14 insertions(+) diff --git a/.gitignore b/.gitignore index 0e04e7a41..113293056 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ *.cp *.cps *.dvi +*.elc *.fn *.fns *.html diff --git a/ChangeLog b/ChangeLog index ad5a0ed5c..a0ebbbe28 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-05-06 Bastien Guerry + + * lisp/org-export-latex.el (org-export-latex-preprocess): Added + support for blockquotes. + 2008-05-05 Carsten Dominik * lisp/org.el (org-read-date-analyze): Catch the case where only a diff --git a/lisp/org-export-latex.el b/lisp/org-export-latex.el index 9b30dcdcb..d48af304b 100644 --- a/lisp/org-export-latex.el +++ b/lisp/org-export-latex.el @@ -1096,6 +1096,14 @@ Regexps are those from `org-export-latex-special-string-regexps'." (replace-match (org-export-latex-protect-string (concat (match-string 1) "\\LaTeX{}")) t t))) + ;; Convert blockquotes + (goto-char (point-min)) + (while (re-search-forward "^#\\+BEGIN_QUOTE" nil t) + (replace-match "\\begin{quote}" t t)) + (goto-char (point-min)) + (while (re-search-forward "^#\\+END_QUOTE" nil t) + (replace-match "\\end{quote}" t t)) + ;; Convert horizontal rules (goto-char (point-min)) (while (re-search-forward "^----+.$" nil t)