From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id AAMZGwrQMWOERAEAbAwnHQ (envelope-from ) for ; Mon, 26 Sep 2022 18:15:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cFAQGwrQMWOALwEAauVa8A (envelope-from ) for ; Mon, 26 Sep 2022 18:15:06 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 06B543DF08 for ; Mon, 26 Sep 2022 18:15:06 +0200 (CEST) Received: from localhost ([::1]:46524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ocql7-00062K-0f for larch@yhetil.org; Mon, 26 Sep 2022 12:15:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52284) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocqD9-0005Hf-Nz for emacs-orgmode@gnu.org; Mon, 26 Sep 2022 11:39:59 -0400 Received: from mout02.posteo.de ([185.67.36.66]:37617) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocqD5-00070S-KU for emacs-orgmode@gnu.org; Mon, 26 Sep 2022 11:39:59 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id DFC33240101 for ; Mon, 26 Sep 2022 17:39:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1664206791; bh=6SgR38/HMCvKecaQ+LywAmkKtGOM3ZQcmvlN4itIJdg=; h=From:To:Cc:Subject:Date:From; b=ZJ5lxInU9qIrHq4erG7VFkWel7RqJEevKHZrFxylN5gNLuPNZZdRaVvH/P4wCxvMj zPrVVV3J+9cdrU8tTfmk496gy4ofIlbq4XOPugU1SveylAM1iweq1hUJiEgv0DvhHr L2O0/BhgQYeThzgnjXLl4lZYI9gvO7lRaq4NtnysGQU33LPAIgXjjd+M/2Nun79aVT L64x11wgUT+HZTp7myTt0bLMg+WfTcEfhcWUYcXKmQ2jRqagr6SpKT2c+cTFKUYCpt 3sdVajfYRz545DszieiBQeifY843O3YTEWVYWFoF+seJPTVDOrFP/aznlg8npQI/jY raMYQc86jNYwg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Mbn4l2KT7z9rxW; Mon, 26 Sep 2022 17:39:51 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: reza Cc: orgmode Subject: Re: Extract toc from org file References: <100cb12a-b3f1-739a-84f1-847f5e86a8bc@housseini.me> <0102018379a514bb-022ca801-7259-4a39-8368-80ce371128de-000000@eu-west-1.amazonses.com> Date: Mon, 26 Sep 2022 15:39:50 +0000 In-Reply-To: <0102018379a514bb-022ca801-7259-4a39-8368-80ce371128de-000000@eu-west-1.amazonses.com> (reza@housseini.me's message of "Mon, 26 Sep 2022 11:53:25 +0000") Message-ID: <87fsgef8l5.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664208906; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=fcHST5MnhD+8hem2i9kGM4aJmP25rjGxzF30jnYJ+MI=; b=AWcCfkvY0LtXZc37wche9OzNKWDK/KZ4LSEWtc+o1/E/ztBHxAY7K9A45ahYUA0L2Jdcw8 7TjrleR28TDY/QhUVJ/EuULtx5/19DbZ4vR84M6/DLjRXGKpe6iB8/gOko466leducBWUG 4faeNHhzyp5d1t6YLGalH0wdU7vrdQ3nVMkRiFGPerkcVdPPpdKUPrw6iS0QsxV3ame7z0 fiflJtBqBsiYygALzew7njbwp7V+jMjthWJ2Lh/W7yiXIaURhmKD1AvRNd0WbhNVx5USUU 3W22BMzIoRmoEzo4PdlZoAAIgzbDs826+APzNMEmolTudkhTIiP9DknbhDxxVw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664208906; a=rsa-sha256; cv=none; b=tvA7Am2/sC/YHjjDmLhvKsOThV17nEjar5c3MYJtRL7XYRfqqx0EUNWKgAyB3wJ2ZPTTBs JWR2OW5c4gUiEXCs3lN1x5eTuoQJEMfX8TKb63oEJw2G97qJ57wimLS2j393bQtDuFdFl1 6nBBxTVDO5/h1Ni/Q2tsqggcrGWPdpANwzDeG9SL/9mNuXt+c4ikLdOX+OGGhJs5As00/U yAfCaRPQHboLi7OZ77FvXl2IgQF0ZZieldcMaTrdHUOUq6e9dgA46uKmVx0+1wW29y7BK8 4vZdHjj/XZ8PciOXQCUUTdipaM3U4xUxSaBTJo4cytn6bMsoVpBEiqtabXq8kA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ZJ5lxInU; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.55 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ZJ5lxInU; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 06B543DF08 X-Spam-Score: -2.55 X-Migadu-Scanner: scn1.migadu.com X-TUID: vKYsaC8kkdNo reza writes: > Is there a way to extract a toc from an org file e.g: > > #+INCLUDE: myfile.org :toc only > > I want to assemble the toc's from several files into one file and there > seems to be no easy way to do this. Maybe the org-make-toc package can help you with what you're looking for: https://github.com/alphapapa/org-make-toc You can choose a heading on every document to contain a TOC. And then link = each heading via org-transclusion: https://github.com/nobiot/org-transclusion Best regards, Juan Manuel -- -- ------------------------------------------------------ Juan Manuel Mac=C3=ADas https://juanmanuelmacias.com https://lunotipia.juanmanuelmacias.com https://gnutas.juanmanuelmacias.com