emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Rudolf Adamkovič" <rudolf@adamkovic.org>
To: emacs-orgmode@gnu.org
Subject: Is raw output from Common Lisp and Scheme broken?
Date: Thu, 08 Aug 2024 12:39:56 +0200	[thread overview]
Message-ID: <m2le17cn7n.fsf@adamkovic.org> (raw)

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


             reply	other threads:[~2024-08-08 10:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-08 10:39 Rudolf Adamkovič [this message]
2024-08-10 14:19 ` Is raw output from Common Lisp and Scheme broken? Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2le17cn7n.fsf@adamkovic.org \
    --to=rudolf@adamkovic.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).