Re: [O] [patch] Support CUSTOM_ID property in latex export

2014-02-23 Thread Achim Gratz
Richard Lawrence writes: > OK, I think I've got a patch now that addresses everything you asked > for. It is attached. This has been quite a learning experience! Let > me know if other changes are necessary. http://orgmode.org/worg/org-contribute.html#sec-5 Please use complete sentences in the

Re: [O] [patch] Support CUSTOM_ID property in latex export

2014-02-23 Thread Nicolas Goaziou
Hello, Richard Lawrence writes: > OK, I think I've got a patch now that addresses everything you asked > for. It is attached. This has been quite a learning experience! Let > me know if other changes are necessary. It looks good. I applied it. Thank you for your work. Regards, -- Nicola

Re: [O] [patch] Support CUSTOM_ID property in latex export

2014-02-22 Thread Richard Lawrence
Hi Nicolas and all, OK, I think I've got a patch now that addresses everything you asked for. It is attached. This has been quite a learning experience! Let me know if other changes are necessary. >From 07bfc34a48858aa386c0416e592082610c913ef3 Mon Sep 17 00:00:00 2001 From: Richard Lawrence

Re: [O] [patch] Support CUSTOM_ID property in latex export

2014-02-22 Thread Nicolas Goaziou
Richard Lawrence writes: > True, it is explained that CUSTOM_ID must be unique, but not that the > generated label must be. I have changed this to: > > "You are responsible for ensuring that the value is a valid LaTeX > \\label key, and that no other \\label commands with the same key appear > e

Re: [O] [patch] Support CUSTOM_ID property in latex export

2014-02-22 Thread Richard Lawrence
Hi Nicolas and all, Thanks for your feedback. I have a couple of questions about your comments: Nicolas Goaziou writes: > I think you can remove "that it is unique throughout the generated > document", as it is already explained in the manual, and not specific to > this variable. True, it is

Re: [O] [patch] Support CUSTOM_ID property in latex export

2014-02-22 Thread Nicolas Goaziou
Hello, Richard Lawrence writes: > Here's a new patch that adds a variable org-latex-custom-id-as-label to > control whether CUSTOM_ID should be used to generate labels during LaTeX > export. Thank you for this. > Let me know what you think. In particular, I wasn't sure if I should > provide m

Re: [O] [patch] Support CUSTOM_ID property in latex export

2014-02-21 Thread Richard Lawrence
Hi Nicolas and all, Here's a new patch that adds a variable org-latex-custom-id-as-label to control whether CUSTOM_ID should be used to generate labels during LaTeX export. Let me know what you think. In particular, I wasn't sure if I should provide more information in the defcustom statement be

Re: [O] [patch] Support CUSTOM_ID property in latex export

2014-02-19 Thread Richard Lawrence
Nicolas Goaziou writes: > Richard Lawrence writes: > >> Would using a different property---say, LATEX_LABEL---resolve your >> concerns? This property could be explicitly documented as overriding >> Org's default labeling, with the value passed down directly to LaTeX. > > I'd rather have a varia

Re: [O] [patch] Support CUSTOM_ID property in latex export

2014-02-19 Thread Nicolas Goaziou
Hello, Richard Lawrence writes: > Would using a different property---say, LATEX_LABEL---resolve your > concerns? This property could be explicitly documented as overriding > Org's default labeling, with the value passed down directly to LaTeX. I'd rather have a variable, e.g., `org-latex-custo

Re: [O] [patch] Support CUSTOM_ID property in latex export

2014-02-18 Thread Richard Lawrence
Nicolas Goaziou writes: > Hello, > > Richard Lawrence writes: > >> It seems to me that if you explicitly specify CUSTOM_ID with the intent >> of overriding Org's default labeling, you ought to have some idea what >> can go in a \label, and be prepared to debug your LaTeX compilation if >> there'

Re: [O] [patch] Support CUSTOM_ID property in latex export

2014-02-18 Thread Nicolas Goaziou
Hello, Richard Lawrence writes: > It seems to me that if you explicitly specify CUSTOM_ID with the intent > of overriding Org's default labeling, you ought to have some idea what > can go in a \label, and be prepared to debug your LaTeX compilation if > there's an error. If you're not prepared

Re: [O] [patch] Support CUSTOM_ID property in latex export

2014-02-16 Thread Richard Lawrence
Hi Nicolas, Nicolas Goaziou writes: > Richard Lawrence writes: > >> 1) Sometimes I need to refer to a section from within an embedded LaTeX >> block. In that case, I need to know the appropriate label to use at the >> LaTeX level, not just in Org. For example: >> >> * A headline >> :PROPERT

Re: [O] [patch] Support CUSTOM_ID property in latex export

2014-02-16 Thread Nicolas Goaziou
Hello, Richard Lawrence writes: > 1) Sometimes I need to refer to a section from within an embedded LaTeX > block. In that case, I need to know the appropriate label to use at the > LaTeX level, not just in Org. For example: > > * A headline > :PROPERTIES: > :CUSTOM_ID: sec:a-headline >

Re: [O] [patch] Support CUSTOM_ID property in latex export

2014-02-15 Thread Richard Lawrence
Nicolas Goaziou writes: > Richard Lawrence writes: > >> Here is a patch to add support for using CUSTOM_ID properties for labels >> and refs in the LaTeX exporter. > > Thank you for the patch. Though, I don't understand why it is needed. > >> I also need this behavior, which is why I wrote this.

Re: [O] [patch] Support CUSTOM_ID property in latex export

2014-02-15 Thread Nicolas Goaziou
Hello, Richard Lawrence writes: > Here is a patch to add support for using CUSTOM_ID properties for labels > and refs in the LaTeX exporter. Thank you for the patch. Though, I don't understand why it is needed. > The patch uses the value of CUSTOM_ID when exporting a headline for the > associa

[O] [patch] Support CUSTOM_ID property in latex export

2014-02-15 Thread Richard Lawrence
>From 81115d0884c165778520aa1b4d4fa83580417e1c Mon Sep 17 00:00:00 2001 From: Richard Lawrence Date: Sat, 15 Feb 2014 11:59:44 -0800 Subject: [PATCH] LaTeX export: support CUSTOM_ID property in section labels and link refs * lisp/ox-latex.el (org-latex-headline): when exporting a headline, if