* bibtex fields in remember templates
@ 2007-10-31 1:51 Austin Frank
2007-11-04 13:49 ` Carsten Dominik
0 siblings, 1 reply; 6+ messages in thread
From: Austin Frank @ 2007-10-31 1:51 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 702 bytes --]
Hello!
I am wondering whether it would be possible to have access to the values
of bibtex fields in remember templates when calling remember from a
buffer in bibtex mode. I would like to define a template that includes
a link to the bibtex entry, but which also lays out a brief citation.
Something like
"* TO_READ%?\n %a\n %:author (%:year). %:title. %:journal: %:pages."
I know that links to bibtex entries are created using the custom search
mechanism, but I can't figure out how to expose properties of the bibtex
entry to remember or org-remember.
Thanks for any help,
/au
--
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc
[-- Attachment #1.2: Type: application/pgp-signature, Size: 185 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bibtex fields in remember templates
2007-10-31 1:51 bibtex fields in remember templates Austin Frank
@ 2007-11-04 13:49 ` Carsten Dominik
2007-11-06 0:06 ` Bastien
0 siblings, 1 reply; 6+ messages in thread
From: Carsten Dominik @ 2007-11-04 13:49 UTC (permalink / raw)
To: Austin Frank; +Cc: emacs-orgmode
On 31Oct2007, at 2:51 AM, Austin Frank wrote:
> Hello!
>
> I am wondering whether it would be possible to have access to the
> values
> of bibtex fields in remember templates when calling remember from a
> buffer in bibtex mode. I would like to define a template that
> includes
> a link to the bibtex entry, but which also lays out a brief citation.
> Something like
>
> "* TO_READ%?\n %a\n %:author (%:year). %:title. %:journal: %:pages."
>
> I know that links to bibtex entries are created using the custom
> search
> mechanism, but I can't figure out how to expose properties of the
> bibtex
> entry to remember or org-remember.
This is, I think, hard using the current mechanism. I believe it
would be
much better to create a new link type for BibTeX, now that this is
possible.
The it would also be easy to set a lot of info that can be accessed by
templates.....
Any volunteers?
- Carsten
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bibtex fields in remember templates
2007-11-04 13:49 ` Carsten Dominik
@ 2007-11-06 0:06 ` Bastien
2007-11-06 5:22 ` Carsten Dominik
0 siblings, 1 reply; 6+ messages in thread
From: Bastien @ 2007-11-06 0:06 UTC (permalink / raw)
To: emacs-orgmode
Carsten Dominik <carsten.dominik@gmail.com> writes:
>> "* TO_READ%?\n %a\n %:author (%:year). %:title. %:journal: %:pages."
>>
>> I know that links to bibtex entries are created using the custom
>> search mechanism, but I can't figure out how to expose properties of
>> the bibtex entry to remember or org-remember.
>
> This is, I think, hard using the current mechanism. I believe it
> would be much better to create a new link type for BibTeX, now that
> this is possible. The it would also be easy to set a lot of info that
> can be accessed by templates.....
Please check org-bibtex.el here:
http://www.cognition.ens.fr/~guerry/u/org-bibtex.el
This package does not affect the way BibTeX entries are stored and
inserted but it provides more information on them thru properties.
Typically, you'll use this information in *remember* templates.
So for example:
(setq org-remember-templates
'((?b "* READ %?\n\n%a\n %:author (%:year): %:title In %:journal, %:pages.")))
will insert to relevant information about the author, the year, etc.
--
Bastien
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bibtex fields in remember templates
2007-11-06 0:06 ` Bastien
@ 2007-11-06 5:22 ` Carsten Dominik
2007-11-06 9:14 ` Bastien
0 siblings, 1 reply; 6+ messages in thread
From: Carsten Dominik @ 2007-11-06 5:22 UTC (permalink / raw)
To: Bastien; +Cc: emacs-orgmode
On 6Nov2007, at 1:06 AM, Bastien wrote:
>
> Please check org-bibtex.el here:
>
> http://www.cognition.ens.fr/~guerry/u/org-bibtex.el
Hey cool! I had been thinking about a full new link type with its own
prefix and search routine.... But yes, a new link prefix is
not necessary, it is just a file, after all.
Great solution, as well for the Lisp symbols - but I cannot
get the :keys to work. How is it supposed to work?
- Carsten
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bibtex fields in remember templates
2007-11-06 5:22 ` Carsten Dominik
@ 2007-11-06 9:14 ` Bastien
2007-11-06 9:22 ` Bastien
0 siblings, 1 reply; 6+ messages in thread
From: Bastien @ 2007-11-06 9:14 UTC (permalink / raw)
To: emacs-orgmode
Carsten Dominik <carsten.dominik@gmail.com> writes:
> On 6Nov2007, at 1:06 AM, Bastien wrote:
>
>>
>> Please check org-bibtex.el here:
>>
>> http://www.cognition.ens.fr/~guerry/u/org-bibtex.el
>
> Hey cool! I had been thinking about a full new link type with its own
> prefix and search routine.... But yes, a new link prefix is
> not necessary, it is just a file, after all.
> Great solution, as well for the Lisp symbols - but I cannot
> get the :keys to work. How is it supposed to work?
I didn't know whether the question was for org-bibtex.el or for
org-elisp-symbol.el but it appears it was relevant in both cases :)
- org-bibtex.el: you can now use the :key property to get the "=key="
value of an entry (as well as the :btype for bibliographic type, if
any)
- org-elisp-symbol.el: fixed! You can use the :keys property to get the
keys associated with the command.
--
Bastien
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bibtex fields in remember templates
2007-11-06 9:14 ` Bastien
@ 2007-11-06 9:22 ` Bastien
0 siblings, 0 replies; 6+ messages in thread
From: Bastien @ 2007-11-06 9:22 UTC (permalink / raw)
To: emacs-orgmode
Sorry, I forgot to re-send the links:
> - org-bibtex.el: you can now use the :key property to get the "=key="
> value of an entry (as well as the :btype for bibliographic type, if
> any)
http://www.cognition.ens.fr/~guerry/u/org-bibtex.el
> - org-elisp-symbol.el: fixed! You can use the :keys property to get the
> keys associated with the command.
http://www.cognition.ens.fr/~guerry/u/org-elisp-symbol.el
--
Bastien
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-11-06 8:22 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-31 1:51 bibtex fields in remember templates Austin Frank
2007-11-04 13:49 ` Carsten Dominik
2007-11-06 0:06 ` Bastien
2007-11-06 5:22 ` Carsten Dominik
2007-11-06 9:14 ` Bastien
2007-11-06 9:22 ` Bastien
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).