]> code.delx.au - gnu-emacs/commitdiff
* textmodes/reftex-cite.el (reftex-format-citation): Add format
authorTassilo Horn <tsdh@gnu.org>
Mon, 21 Jan 2013 12:14:56 +0000 (13:14 +0100)
committerTassilo Horn <tsdh@gnu.org>
Mon, 21 Jan 2013 12:14:56 +0000 (13:14 +0100)
chars for note (%N) and url (%U).
* textmodes/reftex-vars.el (reftex-cite-format): Document them.

lisp/ChangeLog
lisp/textmodes/reftex-cite.el
lisp/textmodes/reftex-vars.el

index 194c76b28ca9a5825906f8ecbf96eeb22dcc3f7b..60a69ad02362892cf93ce4e39b63ac65e806e8f1 100644 (file)
@@ -1,3 +1,9 @@
+2013-01-21  Tassilo Horn  <tsdh@gnu.org>
+
+       * textmodes/reftex-cite.el (reftex-format-citation): Add format
+       chars for note (%N) and url (%U).
+       * textmodes/reftex-vars.el (reftex-cite-format): Document them.
+
 2013-01-21  Juri Linkov  <juri@jurta.org>
 
        * frame.el: Bind `f10' in `esc-map' to `toggle-frame-maximized'
index 3b294e62b01836fc4675868b522509d191377111..079101b56ee9b1eb2bfa16962eb4d2edc161d0c4 100644 (file)
@@ -1043,6 +1043,7 @@ While entering the regexp, completion on knows citation keys is possible.
                ((= l ?k) (reftex-get-bib-field "key" entry))
                ((= l ?m) (reftex-get-bib-field "month" entry))
                ((= l ?n) (reftex-get-bib-field "number" entry))
+              ((= l ?N) (reftex-get-bib-field "note" entry))
                ((= l ?o) (reftex-get-bib-field "organization" entry))
                ((= l ?p) (reftex-get-bib-field "pages" entry))
                ((= l ?P) (car (split-string
@@ -1050,6 +1051,7 @@ While entering the regexp, completion on knows citation keys is possible.
                                "[- .]+")))
                ((= l ?s) (reftex-get-bib-field "school" entry))
                ((= l ?u) (reftex-get-bib-field "publisher" entry))
+              ((= l ?U) (reftex-get-bib-field "url" entry))
                ((= l ?r) (reftex-get-bib-field "address" entry))
                ((= l ?t) (reftex-get-bib-field "title" entry))
                ((= l ?T) (reftex-abbreviate-title
index db08ca3a514da37a21b0156779a4f0435a04eec0..2a5c9c55866db32bc549fb402ecd15bb893aa757 100644 (file)
@@ -1125,12 +1125,12 @@ In the format, the following percent escapes will be expanded.
 %e   Works like %a, but on list of editor names. (%2e and %E work a well)
 
 It is also possible to access all other BibTeX database fields:
-%b booktitle     %c chapter        %d edition    %h howpublished
-%i institution   %j journal        %k key        %m month
-%n number        %o organization   %p pages      %P first page
-%r address       %s school         %u publisher  %t title
-%v volume        %y year
-%B booktitle, abbreviated          %T title, abbreviated
+%b booktitle     %c chapter   %d edition      %h howpublished
+%i institution   %j journal   %k key          %m month
+%n number        %N note      %o organization %p pages
+%P first page    %r address   %s school       %u publisher
+%U url           %t title     %v volume       %y year
+%B booktitle, abbreviated     %T title, abbreviated
 
 Usually, only %l is needed.  The other stuff is mainly for the echo area
 display, and for (setq reftex-comment-citations t).