help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: changing from \cite{1} to \cite{MacRae,2002}


From: Rasmus
Subject: Re: changing from \cite{1} to \cite{MacRae,2002}
Date: Sat, 17 May 2014 19:02:40 +0200
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux)

Sharon Kimble <boudiccas@skimble.plus.com> writes:

> Rasmus <rasmus@gmx.us> writes:
>
>> Sharon Kimble <boudiccas@skimble.plus.com> writes:
>>
>> 2> Rasmus <rasmus@gmx.us> writes:
>>>
>>>> Sharon Kimble <boudiccas@skimble.plus.com> writes:
>>>>
>>>>> Emanuel Berg <embe8573@student.uu.se> writes:
>>>>>
>>>>>> Sharon Kimble <boudiccas@skimble.plus.com> 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 = {McFadden and Hoffer and Prescott},
>>>>>> title = {Modern Database Management},
>>>>>> publisher = {Addison-Wesley},
>>>>>> year = 1998,
>>>>>> ISBN = {0-8053-6054-9},
>>>>>> edition = {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". 
>>>>
>>>> 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=biber,citetracker=true,
>>>>   uniquename=mininit, ibidtracker=false,
>>>>   maxcitenames=2]{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-biblatex-authoryear


> And in the references section it displays as
> MacRae, K., and J. Pattison. 2002. “Home chemotherapy.” Nursing Times 98 
> (35): 34–
> 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. 
>>> \addbibresource{uh2014.bib}
>>> \bibliography{uh2014}
>>
>> Use \addbibressource{·} where · is the path to your bib-file.
>>
>>> This is part of "uh2014.bib"
>>> @Article{MacRae2002,
>>>   author = {MacRae K. Pattison J.},
>>
>> this should be
>>
>>      {K. MacRae and J. Pattison}
>>      
>> or
>>         
>>     {MacRae, K. and Pattison, J.},
>>
>>>   title = {Home chemotherapy.},
>>>   journaltitle = {Nursing Times},
>>
>> journal = {·} is also OK.
>>
>>>   year = {2002},
>>>   key = {MacRae2002},
>>
>> you probably don't need key. 
>>
>>>   volume = {98},
>>>   number = {35},
>>>   pages = {34-35},
>>
>> use -- for separating numbers.
>>
>>> }
>>>
>>> and in the text it is cited as
>>> ╭────
>>> │\cite{MacRae2002}
>>> ╰────
>>>
>>> but it shows in the pdf as "M. K. P. J. 2002."
>>>
>>> How can I get it to show as"[MacRae2002]" please?
>>
>> \parencite{MacRae2002} → (MacRae, 2002)
>> \textcite{MacRae2002}  → 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
>>
>> —Rasmus

-- 
What will be next?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]