From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: tricky odt export needs Date: Fri, 20 Dec 2013 10:25:30 +0100 Message-ID: References: <87eh58ghn1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46263) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtwKt-00031k-4l for emacs-orgmode@gnu.org; Fri, 20 Dec 2013 04:25:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VtwKm-0001wH-Gh for emacs-orgmode@gnu.org; Fri, 20 Dec 2013 04:25:35 -0500 Received: from mail-forward4.uio.no ([2001:700:100:10::33]:44539) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtwKm-0001YO-22 for emacs-orgmode@gnu.org; Fri, 20 Dec 2013 04:25:28 -0500 Received: from exim by mail-out4.uio.no with local-bsmtp (Exim 4.80.1) (envelope-from ) id 1VtwKA-0006N1-FY for emacs-orgmode@gnu.org; Fri, 20 Dec 2013 10:24:50 +0100 In-reply-to: <87eh58ghn1.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: Jambunathan K Cc: Dan Griswold , Nicolas Goaziou , emacs-orgmode@gnu.org, Christian Moe Jambunathan K writes: > The following message is a courtesy copy of an article > that has been posted to gmane.emacs.orgmode as well. > > > Christian Moe writes: > >> You can do cross-references with ordinary links. Have a look at the >> manual section 4.2, "Internal links". However, what you get out of the >> box is textual references to e.g. section headings, not page >> references. You can change that for each reference individually by >> right-clicking on them in LibreOffice. There should be a way to get >> page references by default, but off the cuff, I'm not sure how. > > I am interested in rolling out support for xref by pagenumbers. I would > like to know what the standard or recommended practice is like. > > So, when one says "I want pagenumbers for xref", what xref-es they have > in mind. Do they mean ONE-or-SOME-or-ALL of a xref to outline headings, > figure, table, source listings, formula etc. I don't know what recommended practice is would be. My own take on this is that all objects you mention are probably best left as xrefs to the section, figure etc. concerned, exported as section title, section number, figure number etc. as appropriate. On a different thread, however, I have suggested that xrefs to *dedicated link targets* should export as page numbers in ODT. (Or this should be made an option.) http://article.gmane.org/gmane.emacs.orgmode/79096 Nicolas Goaziou raised a couple of objections on that thread, as did you. I forgot to copy my reply to the list, and I think I partly misunderstood what Nicolas was saying, anyway. Nicolas raised a use case I'd forgotten about: Dedicated link targets in list items are currently exported as the item number. Nicolas suggested that item numbers are more useful than page numbers here, and he's probably right. But keeping this behavior would make my proposal more complex to implement and maintain. Nicolas also raised concerns over backend compatibility. However, I don't think this is a strong argument against introducing page number references. A page reference solution makes sense for paged media (ODT, LaTeX backends) but not for screen (HTML). Finally, it should also be considered to make page numbers the default for *non-numbered* headings: When headings are not numbered in export (#+options: num:nil), current ODT export outputs a cross-reference with a descriptive text equal to the heading text of the item the dedicated target is in. However, this seems to be fragile; as soon as you Update Fields in LibreOffice, the cross-reference collapses to an empty space. The other backends also seem to struggle with the case of xrefs to headings without heading numbering. Yours, Christian