emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] Suppress extra newlines around source code in LaTeX export
@ 2009-12-01 21:03 Nicolas Girard
  2009-12-03 14:42 ` Carsten Dominik
  2009-12-05 11:58 ` Nicolas Girard
  0 siblings, 2 replies; 15+ messages in thread
From: Nicolas Girard @ 2009-12-01 21:03 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 173 bytes --]

Hi,
title says it all.

A single paragraph such as:

#===
Dura lex
#+begin_src emacs-lisp
(a)
#+end_src
sed lex
#===

should remain entire in the LaTeX export.

-- 
Nicolas

[-- Attachment #2: noextralines.patch --]
[-- Type: text/x-patch, Size: 1070 bytes --]

diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index 7509ba8..4c4d540 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -2403,7 +2403,7 @@ INDENT was the original indentation of the block."
 	      (concat "\n#+BEGIN_HTML\n" (org-add-props rtn '(org-protected t)) "\n#+END_HTML\n\n"))
 	     ((eq backend 'latex)
 	      (setq rtn (org-export-number-lines rtn 'latex 0 0 num cont rpllbl fmt))
-	      (concat "\n#+BEGIN_LaTeX\n"
+	      (concat "#+BEGIN_LaTeX\n"
 		      (org-add-props
                           (if org-export-latex-listings
                               (concat
@@ -2423,7 +2423,7 @@ INDENT was the original indentation of the block."
                             (concat (car org-export-latex-verbatim-wrap)
                                     rtn (cdr org-export-latex-verbatim-wrap)))
 			  '(org-protected t))
-		      "#+END_LaTeX\n\n"))
+		      "#+END_LaTeX\n"))
 	     ((eq backend 'ascii)
 	      ;; This is not HTML or LaTeX, so just make it an example.
 	      (setq rtn (org-export-number-lines rtn 'ascii 0 0 num cont rpllbl fmt))

[-- Attachment #3: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2009-12-16 10:48 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-01 21:03 [PATCH] Suppress extra newlines around source code in LaTeX export Nicolas Girard
2009-12-03 14:42 ` Carsten Dominik
2009-12-05 11:58 ` Nicolas Girard
2009-12-09 10:00   ` Carsten Dominik
2009-12-09 22:21     ` Nicolas Girard
2009-12-10 21:37       ` Nicolas Girard
2009-12-14 15:41         ` Carsten Dominik
2009-12-15 10:55           ` Nicolas Girard
2009-12-16 10:48             ` Carsten Dominik
2009-12-09 22:50     ` Nicolas Girard
2009-12-09 23:56       ` Nicolas Girard
2009-12-10  8:08         ` Carsten Dominik
2009-12-10 21:38           ` Nicolas Girard
2009-12-10  8:08       ` Carsten Dominik
2009-12-10 21:39         ` Nicolas Girard

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).