From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rasmus Newsgroups: gmane.emacs.help Subject: Re: changing from \cite{1} to \cite{MacRae,2002} Date: Sat, 17 May 2014 19:02:40 +0200 Message-ID: <87k39k5oen.fsf@gmx.us> References: <87lhu2lcnw.fsf@debian.uxu> <87oayxdboy.fsf@skimble.plus.com> <871tvtu22s.fsf@gmx.us> <87k39l60ps.fsf@skimble.plus.com> <87bnuxshbe.fsf@gmx.us> <87y4y0zsns.fsf@skimble.plus.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1400346051 3934 80.91.229.3 (17 May 2014 17:00:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 17 May 2014 17:00:51 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: boudiccas@skimble.plus.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 17 19:00:44 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WlhyV-0000im-To for geh-help-gnu-emacs@m.gmane.org; Sat, 17 May 2014 19:00:44 +0200 Original-Received: from localhost ([::1]:40933 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WlhyV-0002tv-DQ for geh-help-gnu-emacs@m.gmane.org; Sat, 17 May 2014 13:00:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50695) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WlhyA-0002tZ-HO for help-gnu-emacs@gnu.org; Sat, 17 May 2014 13:00:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wlhy4-0003Nr-C3 for help-gnu-emacs@gnu.org; Sat, 17 May 2014 13:00:22 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:54060) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wlhy4-0003NT-2q for help-gnu-emacs@gnu.org; Sat, 17 May 2014 13:00:16 -0400 Original-Received: from x200s ([192.167.90.138]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0LtZfc-1WtMvh0HEy-010px4; Sat, 17 May 2014 19:00:13 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAAAAAByaaZbAAAAAmJLR0QA/4ePzL8AAAAJcEhZ cwAAAEgAAABIAEbJaz4AAAHPSURBVEjHjZbJlQMxCAU7AKKsuCo3UpkDaOnNPX2wn22VPqAP8hH/ flDh+FgUAUSAmqn+BgBVVDO/ACIQ1FDT1C8FQCiZVAU/cyBCKigiPpOu6sD6dDzvewb2D8fTMk4E yfrB43nfDcF0g08hAaP0a9cw3YI61v59pIyKTGAUCJgATVAmqN9mTPWFmjmThiDGOdFiG2GbKadC CVBFH8HVRrQrdACsR6VcJC0MZmZmmmaXtQUcGh3VeBtONfOq4J4GVLb09gvoBETXKzjg3J6R9La/ ZWTKpESFpDegDc9Yv86jiBMQM+YuYEcz7TSJCTijGc3FNIR5B9p0Q0DQPuN5CneABYjEUHyo0shi CTAzxlegQqJz3tz6CMSmsNwNgfITyL0d0Ew2lfPUmMe19Vtm+bZrdQWmvzfZ8lod3nWQ4d7wc5gs Q3FXYDmlR2X1kGbeZ+tsnJFK93+f9MMwno3qqdCt4MP0rkWnL2YyGnkHyndjYKyCmQB3YJbQ66mD j0BEQJrpYgpM8Q3oqWXuxlPe7ri+1NLcjeqrQqzG2BSquC933Bo2aypVmG+XoosY66t4b0CbYwup Z+z7tTvH60kgv/5r9HqJDu7rn0ARgt1zfwjk8VmXGaNCAAAAAElFTkSuQmCC In-Reply-To: <87y4y0zsns.fsf@skimble.plus.com> (Sharon Kimble's message of "Sat, 17 May 2014 10:00:23 +0100") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux) X-Provags-ID: V03:K0:wP9YQ2bKmVlj/f+JUFD3kGfHSB21+aE8n9xhIGO+NwR9iTDwBlt 9RsyM89SIQgXX940YMFALi0QH0hzzWwXDzytSAvVGqiwHyOL+Zaj62kE/3jasrTI0VgjM69 LpC8adLRQMNNXc8MO79GnuzM+rMAVRGHbPTbfi+Okrib3QNKSXhyCfS0AizbsuO+ydBdtRv N3DXrwkJ0SDn8x1TEUvTA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.15 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:97732 Archived-At: Sharon Kimble writes: > Rasmus writes: > >> Sharon Kimble writes: >> >> 2> Rasmus writes: >>> >>>> Sharon Kimble writes: >>>> >>>>> Emanuel Berg writes: >>>>> >>>>>> Sharon Kimble writes: >>>>>> >>>>>>> I am using latex and working on a document all in >>>>>>> emacs. I have been using the biblatex citation system >>>>>>> with the style "numerical", but now want to use >>>>>>> "authoryear". >>>>>> >>>>>> First, your post looks a complete mess! I don't know if >>>>>> it is my Gnus but I doubt it as I haven't seen anything >>>>>> that plain chaos (since my last birthday party at >>>>>> least) - just type, man! >>>>> >>>>> Wrong! I don't know of any "man" called Sharon! :) >>>>>> >>>>>> Here is how to do it - the trick is to not have any >>>>>> "operational" data in the biblatex file - just the >>>>>> sources. >>>>>> >>>>>> For example, if you have the poor taste of taking an >>>>>> interest in databases - in db.bib: >>>>>> >>>>>> @Book{mcfadden, >>>>>> author =3D {McFadden and Hoffer and Prescott}, >>>>>> title =3D {Modern Database Management}, >>>>>> publisher =3D {Addison-Wesley}, >>>>>> year =3D 1998, >>>>>> ISBN =3D {0-8053-6054-9}, >>>>>> edition =3D {5th edition}} >>>>>> >>>>>> Then, in db.tex, you keep everything to it that relates >>>>>> to *your* activity (the pages in this example): >>>>>> >>>>>> \cite[pp. 233, 237]{mcfadden} >>>>>> >>>>>> You can see how it works in context here [1] - perhaps >>>>>> there are a couple of settings in the .tex file that >>>>>> prepare it all to work. Don't forget the Makefile so >>>>>> you can invoke it all in one stroke. >>>>> >>>>> Yes, but! Your references appear in the text as numbers, i.e. [1] >>>>> which is not what I'm after. I'm looking for "author/editor, year".=20 >>>> >>>> So pass the option "natbib" or "author-year" or whatever you prefer to >>>> biblatex. See "texdoc biblatex", section "3.3.1 Citation Styles". >>>> >>>> Or use biblatex-chicago. I use it like this: >>>> >>>> \usepackage[authordate, natbib, backend=3Dbiber,citetracker=3Dtrue, >>>> uniquename=3Dmininit, ibidtracker=3Dfalse, >>>> maxcitenames=3D2]{biblatex-chicago} > > Thank you very much for your excellent and very informative reply, > and it all works! I have only created one reference ATM, but I'll > spend more time on it today. However, when I've created the > reference and look at it in the PDF, it shows as "(MacRae and > Pattison 2002)" but only 2002 is hyperlinked. How can I get the > whole reference be hyperlinked please? Don't know. You could try to follow the advise here: https://tex.stackexchange.com/questions/1687/hyperlink-name-with-bibl= atex-authoryear > And in the references section it displays as > MacRae, K., and J. Pattison. 2002. =E2=80=9CHome chemotherapy.=E2=80=9D N= ursing Times 98 (35): 34=E2=80=93 > 35. > Is there anyway in which the "(MacRae and Pattison 2002)" could be > shown at the beginning of the reference so its easier to look it up > when the book is printed please? You'd need another style. AFAIK, it's not part of the Chicago-style. > Thanks > Sharon. >>> >>> Thanks for this, using your "\usepackage" above, but which do I use >>> for the bib database? I've tried both but I'm not sure which is >>> working.=20 >>> \addbibresource{uh2014.bib} >>> \bibliography{uh2014} >> >> Use \addbibressource{=C2=B7} where =C2=B7 is the path to your bib-file. >> >>> This is part of "uh2014.bib" >>> @Article{MacRae2002, >>> author =3D {MacRae K. Pattison J.}, >> >> this should be >> >> {K. MacRae and J. Pattison} >>=20=20=20=20=20=20 >> or >>=20=20=20=20=20=20=20=20=20 >> {MacRae, K. and Pattison, J.}, >> >>> title =3D {Home chemotherapy.}, >>> journaltitle =3D {Nursing Times}, >> >> journal =3D {=C2=B7} is also OK. >> >>> year =3D {2002}, >>> key =3D {MacRae2002}, >> >> you probably don't need key.=20 >> >>> volume =3D {98}, >>> number =3D {35}, >>> pages =3D {34-35}, >> >> use -- for separating numbers. >> >>> } >>> >>> and in the text it is cited as >>> =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 >>> =E2=94=82\cite{MacRae2002} >>> =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 >>> >>> but it shows in the pdf as "M. K. P. J. 2002." >>> >>> How can I get it to show as"[MacRae2002]" please? >> >> \parencite{MacRae2002} =E2=86=92 (MacRae, 2002) >> \textcite{MacRae2002} =E2=86=92 MacRae (2002). >> >> If you truly want the KEY to show up and not a combination of the >> author and the year you'd need some other style. >> >> With the option natbib you can also use natbib commands. See >> >> texdoc natnotes >> >> =E2=80=94Rasmus --=20 What will be next?