From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Announcement: org-one-to-many Date: Thu, 12 Feb 2015 15:43:08 -0800 Message-ID: References: <87ppdlfotc.fsf@wmi.amu.edu.pl> <87386a3gl4.fsf@wmi.amu.edu.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47262) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YM3Pk-0006or-7X for emacs-orgmode@gnu.org; Thu, 12 Feb 2015 18:43:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YM3Pe-00040C-Ee for emacs-orgmode@gnu.org; Thu, 12 Feb 2015 18:43:20 -0500 Received: from smtp.andrew.cmu.edu ([128.2.157.37]:39410) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YM3Pe-0003zG-9E for emacs-orgmode@gnu.org; Thu, 12 Feb 2015 18:43:14 -0500 In-reply-to: <87386a3gl4.fsf@wmi.amu.edu.pl> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Marcin Borkowski Cc: Org mailing list I think it would be easy to copy all the file keywords. One way would just be searching by regexp. Another way could be similar to: http://kitchingroup.cheme.cmu.edu/blog/2013/05/05/Getting-keyword-options= -in-org-files/ if you know in advance what the important ones are. Marcin Borkowski writes: > Hello everybody, > > so I've got this little library of mine, called org-one-to-many, which > can split an Org file into pieces, modifying internal links so that the= y > still point to the same place (even if now in another file). > > But I have a problem with it. I would like to export all the resulting > files into, say, HTML, and the problem is that all the options > (obviously) don't propagate to the =E2=80=9Csubfiles=E2=80=9D =E2=80=93= so that if I say e.g. > > #+LANGUAGE: pl > > anywhere in the file, it is not copied to all the resulting files > (generated from headings), unless this line happens to be in one of the= m > (and then it disappears from the =E2=80=9Cmain=E2=80=9D file). > > I can see two solutions to this problem. One is to somehow recognize > these lines and copy them to all the resulting files. One trouble with > that is that I=E2=80=99d have to decide, for instance, /where/ to put t= hem =E2=80=93 at > the beginning? > > The easier solution, which /might/ also be =E2=80=9Ccleaner=E2=80=9D in= a sense, is to > recognize some kind of =E2=80=9Cspecial=E2=80=9D heading - for instance= , > > * COMMENT Config > #+LANGUAGE: pl > > or something like that, and copy it verbatim to all the generated files= , > say =E2=80=93 at their end. > > What do you think? Can you see another solution? If not, which of the > above do you consider a better one? > > TIA, -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu