From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mats Kindahl Subject: Replacing links with section numbers in ASCII export Date: Thu, 25 Oct 2012 14:44:57 +0200 Message-ID: <50893449.9010407@oracle.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------010202020205040503070000" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:49234) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRMoI-0005Dg-P0 for emacs-orgmode@gnu.org; Thu, 25 Oct 2012 08:45:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TRMoH-00017Z-EJ for emacs-orgmode@gnu.org; Thu, 25 Oct 2012 08:45:18 -0400 Received: from rcsinet15.oracle.com ([148.87.113.117]:49766) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRMoH-00016M-77 for emacs-orgmode@gnu.org; Thu, 25 Oct 2012 08:45:17 -0400 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q9PCjDNv028827 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 25 Oct 2012 12:45:14 GMT Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q9PCjDBF025394 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 25 Oct 2012 12:45:13 GMT Received: from abhmt113.oracle.com (abhmt113.oracle.com [141.146.116.65]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q9PCjDAX028064 for ; Thu, 25 Oct 2012 07:45:13 -0500 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: emacs-orgmode@gnu.org This is a multi-part message in MIME format. --------------010202020205040503070000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi all, I would like to get references to sections replaced with the section number in ASCII export instead of the link name, that is, something similar to how LaTeX handles \label and \ref (but for ASCII export). Is this possible? For example: * Top Header ** Inner Header Some text... ** Other Inner Header Here I would like to have a reference to [[Inner Header]] as a section /number/. Best wishes, Mats Kindahl --------------010202020205040503070000 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi all,

I would like to get references to sections replaced with the section number in ASCII export instead of the link name, that is, something similar to how LaTeX handles \label and \ref (but for ASCII export). Is this possible?

For example:
* Top Header

** Inner Header

Some text...

** Other Inner Header

Here I would like to have a reference to [[Inner Header]] as a section /number/.
Best wishes,
Mats Kindahl

