From 9a04b8f2dd3dff7a36d253524490ab35bb0512af Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Fri, 8 Feb 2008 15:09:11 +0000 Subject: [PATCH] Fixed bug in `org-export-region-as-latex'. Always ignore the value of the skip parameter when exporting a region. --- org-export-latex.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/org-export-latex.el b/org-export-latex.el index b922c7019..7c71b2711 100644 --- a/org-export-latex.el +++ b/org-export-latex.el @@ -391,9 +391,10 @@ without even the \begin{document} and \end{document} commands." (find-file-noselect filename))) (odd org-odd-levels-only) (header (org-export-latex-make-header title opt-plist)) - (skip (if subtree-p nil + (skip (cond (subtree-p nil) + (region-p t) ;; never skip first lines when exporting a subtree - (plist-get opt-plist :skip-before-1st-heading))) + (t (plist-get opt-plist :skip-before-1st-heading)))) (text (plist-get opt-plist :text)) (first-lines (if skip "" (org-export-latex-first-lines))) (coding-system (and (boundp 'buffer-file-coding-system)