• [Emacs|Org|Babel] Blocks Writing Blocks

    From yeti@yeti@tilde.institute to tilde.meta on Thu Jun 5 20:58:06 2025
    The org source:

    ------------------------------------------------------------------------ #+title: Blocks Writing Blocks
    #+subtitle: Wasn't me, Mom! REALLY!!!
    #+author: My Emacs.

    * The Seed :noexport:

    #+begin_src sh :results raw :exports both :eval exports
    for I in Cat Dog Elephant Fox Penguin
    do
    is="$(printf ${I}s | tr [A-Z] [a-z]) are very interesting"
    echo "* $I"
    echo "#+begin_src sh :results raw :exports results :eval exports"
    echo "echo 'My little language model claims that $is.'"
    echo "#+end_src"
    done
    #+end_src ------------------------------------------------------------------------

    The export to plain text:

    ------------------------------------------------------------------------
    ____________________________

    BLOCKS WRITING BLOCKS
    Wasn't me, Mom! REALLY!!!

    My Emacs.
    ____________________________


    Table of Contents
    _________________

    1. Cat
    2. Dog
    3. Elephant
    4. Fox
    5. Penguin





    1 Cat
    =====

    My little language model claims that cats are very interesting.


    2 Dog
    =====

    My little language model claims that dogs are very interesting.


    3 Elephant
    ==========

    My little language model claims that elephants are very interesting.


    4 Fox
    =====

    My little language model claims that foxs are very interesting.


    5 Penguin
    =========

    My little language model claims that penguins are very interesting. ------------------------------------------------------------------------

    | Trying something like this was on my to do list for quite a while.
    |
    | I do smell fun for the whole family! \o/
    \|/
    V
    --
    I do not bite, I just want to play.
    --- Synchronet 3.20a-Linux NewsLink 1.2