From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: merging subtrees (in a syllabus) Date: Wed, 23 Aug 2017 20:55:09 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f40304361924b6541a0557754735" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dkgQT-0007tU-GV for emacs-orgmode@gnu.org; Wed, 23 Aug 2017 20:55:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dkgQS-0003Tr-Kt for emacs-orgmode@gnu.org; Wed, 23 Aug 2017 20:55:13 -0400 Received: from mail-pg0-x229.google.com ([2607:f8b0:400e:c05::229]:36741) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dkgQS-0003T8-Ck for emacs-orgmode@gnu.org; Wed, 23 Aug 2017 20:55:12 -0400 Received: by mail-pg0-x229.google.com with SMTP id 83so7938325pgb.3 for ; Wed, 23 Aug 2017 17:55:10 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" Cc: Org Mode --f40304361924b6541a0557754735 Content-Type: text/plain; charset="UTF-8" On Wed, Aug 23, 2017 at 4:55 PM, Kaushal Modi wrote: > On Tue, Aug 22, 2017 at 4:10 PM Matt Price wrote: > >> And then I'd run some elisp that mashes them all up together, and give >> that to the students, since I think that'll make it easier for them to read. >> >> Anyone on the list have any ideas? >> > > How about using plain old #+INCLUDE: > > Hmm, Interesting. It's not quite as flexible as I'd like -- what I'd most prefer to do is to move the discussion topics and labs around arbitrarily and then have org print things out for me nice and cleanly. I'm not sure but maybe something more like this (ends up being a little ugly with all the crazy counter macros): * outline ** Week 1 #+INCLUDE: "~/test.org::#topic1" #+INCLUDE: "~/test.org::#lab1" * labs :noexport: *** lab zero 1 :PROPERTIES: :CUSTOM_ID: lab{{{n(labs)}}} :END: * topics :noexport: *** topic oh oh one :PROPERTIES: :CUSTOM_ID: topic{{{n(topics)}}} :END: I'd prefer to have macros in the "Week" headlines and the #+INCLUDE statements but macros don't expand in INCLUDES, unfortunately. This is OK but still not super-elegant. Still, definitley better than nothing! > ---------------------- > I don't have a good idea on how to implement the date thing, but I see > that others have provided some input. > I came up with an acceptable solution, bu it's not very sophisticated -- see the other thread... > -- > > Kaushal Modi > --f40304361924b6541a0557754735 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Wed, Aug 23, 2017 at 4:55 PM, Kaushal Modi <kaushal.modi@gmail= .com> wrote:
On = Tue, Aug 22, 2017 at 4:10 PM Matt Price <moptop99@gmail.com> wrote:
And then I= 'd run some elisp that mashes them all up together, and give that to th= e students, since I think that'll make it easier for them to read.
<= /div>

Anyone on the list have any ideas?

How about using plain old #+INCLUDE:
Hmm, Interesting. It's not quite a= s flexible as I'd like -- what I'd most prefer to do is to move the= discussion topics and labs around arbitrarily and then have org print thin= gs out for me nice and cleanly.=C2=A0 I'm not sure but maybe something = more like this (ends up being a little ugly with all the crazy counter macr= os):


* outline
** Week 1
#+IN= CLUDE: "~/test.org::#topic1"
#+INCLUDE: "~/test.org::#la= b1"
* labs :noexport:
*** lab zero 1
:PROPERTIES:
:CUSTOM= _ID: lab{{{n(labs)}}}
:END:
* topics=C2=A0 :noexport:
*** topic oh= oh one
:PROPERTIES:
:CUSTOM_ID: topic{{{n(topics)}}}
:END:

I'd prefer to have macros in the "Week"= ; headlines and=C2=A0 the #+INCLUDE statements but macros don't expand = in INCLUDES, unfortunately.=C2=A0 This is OK but still not super-elegant.= =C2=A0 Still, definitley better than nothing!


=

--------------= --------
I don't have a good = idea on how to implement the date thing, but I see that others have provide= d some input.=C2=A0

I cam= e up with an acceptable solution, bu it's not very sophisticated -- see= the other thread...
=C2=A0
--

K= aushal Modi


--f40304361924b6541a0557754735--