From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scot Becker Subject: Exporting property values to LaTeX Date: Thu, 9 Sep 2010 12:42:35 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0674904355==" Return-path: Received: from [140.186.70.92] (port=37051 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OtfWy-0005yW-5W for emacs-orgmode@gnu.org; Thu, 09 Sep 2010 07:43:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OtfWs-0002Zg-Vd for emacs-orgmode@gnu.org; Thu, 09 Sep 2010 07:43:04 -0400 Received: from mail-yx0-f169.google.com ([209.85.213.169]:55676) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OtfWs-0002ZT-RQ for emacs-orgmode@gnu.org; Thu, 09 Sep 2010 07:42:58 -0400 Received: by yxk8 with SMTP id 8so721355yxk.0 for ; Thu, 09 Sep 2010 04:42:57 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org-mode ml --===============0674904355== Content-Type: multipart/alternative; boundary=00151750dd76a64ac8048fd221be --00151750dd76a64ac8048fd221be Content-Type: text/plain; charset=ISO-8859-1 SHORT VERSION: Can someone tell me how I might be able to get a property value exported to LaTeX? Here's what I want to do: I my reading and research notes in org-mode. I'd like to print them out to manipulate them manually before I use them. (Think: olde time 3 x 5 index cards, though I'll do it on A5 size paper). I'd like to define an inherited property in my org outline containing my BibTeX key for the given book or journal article. The idea is that all of the notes on that book inherit the property (I can do this already). Then I want to export these notes to LaTeX and insert the value of the 'bibtexkey' property into a custom latex citation command for each exported node. That way, when the notes are printed separate from each other, I have the bibliographic information on each note. EXAMPLE: --------------------------------- * Notes taken while reading: Smith, Some-Wild-Book :PROPERTIES: :bibkey: smith2009somewild :END: ** The Problem Smith starts with a scorching analysis of the problem: #+BEGIN_QUOTE As I see it, this chaos has all arisen because of... (29) #+END_QUOTE ** The Solution Summary: Smith thinks that if we would all only listen to him, these problems would go away. (235) ** Evaluation Though Smith's audacity is unendurable, he does a few good points, including... ------------------------- I'd like to end up with a LaTeX file which will will print the above as three separate (A5 size) pages. (I think I can do that). But each note ("The Problem", "The Solution", "Evaluation") gets the value of the 'bibtexkey' property exported in the format: \shortcite{} immediately after the heading for that section. I would do this with all child headings no matter at what level. Then when I take notes on another item, its children inherit the correct value of 'bibtexkey' for it. I think I have property inheritance worked out, and I reckon I can manage to get org to export the headings how I want them (with org-export-latex-classes), and I think I can mange to get LaTeX to lay it all out right (it's LaTeX, how hard could custom layout be? :-). What I want is a way to tweak org's LaTeX exporter to export "\shortcite{ }" after every heading, with the value of the 'bibtexkey' property inside it. I suppose my question is: can anyone think of a way to do this without making a custom LaTeX exporter? Does the idea of exporting properties for use in LaTeX output have enough value to warrant more general solution, for example allowing placeholders for optional property values in (for example) 'org-export-latex-classes'? Like this: ("\\section{%s}" . "\\section*{%s}\n\n\\shortcite{[[bibtexkey]]}") Scot --00151750dd76a64ac8048fd221be Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable SHORT VERSION:

Can someone tell me how I might be able to get a prop= erty value exported to LaTeX?=A0 Here's what I want to do:=A0 I my read= ing and research notes in org-mode.=A0 I'd like to print them out to ma= nipulate them manually before I use them.=A0 (Think: olde time 3 x 5 index = cards, though I'll do it on A5 size paper).=A0 I'd like to define a= n inherited property in my org outline containing my BibTeX key for the giv= en book or journal article.=A0 The idea is that all of the notes on that bo= ok inherit the property (I can do this already).=A0 Then I want to export t= hese notes to LaTeX and insert the value of the 'bibtexkey' propert= y into a custom latex citation command for each exported node.=A0 That way,= when the notes are printed separate from each other, I have the bibliograp= hic information on each note.

EXAMPLE:

---------------------------------
* Notes taken whil= e reading: Smith, Some-Wild-Book
=A0 :PROPERTIES:
=A0 :bibkey:=A0=A0 = smith2009somewild
=A0 :END:

** The Problem

Smith starts wi= th a scorching analysis of the problem:

#+BEGIN_QUOTE
As I see it, this chaos has all arisen because of... (= 29)
#+END_QUOTE

** The Solution

Summary: Smith thinks that= if we would all only listen to him, these problems would go away. (235)
** Evaluation

Though Smith's audacity is unendurable, he doe= s a few good points, including...

-------------------------

I= 'd like to end up with a LaTeX file which will will print the above as = three separate (A5 size) pages. (I think I can do that).=A0 But each note (= "The Problem", "The Solution", "Evaluation") = gets the value of the 'bibtexkey' property exported in the format:<= br>
\shortcite{<bibtexkey>}

immediately after the heading for= that section.=A0 I would do this with all child headings no matter at what= level.=A0 Then when I take notes on another item, its children inherit the= correct value of 'bibtexkey' for it.=A0
=A0
I think I have property inheritance worked out, and I reckon I can m= anage to get org to export the headings how I want them (with org-export-la= tex-classes), and I think I can mange to get LaTeX to lay it all out right = (it's LaTeX, how hard could custom layout be? :-).

What I want is a way to tweak org's LaTeX exporter to export "= \shortcite{ <value> }" after every heading, with the value of th= e 'bibtexkey' property inside it.

I suppose my question is: = can anyone think of a way to do this without making a custom LaTeX exporter= ?=A0 Does the idea of exporting properties for use in LaTeX output have eno= ugh value to warrant more general solution, for example allowing placeholde= rs for optional property values in (for example) 'org-export-latex-clas= ses'?=A0 Like this:

=A0("\\section{%s}" . "\\section*{%s}\n\n\\shortcite{[[b= ibtexkey]]}")


Scot

--00151750dd76a64ac8048fd221be-- --===============0674904355== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0674904355==--