* bibliography as part of the source document?
@ 2016-06-13 18:07 Sharon Kimble
2016-06-13 18:11 ` Ken Mankoff
0 siblings, 1 reply; 6+ messages in thread
From: Sharon Kimble @ 2016-06-13 18:07 UTC (permalink / raw)
To: org-mode-email
[-- Attachment #1: Type: text/plain, Size: 439 bytes --]
I'm trying to have all my information for a org-mode document exported
to latex contained within the source document. Specifically having the
bibliography within the source document.
But how do I do it? I've tried googling but haven't turned up anything
useful. Can you help please?
Thanks
Sharon.
--
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.4, fluxbox 1.3.7, emacs 25.0.95
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bibliography as part of the source document?
2016-06-13 18:07 bibliography as part of the source document? Sharon Kimble
@ 2016-06-13 18:11 ` Ken Mankoff
2016-06-13 18:28 ` Sharon Kimble
0 siblings, 1 reply; 6+ messages in thread
From: Ken Mankoff @ 2016-06-13 18:11 UTC (permalink / raw)
To: Sharon Kimble; +Cc: org-mode-email
On 2016-06-13 at 13:07, Sharon Kimble <boudiccas@skimble.plus.com> wrote:
> I'm trying to have all my information for a org-mode document exported
> to latex contained within the source document. Specifically having the
> bibliography within the source document.
>
> But how do I do it? I've tried googling but haven't turned up anything
> useful. Can you help please?
What about putting the BibTeX contents in the Org file. Tangle on export to Bib file.
-k.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bibliography as part of the source document?
2016-06-13 18:11 ` Ken Mankoff
@ 2016-06-13 18:28 ` Sharon Kimble
2016-06-15 2:29 ` Ken Mankoff
0 siblings, 1 reply; 6+ messages in thread
From: Sharon Kimble @ 2016-06-13 18:28 UTC (permalink / raw)
To: Ken Mankoff; +Cc: org-mode-email
[-- Attachment #1: Type: text/plain, Size: 731 bytes --]
Ken Mankoff <mankoff@gmail.com> writes:
> On 2016-06-13 at 13:07, Sharon Kimble <boudiccas@skimble.plus.com> wrote:
>> I'm trying to have all my information for a org-mode document exported
>> to latex contained within the source document. Specifically having the
>> bibliography within the source document.
>>
>> But how do I do it? I've tried googling but haven't turned up anything
>> useful. Can you help please?
>
> What about putting the BibTeX contents in the Org file. Tangle on export to Bib file.
>
Yes, that's what I'm trying to do, but how do I tangle it?
Thanks
Sharon.
--
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.4, fluxbox 1.3.7, emacs 25.0.95
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bibliography as part of the source document?
2016-06-13 18:28 ` Sharon Kimble
@ 2016-06-15 2:29 ` Ken Mankoff
2016-06-15 12:25 ` Ken Mankoff
0 siblings, 1 reply; 6+ messages in thread
From: Ken Mankoff @ 2016-06-15 2:29 UTC (permalink / raw)
To: Sharon Kimble; +Cc: org-mode-email
On 2016-06-13 at 13:28, Sharon Kimble <boudiccas@skimble.plus.com> wrote:
> Ken Mankoff <mankoff@gmail.com> writes:
>> On 2016-06-13 at 13:07, Sharon Kimble <boudiccas@skimble.plus.com> wrote:
>>> I'm trying to have all my information for a org-mode document
>>> exported to latex contained within the source document. Specifically
>>> having the bibliography within the source document.
>>>
>>> But how do I do it? I've tried googling but haven't turned up
>>> anything useful. Can you help please?
>>
>> What about putting the BibTeX contents in the Org file. Tangle on
>> export to Bib file.
>>
>
> Yes, that's what I'm trying to do, but how do I tangle it?
I don't know how to tell Org to tangle-on-export with an argument or a setting, but it can evaluate code blocks on export, and one of those can do the tangling for you. The following might work?
#+begin_src emacs-lisp :exports none
(org-babel-goto-named-src-block "bibtex")
(org-babel-tangle)
#+end_src
#+begin_src bibtex :tangle file.bib
bib contents go here
#+end_src
-k.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bibliography as part of the source document?
2016-06-15 2:29 ` Ken Mankoff
@ 2016-06-15 12:25 ` Ken Mankoff
2016-06-15 12:41 ` John Kitchin
0 siblings, 1 reply; 6+ messages in thread
From: Ken Mankoff @ 2016-06-15 12:25 UTC (permalink / raw)
To: Sharon Kimble; +Cc: org-mode-email
On 2016-06-14 at 21:29, Ken Mankoff <mankoff@gmail.com> wrote:
> I don't know how to tell Org to tangle-on-export with an argument or a
> setting, but it can evaluate code blocks on export, and one of those
> can do the tangling for you. The following might work?
>
> #+begin_src emacs-lisp :exports none
> (org-babel-goto-named-src-block "bibtex")
> (org-babel-tangle)
> #+end_src
>
> #+begin_src bibtex :tangle file.bib
> bib contents go here
> #+end_src
Oops. Consider the above pseudo-code. The bibtex block must be named, so that (org-babel-goto-NAMED...) can find it. And I'm not sure what "#+begin_src bibtex" actually means to Org. It might have to be a #+BEGIN_EXAMPLE or a "#+BEGIN_SRC <some_known_language>", but tangled to a .Bib file. If running latest Git head, it might also need ":eval no-export" on the bibtex block. Hopefully this is enough to help you solve it. Feel free to post an MWE if you get it working.
-k.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bibliography as part of the source document?
2016-06-15 12:25 ` Ken Mankoff
@ 2016-06-15 12:41 ` John Kitchin
0 siblings, 0 replies; 6+ messages in thread
From: John Kitchin @ 2016-06-15 12:41 UTC (permalink / raw)
To: Ken Mankoff; +Cc: org-mode-email, Sharon Kimble
You might checkout the function at the end of this org-ref issue:
https://github.com/jkitchin/org-ref/issues/176
It provides a way to extract all bibtex src blocks to a file and is a
bit different than using org-babel-tangle.
Ken Mankoff writes:
> On 2016-06-14 at 21:29, Ken Mankoff <mankoff@gmail.com> wrote:
>> I don't know how to tell Org to tangle-on-export with an argument or a
>> setting, but it can evaluate code blocks on export, and one of those
>> can do the tangling for you. The following might work?
>>
>> #+begin_src emacs-lisp :exports none
>> (org-babel-goto-named-src-block "bibtex")
>> (org-babel-tangle)
>> #+end_src
>>
>> #+begin_src bibtex :tangle file.bib
>> bib contents go here
>> #+end_src
>
> Oops. Consider the above pseudo-code. The bibtex block must be named, so that (org-babel-goto-NAMED...) can find it. And I'm not sure what "#+begin_src bibtex" actually means to Org. It might have to be a #+BEGIN_EXAMPLE or a "#+BEGIN_SRC <some_known_language>", but tangled to a .Bib file. If running latest Git head, it might also need ":eval no-export" on the bibtex block. Hopefully this is enough to help you solve it. Feel free to post an MWE if you get it working.
>
> -k.
--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-06-15 12:41 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-13 18:07 bibliography as part of the source document? Sharon Kimble
2016-06-13 18:11 ` Ken Mankoff
2016-06-13 18:28 ` Sharon Kimble
2016-06-15 2:29 ` Ken Mankoff
2016-06-15 12:25 ` Ken Mankoff
2016-06-15 12:41 ` John Kitchin
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).