Re: [O] Include heading title in HTML section-number cross-reference, like LaTex \nameref?

2014-02-10 Thread Bastien
I think the whole thread calls for a variable to let the user configure the way she wants references to be inserted. Because \nameref could be useful in LaTeX/Beamer too. And maybe ODT could enjoy such a function too. Nicolas, what do you think? -- Bastien

Re: [O] Include heading title in HTML section-number cross-reference, like LaTex \nameref?

2014-02-10 Thread Nicolas Goaziou
Hello, Bastien b...@gnu.org writes: I think the whole thread calls for a variable to let the user configure the way she wants references to be inserted. Because \nameref could be useful in LaTeX/Beamer too. Internal links in Beamer are complicated, because there's no way to know which slide

Re: [O] Include heading title in HTML section-number cross-reference, like LaTex \nameref?

2014-02-09 Thread Bastien
Hello, D. C. Toedt d...@toedt.com writes: (Org-mode maintainer [Bastien, still?], can you please let me know if / when this gets implemented in an official release.) I'm not Org's maintainer anymore, I'm just /de facto/ taking decisions in accordance with the other core maintainers, our level

Re: [O] Include heading title in HTML section-number cross-reference, like LaTex \nameref?

2014-02-09 Thread Nicolas Goaziou
D. C. Toedt d...@toedt.com writes: I found a problem when trying this on a bigger file (my book file): If $1 (actually, #$1) is for a link target that doesn't exist, then org-mode goes into its No match - create this as a new heading? (y or n) routine. That causes the rest of the export to

Re: [O] Include heading title in HTML section-number cross-reference, like LaTex \nameref?

2014-02-09 Thread D. C. Toedt
Why don't you use [[#IntroTechContracts][Introduction to Technology Contracts]] as a link? I routinely tweak the text of the target headings as I edit the document. For example, the section heading Introduction to Technology Contracts might become, say, Introduction: Why Technology Contracts

Re: [O] Include heading title in HTML section-number cross-reference, like LaTex \nameref?

2014-02-09 Thread D. C. Toedt
Excellent -- that seems to export just fine. Interestingly, the export now generates the message, Position saved to mark ring, go back with C-c . I presume that comes from the ((org-link-search-inhibit-query t)) argument in the let function. It doesn't seem to harm the export results. One of

Re: [O] Include heading title in HTML section-number cross-reference, like LaTex \nameref?

2014-02-09 Thread Nicolas Goaziou
D. C. Toedt d...@toedt.com writes: --- is there a comparable one (or arguments) to get the section number of a heading? There is `org-export-get-headline-number' but is only accessible during export, so it cannot be called from a macro or a Babel block. Anyway, in your case, you just need to

[O] Include heading title in HTML section-number cross-reference, like LaTex \nameref?

2014-02-08 Thread D. C. Toedt
I'm using Org-mode version 8.2.5f with Gnu Emacs 24.3 on a Macbook Air with Mavericks. I'm using it to build building an annotated collection of contract clauses that I'm releasing under a Creative Commons license (see http://www.CommonDraft.org), which I hope to monetize with a book on contract

Re: [O] Include heading title in HTML section-number cross-reference, like LaTex \nameref?

2014-02-08 Thread Nicolas Goaziou
Hello, D. C. Toedt d...@toedt.com writes: QUESTION: When org-mode headings are NUMBERED, and the file is exported to HTML, is there any way to have org-mode include the TITLE, not just the section number, of a cross-referenced section, along the lines of the LaTex \nameref{} function?

Re: [O] Include heading title in HTML section-number cross-reference, like LaTex \nameref?

2014-02-08 Thread D. C. Toedt
That works -- please email me privately with where to send the $100 via PayPal. Thanks! (Org-mode maintainer [Bastien, still?], can you please let me know if / when this gets implemented in an official release.) Regards, D. C. *D. C. Toedt III * *(my** last name is pronounced Tate) *

Re: [O] Include heading title in HTML section-number cross-reference, like LaTex \nameref?

2014-02-08 Thread D. C. Toedt
I found a problem when trying this on a bigger file (my book file): If $1 (actually, #$1) is for a link target that doesn't exist, then org-mode goes into its No match - create this as a new heading? (y or n) routine. That causes the rest of the export to fail. It'd be better if get-title could