emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] HTML :exports both problem


From: Lawrence Bottorff
Subject: [O] HTML :exports both problem
Date: Sun, 18 Nov 2018 23:55:38 -0600

Try this at home:

#+begin_src lisp :results output :exports both
  (dotimes (i 4)
    (format t "~3d " i))
#+end_src

#+RESULTS:
:   0   1   2   3 

#+name:
#+begin_src lisp :exports both
  (defun multabl ()
    (dotimes (x 20)
      (dotimes (y 20)
        (format t "~3d " (* (1+ x) (1+ y))))
      (format t "~%")))
#+end_src


#+name:
#+begin_src lisp :exports both
  (defun dt-test ()
    (let ((y 0))
    (dotimes (x 5 y)
      (format t "~3d " y))))
#+end_src

What I get when I export to HTML is bizarre, i.e., the results of the first code block don't appear, rather, the name of the last function! If I put the last two blocks between #+BEGIN_COMMENT and #+END_COMMENT, it behaves normally and shows the results.

Am I missing something?

LB

reply via email to

[Prev in Thread] Current Thread [Next in Thread]