From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonas Bernoulli Subject: ox-texinfo: non-numbered links to numbered sections Date: Fri, 08 Apr 2016 12:07:44 +0200 Message-ID: <87fuuwfm6n.fsf@bernoul.li> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoTKR-0006yf-C2 for emacs-orgmode@gnu.org; Fri, 08 Apr 2016 06:07:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoTKO-0003G3-4e for emacs-orgmode@gnu.org; Fri, 08 Apr 2016 06:07:51 -0400 Received: from mail.hostpark.net ([212.243.197.30]:54782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoTKN-0003FP-U3 for emacs-orgmode@gnu.org; Fri, 08 Apr 2016 06:07:48 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.hostpark.net (Postfix) with ESMTP id C5DCD16B43 for ; Fri, 8 Apr 2016 12:07:44 +0200 (CEST) Received: from mail.hostpark.net ([127.0.0.1]) by localhost (mail1.hostpark.net [127.0.0.1]) (amavisd-new, port 10124) with ESMTP id Afk5XKmseRBa for ; Fri, 8 Apr 2016 12:07:44 +0200 (CEST) Received: from hal (80-218-86-217.dclient.hispeed.ch [80.218.86.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.hostpark.net (Postfix) with ESMTPSA id 9B84F16B3B for ; Fri, 8 Apr 2016 12:07:44 +0200 (CEST) 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: emacs-orgmode@gnu.org Hello, Currently "#+OPTIONS: num:N" not only affects whether sections are numbered, it also controls whether links to numbered sections look like See *note 5.2.3: Section hooks. or See *note Section hooks: Section hooks. in the info file. Here the first seems better, but when looking at this inside the Info viewer, then it is either See 5.2.3. or See Section hooks. And now the numbered variant is just not informative enough for my needs. I want links to inform the user what they will get when they click on it, not how far away from the current location the link takes them ;-) I would like if the second form were always used, or if you could add an option that allowed selecting the desired style. The former could be accomplished simply by removing ((org-export-numbered-headline-p destination info) (mapconcat #'number-to-string (org-export-get-headline-number destination info) ".")) from `org-texinfo-link'. Also note that the use of "numbered links" seems to mess with paragraph justification. In that case lines that contain links tend to be to short and it gets worse the longer the title gets, probably because that is present in the info file (and therefor used for justification (maybe that could be changed?)), but then not displayed in the Info viewer. Thanks, Jonas