From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: transcluding some org-elements in multiple places Date: Thu, 5 Jan 2017 21:19:13 -0500 Message-ID: References: <3d4bfe3d30ae4c5a8be905fa6b15f350@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> <87shpx5aov.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1148ebcae75617054563a4bb Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44191) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cPK7g-0000E6-Ed for emacs-orgmode@gnu.org; Thu, 05 Jan 2017 21:19:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cPK7f-0007QK-Jw for emacs-orgmode@gnu.org; Thu, 05 Jan 2017 21:19:16 -0500 Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]:37582) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cPK7f-0007QB-D7 for emacs-orgmode@gnu.org; Thu, 05 Jan 2017 21:19:15 -0500 Received: by mail-wm0-x22c.google.com with SMTP id t79so10787490wmt.0 for ; Thu, 05 Jan 2017 18:19:15 -0800 (PST) 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" To: Matt Price Cc: Org Mode --001a1148ebcae75617054563a4bb Content-Type: text/plain; charset=UTF-8 It would be easy to have it export the plain text of the transcluded heading. to export the actual heading, I would setup a preprocessing hook that replaces the link with the content it points to. John ----------------------------------- 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 On Thu, Jan 5, 2017 at 9:17 PM, Matt Price wrote: > > > On Thu, Jan 5, 2017 at 7:30 PM, John Kitchin > wrote: > >> I didn't test it with other files, and it does not seem to work with >> them. For some reason (org-open-link-from-string path) does not seem to >> actually open the file at path. I am not sure why, since the follow code >> works just fine. >> >> Here is a hackier version that seems to work for me: >> > > Might be hackier but it works for me! Thanks John! > > Would be cool to somehow include in export. But that's a little too hard > for me to think about. This is already pretty good. Thank you! > > --001a1148ebcae75617054563a4bb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
It would be easy to have it export the plain text of the t= ranscluded heading. to export the actual heading, I would setup a preproces= sing hook that replaces the link with the content it points to.

J= ohn

-----------------------------------
Professor John Kitchin=C2= =A0
Doherty Hall A207F
Department of Chemical Engineering
Carnegie= Mellon University
Pittsburgh, PA 15213
412-268-7803
=

On Thu, Jan 5, 2017 at 9:17 PM, Matt Price <= span dir=3D"ltr"><moptop99@gmail.com> wrote:


On Thu, Jan 5, 2017 at 7:30 PM, John Kitchin <jkitchin@andrew.cmu.edu> wrote:
I didn't test it with other files, and it does not seem to work w= ith
them. For some reason (org-open-link-from-string path) does not seem to
actually open the file at path. I am not sure why, since the follow code works just fine.

Here is a hackier version that seems to work for me:

Might be hackier but i= t works for me! Thanks John!

Would be cool to somehow inc= lude in export. But that's a little too hard for me to think about.=C2= =A0 This is already pretty good. Thank you!
=C2=A0
=

--001a1148ebcae75617054563a4bb--