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

2014-02-23 Thread Nicolas Goaziou
Hello, Richard Lawrence richard.lawre...@berkeley.edu 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

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-22 Thread Nicolas Goaziou
Hello, Richard Lawrence richard.lawre...@berkeley.edu 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

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 n.goaz...@gmail.com 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

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

2014-02-22 Thread Nicolas Goaziou
Richard Lawrence richard.lawre...@berkeley.edu 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

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-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

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

2014-02-19 Thread Nicolas Goaziou
Hello, Richard Lawrence richard.lawre...@berkeley.edu 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

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

2014-02-19 Thread Richard Lawrence
Nicolas Goaziou n.goaz...@gmail.com writes: Richard Lawrence richard.lawre...@berkeley.edu 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

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

2014-02-18 Thread Nicolas Goaziou
Hello, Richard Lawrence richard.lawre...@berkeley.edu 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

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

2014-02-18 Thread Richard Lawrence
Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Richard Lawrence richard.lawre...@berkeley.edu 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

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

2014-02-16 Thread Nicolas Goaziou
Hello, Richard Lawrence richard.lawre...@berkeley.edu 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:

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

2014-02-16 Thread Richard Lawrence
Hi Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: Richard Lawrence richard.lawre...@berkeley.edu 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

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

2014-02-15 Thread Nicolas Goaziou
Hello, Richard Lawrence richard.lawre...@berkeley.edu 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

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

2014-02-15 Thread Richard Lawrence
Nicolas Goaziou n.goaz...@gmail.com writes: Richard Lawrence richard.lawre...@berkeley.edu 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