Re: [O] A Babel block to #+INCLUDE all .org files of a directory

2014-09-01 Thread Andrea Rossetti
Andrea Rossetti  writes:
>   I wrote a Babel block to generate the #+INCLUDE statements
> for all Org files of a directory.
>
> https://github.com/thesoftwarebin/the-emacs-software-bin/tree/master/include-all-org-files

Hello Org users,

  just in case you try to visit the link of that script
for multiple #+INCLUDE files: I renamed it into

https://github.com/thesoftwarebin/the-emacs-software-bin/tree/master/include-many-files

because now the user can specify inclusion of files
with any extension (see example/main.org).

Kindest regards,

  Andrea



Re: [O] A Babel block to #+INCLUDE all .org files of a directory

2014-08-30 Thread Andrea Rossetti
Andrea Rossetti  writes:
>   my_reference_manual.org
>   abs.org
>   ...
>   printf.org
>   strcpy.org

sorry for the typo, I meant:

  my_c_manual.org
abs.org
...
printf.org
strcpy.org



Re: [O] A Babel block to #+INCLUDE all .org files of a directory

2014-08-30 Thread Andrea Rossetti
Hello,

Grant Rettke  writes:
> May you please discuss your use case that motivated this code?

  typical usage scenarios could be:

  1) write a book of many chapters, one main.org file
 and many second-level .org files, one file per chapter,
 and you don't want to manually write all the #INCLUDEs:

  main.org
chapter01-the-intro.org
chapter02-another-day-another-story.org
chapter03-bad-day-emacs-froze-again.org
...
chapter47-end.org

  2) write some reference manual (example: my_c_manual.org)
 that includes many .org files, every one of them shows usage
 and examples of a language keyword or library function:

  my_reference_manual.org
abs.org
...
printf.org
strcpy.org

  Thanks to everyone for whatever feedback, kindest regards.

  Andrea



Re: [O] A Babel block to #+INCLUDE all .org files of a directory

2014-08-30 Thread Grant Rettke
May you please discuss your use case that motivated this code?
Grant Rettke | ACM, ASA, FSF
g...@wisdomandwonder.com | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson


On Sat, Aug 30, 2014 at 10:50 AM, Andrea Rossetti
 wrote:
> Hi Org users,
>
>   I wrote a Babel block to generate the #+INCLUDE statements
> for all Org files of a directory.
>
>   Nothing spectacular: not recursive through directories,
> only .org files ... but I wanted to share it, just in case
> someone finds it helpful. Source code and usage example
> are available here:
>
> https://github.com/thesoftwarebin/the-emacs-software-bin/tree/master/include-all-org-files
>
> (GitHub renders Org files as html, so be sure to click the "Raw" button
> in order to see #+BEGIN_SRC, #+END_SRC and #+COMMENTS)
>
>   Opinions, corrections and enhancements are of course
> more than welcome. Kindest regards,
>
>   Andrea
>
>



[O] A Babel block to #+INCLUDE all .org files of a directory

2014-08-30 Thread Andrea Rossetti
Hi Org users,

  I wrote a Babel block to generate the #+INCLUDE statements
for all Org files of a directory.

  Nothing spectacular: not recursive through directories,
only .org files ... but I wanted to share it, just in case
someone finds it helpful. Source code and usage example
are available here:

https://github.com/thesoftwarebin/the-emacs-software-bin/tree/master/include-all-org-files

(GitHub renders Org files as html, so be sure to click the "Raw" button
in order to see #+BEGIN_SRC, #+END_SRC and #+COMMENTS)

  Opinions, corrections and enhancements are of course
more than welcome. Kindest regards,

  Andrea