emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Restore raw output in LaTeX export from in-line code block
@ 2013-09-28 19:19 Liam Healy
  2013-09-29 19:46 ` Eric Schulte
  0 siblings, 1 reply; 5+ messages in thread
From: Liam Healy @ 2013-09-28 19:19 UTC (permalink / raw)
  To: Org-mode mailing list


[-- Attachment #1.1: Type: text/plain, Size: 539 bytes --]

I noticed that raw results from in-line code blocks were disappearing in
the new LaTeX exporter, and bisected the repo to the change 7117ad4f92. I
have created the attached patch to fix the problem and restore the previous
behavior.

example file
      * Test
        1. Inline common lisp raw: src_lisp[:results raw]{(+ 2 2)}, should
say 4.


Desired output, restored by patch
  \item Inline common lisp raw: 4, should say 4.
Output without patch
   \item Inline common lisp raw: , should say 4.

If this looks right, please apply.

Liam

[-- Attachment #1.2: Type: text/html, Size: 663 bytes --]

[-- Attachment #2: 0001-Restore-raw-output-in-LaTeX-export-from-in-line-code.patch --]
[-- Type: application/octet-stream, Size: 1037 bytes --]

From 4d56221f954346b95f0cf0f23969c88f419b4705 Mon Sep 17 00:00:00 2001
From: "Liam M. Healy" <lhealy@common-lisp.net>
Date: Sat, 28 Sep 2013 13:17:53 -0400
Subject: [PATCH] Restore raw output in LaTeX export from in-line code block

Commit 7117ad4f92 caused the :results raw to produce empty output, e.g.
* Test
  1. Inline common lisp raw: src_lisp[:results raw]{(+ 2 2)}, should say 4.
produced the LaTeX line
   \item Inline common lisp raw: , should say 4.
This patch restores previous behavior, so that the LaTeX
   \item Inline common lisp raw: 4, should say 4.
---
 lisp/ob-core.el |    1 -
 1 file changed, 1 deletion(-)

diff --git a/lisp/ob-core.el b/lisp/ob-core.el
index a7c227b..472f9ea 100644
--- a/lisp/ob-core.el
+++ b/lisp/ob-core.el
@@ -2724,7 +2724,6 @@ Emacs shutdown."))
 		 (member "code" ,params)
 		 (member "pp" ,params)
 		 (and (or (member "output" ,params)
-			  (member "raw"    ,params)
 			  (member "org"    ,params)
 			  (member "drawer" ,params))
 		      (not (member "table" ,params))))
-- 
1.7.9.5


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

end of thread, other threads:[~2013-10-06 14:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-28 19:19 Restore raw output in LaTeX export from in-line code block Liam Healy
2013-09-29 19:46 ` Eric Schulte
2013-10-01 23:36   ` Liam Healy
2013-10-02 13:28     ` Eric Schulte
2013-10-06 14:28       ` Liam Healy

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).