From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joseph Vidal-Rosset Subject: Re: org-ref in action Date: Mon, 30 Jun 2014 12:06:42 +0200 Message-ID: References: <87tx73h93a.fsf@gmail.com> <87ha32hggg.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e013a05720bfa4804fd0ad29a Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50151) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1YUL-0000cf-Mm for emacs-orgmode@gnu.org; Mon, 30 Jun 2014 06:07:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X1YUJ-0002kX-1l for emacs-orgmode@gnu.org; Mon, 30 Jun 2014 06:07:05 -0400 Received: from mail-ve0-x232.google.com ([2607:f8b0:400c:c01::232]:53478) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1YUI-0002kA-NV for emacs-orgmode@gnu.org; Mon, 30 Jun 2014 06:07:02 -0400 Received: by mail-ve0-f178.google.com with SMTP id oy12so8015717veb.9 for ; Mon, 30 Jun 2014 03:07:02 -0700 (PDT) In-Reply-To: <87ha32hggg.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: "Liste-emacs-orgmode@gnu.org" , John Kitchin --089e013a05720bfa4804fd0ad29a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I thank you Eric for your quick and kind reply. In my init.el file I have put this code : (eval-after-load 'reftex-vars '(progn (add-to-list 'reftex-cite-format-builtin '(org "Org-mode citation" ((?\C-m . "[[cite:(%p)%l]]") (?t . "[[textcite:%l]]") (?p . "[[parencite:%l]]") (?s . "[[posscite:%l]]") (?a . "[[citeauthor:%l]]") (?y . "[[citeyear:%l]]")))))) 2014-06-30 11:52 GMT+02:00 Eric Schulte : > Could you be more specific? Does org-mode generate any latex at all, > and how does it differ from what you'd expect? If no LaTeX is > generated, and Org-mode actually throws an error then please provide a > backtrace. I should be able to help but I'll need more information. > Thanns to the default cite action, I get for example in my org file: [[cite:(119=E2=80=93136)johansson36:_minim_formal]] and it creates no reference at al, because via the export I get: \cite{(119=E2=80=93136)johansson36:_minim_formal} > > One thing I noticed is that I got better behavior if I didn't allow line > breaks in the link, which was easily accomplished by replacing > [[cite:(page n)one-reference-paper-year]] with > [[cite:(page~n)one-reference-paper-year]]. In general the later is > actually /preferable/ than the former, as you don't want LaTeX breaking > lines in the middle of a citation either. > It is not the issue here because I have no broken line. I'm using bibtex here and no biblatex. Maybe biblatex is a better option, but it is another question. Best Jo. --089e013a05720bfa4804fd0ad29a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I thank you Eric for your quick= and kind reply.

In my init.el=C2= =A0 file=C2=A0 I have put this code :

(eval-after-load 'reftex-v= ars
=C2=A0 '(progn

=C2=A0=C2=A0=C2=A0=C2=A0 (add-to-list 'reftex-cite-format-builtin=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 '(org "Org-mode citation"
= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ((?\C-m . &= quot;[[cite:(%p)%l]]")
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 (?t . "[[textcite:%l]]")
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (?p .= "[[parencite:%l]]")
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (?s . "[[posscite:%l]]")
=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (?a . "= ;[[citeauthor:%l]]")
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 (?y . "[[citeyear:%l]]"))))))

2014-06-30 = 11:52 GMT+02:00 Eric Schulte <schulte.eric@gmail.com>:<= br>
Could you be more spe= cific? =C2=A0Does org-mode generate any latex at all,
and how does it differ from what you'd expect? =C2=A0If no LaTeX is
generated, and Org-mode actually throws an error then please provide a
backtrace. =C2=A0I should be able to help but I'll need more informatio= n.

Thanns to the default cite act= ion, I get for example in my org file:

=C2=A0[[cite:(119=E2=80=9313= 6)johansson36:_minim_formal]]

and it creates no reference at al, because via the export I = get:

\cite{(119=E2=80=93136)johansson36:_minim_formal}

=C2=A0

One thing I noticed is that I got better behavior if I didn't allow lin= e
breaks in the link, which was easily accomplished by replacing
[[cite:(page n)one-reference-paper-year]] with
[[cite:(page~n)one-reference-paper-year]]. =C2=A0In general the later is actually /preferable/ than the former, as you don't want LaTeX breaking=
lines in the middle of a citation either.

=
It is not the issue here because I have no broken line.

=
I'm using bibtex here and no biblatex. Maybe biblatex is a better = option, but it is another question.

Best

Jo.=C2=A0


--089e013a05720bfa4804fd0ad29a--