--------------010202020205040503070000-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Replacing links with section numbers in ASCII export Date: Thu, 25 Oct 2012 14:44:23 +0200 Message-ID: <87objqlo0o.fsf@gmail.com> References: <50893449.9010407@oracle.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:49831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRMrM-00060z-Ej for emacs-orgmode@gnu.org; Thu, 25 Oct 2012 08:48:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TRMrF-0001mx-4V for emacs-orgmode@gnu.org; Thu, 25 Oct 2012 08:48:28 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:34846) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRMrE-0001me-UF for emacs-orgmode@gnu.org; Thu, 25 Oct 2012 08:48:21 -0400 Received: by mail-we0-f169.google.com with SMTP id u3so979807wey.0 for ; Thu, 25 Oct 2012 05:48:20 -0700 (PDT) In-Reply-To: <50893449.9010407@oracle.com> (Mats Kindahl's message of "Thu, 25 Oct 2012 14:44:57 +0200") 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: Mats Kindahl Cc: emacs-orgmode@gnu.org Hello, Mats Kindahl writes: > I would like to get references to sections replaced with the section > number in ASCII export instead of the link name, that is, something > similar to how LaTeX handles \label and \ref (but for ASCII export). Is > this possible? > > For example: > > * Top Header > > ** Inner Header > > Some text... > > ** Other Inner Header > > Here I would like to have a reference to [[Inner Header]] as a > section /number/. It is possible in the new (experimental) exporter. Regards, -- Nicolas Goaziou From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mats Kindahl Subject: Re: Replacing links with section numbers in ASCII export Date: Thu, 25 Oct 2012 16:12:28 +0200 Message-ID: <508948CC.50802@oracle.com> References: <50893449.9010407@oracle.com> <87objqlo0o.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45182) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TROAx-0006Rp-V9 for emacs-orgmode@gnu.org; Thu, 25 Oct 2012 10:12:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TROAw-0007jh-TF for emacs-orgmode@gnu.org; Thu, 25 Oct 2012 10:12:47 -0400 Received: from rcsinet15.oracle.com ([148.87.113.117]:29410) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TROAw-0007jS-M1 for emacs-orgmode@gnu.org; Thu, 25 Oct 2012 10:12:46 -0400 In-Reply-To: <87objqlo0o.fsf@gmail.com> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org On 10/25/2012 02:44 PM, Nicolas Goaziou wrote: > Hello, > > Mats Kindahl writes: > >> I would like to get references to sections replaced with the section >> number in ASCII export instead of the link name, that is, something >> similar to how LaTeX handles \label and \ref (but for ASCII export). Is >> this possible? >> >> For example: >> >> * Top Header >> >> ** Inner Header >> >> Some text... >> >> ** Other Inner Header >> >> Here I would like to have a reference to [[Inner Header]] as a >> section /number/. > It is possible in the new (experimental) exporter. That is nice. I assume that I have to use the development branch in that case? /Matz > > > Regards, > -- Senior Principal Software Developer Oracle, MySQL Department From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Replacing links with section numbers in ASCII export Date: Thu, 25 Oct 2012 16:15:27 +0200 Message-ID: <87zk3ak58g.fsf@gmail.com> References: <50893449.9010407@oracle.com> <87objqlo0o.fsf@gmail.com> <508948CC.50802@oracle.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TROHP-0003DT-Hr for emacs-orgmode@gnu.org; Thu, 25 Oct 2012 10:19:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TROHJ-0001q1-Q9 for emacs-orgmode@gnu.org; Thu, 25 Oct 2012 10:19:27 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:36205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TROHJ-0001pn-KY for emacs-orgmode@gnu.org; Thu, 25 Oct 2012 10:19:21 -0400 Received: by mail-we0-f169.google.com with SMTP id u3so1033523wey.0 for ; Thu, 25 Oct 2012 07:19:20 -0700 (PDT) In-Reply-To: <508948CC.50802@oracle.com> (Mats Kindahl's message of "Thu, 25 Oct 2012 16:12:28 +0200") 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: Mats Kindahl Cc: emacs-orgmode@gnu.org Mats Kindahl writes: > That is nice. I assume that I have to use the development branch in that > case? Yes, its merge is planned for Org 8.0. For now it lies in the contrib/ directory. If you want to try it, assuming contrib/ is in your load-patch, just require the back-end(s) you need, in this case (require 'org-e-ascii), and call M-x org-export-dispatch. Regards, From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mats Kindahl Subject: Re: Replacing links with section numbers in ASCII export Date: Thu, 25 Oct 2012 16:21:55 +0200 Message-ID: <50894B03.9010003@oracle.com> References: <50893449.9010407@oracle.com> <87objqlo0o.fsf@gmail.com> <508948CC.50802@oracle.com> <87zk3ak58g.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39715) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TROJy-0004ln-BG for emacs-orgmode@gnu.org; Thu, 25 Oct 2012 10:22:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TROJx-0002qO-Ai for emacs-orgmode@gnu.org; Thu, 25 Oct 2012 10:22:06 -0400 Received: from rcsinet15.oracle.com ([148.87.113.117]:21952) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TROJx-0002qB-4a for emacs-orgmode@gnu.org; Thu, 25 Oct 2012 10:22:05 -0400 In-Reply-To: <87zk3ak58g.fsf@gmail.com> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org On 10/25/2012 04:15 PM, Nicolas Goaziou wrote: > Mats Kindahl writes: > >> That is nice. I assume that I have to use the development branch in that >> case? > Yes, its merge is planned for Org 8.0. For now it lies in the contrib/ > directory. > > If you want to try it, assuming contrib/ is in your load-patch, just > require the back-end(s) you need, in this case (require 'org-e-ascii), > and call M-x org-export-dispatch. OK. Thanks! I'll try it out. /Matz > > Regards, -- Senior Principal Software Developer Oracle, MySQL Department