emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Is raw output from Common Lisp and Scheme broken?
@ 2024-08-08 10:39 Rudolf Adamkovič
  2024-08-10 14:19 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Rudolf Adamkovič @ 2024-08-08 10:39 UTC (permalink / raw)
  To: emacs-orgmode

Howdy!

I would like to output

  raw Org/LaTeX from Common Lisp and Scheme

but it does not seem to work:

EMACS LISP - ALL OK:

  #+BEGIN_SRC elisp :results raw
  "\\begin{array}{cc|cc} 1 & 2 & 3 & 4\\end{array}"
  #+END_SRC
  
  #+RESULTS:
  \begin{array}{cc|cc} 1 & 2 & 3 & 4\end{array}

LUA - ALL OK:

  #+BEGIN_SRC lua :results raw
  return "\\begin{array}{cc|cc} 1 & 2 & 3 & 4\\end{array}"
  #+END_SRC
  
  #+RESULTS:
  \begin{array}{cc|cc} 1 & 2 & 3 & 4\end{array}

COMMON LISP - *NOT* OK:

(1) DOUBLE BACKSLASHES
(2) RESULTS GROW

  #+BEGIN_SRC lisp :results raw
  "\\begin{array}{cc|cc} 1 & 2 & 3 & 4\\end{array}"
  #+END_SRC
  
  #+RESULTS:
  \\begin{array}{cc|cc} 1 & 2 & 3 & 4\\end{array}
  \\begin{array}{cc|cc} 1 & 2 & 3 & 4\\end{array}
  \\begin{array}{cc|cc} 1 & 2 & 3 & 4\\end{array}

SCHEME - *NOT* OK:

(1) SUPERFLUOUS QUOTES
(2) DOUBLE BACKSLASHES
(3) RESULTS GROW

  #+BEGIN_SRC scheme :results raw
  "\\begin{array}{cc|cc} 1 & 2 & 3 & 4\\end{array}"
  #+END_SRC
  
  #+RESULTS:
  "\\begin{array}{cc|cc} 1 & 2 & 3 & 4\\end{array}"
  "\\begin{array}{cc|cc} 1 & 2 & 3 & 4\\end{array}"
  "\\begin{array}{cc|cc} 1 & 2 & 3 & 4\\end{array}"

Is escaping and quoting broken for Common Lisp and Scheme, ...

... or am I using something incorrectly?

Thank you!

Rudy
-- 
"I love deadlines.  I love the whooshing noise they make as they go by."
--- Douglas Adams, The Salmon of Doubt, 2002

Rudolf Adamkovič <rudolf@adamkovic.org> [he/him]
http://adamkovic.org


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

end of thread, other threads:[~2024-08-10 14:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-08 10:39 Is raw output from Common Lisp and Scheme broken? Rudolf Adamkovič
2024-08-10 14:19 ` Ihor Radchenko

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