1

So, as the question suggest, what i want is to use two different source code block, side by side on the same file. Something like this:

#+BEGIN_SRC shell         #+BEGIN_SRC shell
ls /mnt/                  echo "hello"
#+END_SRC                 #+END_SRC

I need them to be like this mostly for understanding/comparing some output from commands, and while I'm sure it's easier to achieve this by using org-mode and rendering the source code block side by side, in the rendered documents instead, i prefer not doing so.

I also did try using two window side by side with two different files, but i really prefer if everything is on the same file.

Typically, i need the result to be on the same level as the source code block:

#+BEGIN_SRC shell         #+BEGIN_SRC shell
ls /mnt/                  echo "hello"
#+END_SRC                 #+END_SRC

#+RESULTS:                #+RESULTS:
| folder1 |               | hello |
| folder2 |

I used space as delimiter between the two block, but i don't mind if it's any other delimiter (like tab).

9
  • 2
    Not possible AFAIK. You'd need to rewrite the whole of babel.
    – NickD
    Oct 16, 2020 at 13:50
  • @nickd Does babel not "nest" in latex? Which of course has such possibilities I think?
    – Rusi
    Oct 16, 2020 at 14:15
  • I'm not sure what you mean by "nesting in latex". How does LaTeX enter in the scenario above?
    – NickD
    Oct 16, 2020 at 15:06
  • @NickD : I'm suggesting that the org source as written won't work (as are you). I'm also conjecturing that if the arc blocks are put one after the other and embedded within @@html with suitable css included the html export can be made to show as OP wants. (I know about zero of html/css and less about latex 😉 ... so treat my conjectures with appropriate quantities of salt)
    – Rusi
    Oct 17, 2020 at 3:51
  • 1
    That might be possible indeed, but I don't think that's what the OP is asking for.
    – NickD
    Oct 17, 2020 at 13:49

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.