From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: [BUG][ODT] Subtree export fails when link references target on higher level Date: Fri, 22 Nov 2013 10:08:59 +0100 Message-ID: References: <87wqk15py1.fsf@gmail.com> <87ob5c6eor.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48786) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjmkS-0004tR-89 for emacs-orgmode@gnu.org; Fri, 22 Nov 2013 04:10:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VjmkL-0001Jq-3H for emacs-orgmode@gnu.org; Fri, 22 Nov 2013 04:10:00 -0500 Received: from mail-forward5.uio.no ([2001:700:100:10::37]:38140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjmkK-0001JJ-Nf for emacs-orgmode@gnu.org; Fri, 22 Nov 2013 04:09:53 -0500 Received: from exim by mail-out5.uio.no with local-bsmtp (Exim 4.80.1) (envelope-from ) id 1VjmkI-00089O-IO for emacs-orgmode@gnu.org; Fri, 22 Nov 2013 10:09:50 +0100 In-reply-to: <87ob5c6eor.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 , Christian Moe Hi, What I described already works out of the box, as long as a bookmark and cross-reference are generated. In LibreOffice, you can then right-click on the field of the cross-reference to display e.g. the target's chapter heading number or page number instead of a textual description. But on reflection, I think there's a strong case to change the default ODT output of links with dedicated targets to page number references. Under the new exporter, such <> are hidden in output, i.e. they no longer contain text that will serve as a description, and as shown by my example they may not always belong to a heading. But in an ODT document they will always belong to a page, and page number references would be a customary choice for printed media. If that sounds reasonable I'll send a mini-patch later today. Yours, Christian Nicolas Goaziou writes: > Hello, > > Christian Moe writes: > >> In ODT, the link can be useful anyway, as the ODT output is a reference >> field that can be automatically updated to a different format, e.g. to >> refer to a page number instead of the (missing) headline text. > > I don't know ODT syntax, but if you provide that useful syntax in this > case, I can add it to ox-odt.el. > > > Regards,