all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: boudiccas@skimble.plus.com
Cc: help-gnu-emacs@gnu.org
Subject: Re: changing from \cite{1} to \cite{MacRae,2002}
Date: Fri, 16 May 2014 20:35:01 +0200	[thread overview]
Message-ID: <87bnuxshbe.fsf@gmx.us> (raw)
In-Reply-To: <87k39l60ps.fsf@skimble.plus.com> (Sharon Kimble's message of "Fri, 16 May 2014 19:24:31 +0100")

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}
>
> 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

-- 
I hear there's rumors on the, uh, Internets. . .



  reply	other threads:[~2014-05-16 18:35 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1413.1400181010.1147.help-gnu-emacs@gnu.org>
2014-05-16  1:45 ` changing from \cite{1} to \cite{MacRae,2002} Emanuel Berg
2014-05-16 14:45   ` Sharon Kimble
2014-05-16 16:21     ` Rasmus
2014-05-16 18:24       ` Sharon Kimble
2014-05-16 18:35         ` Rasmus [this message]
2014-05-17  9:00           ` Sharon Kimble
2014-05-17 17:02             ` Rasmus
     [not found]       ` <mailman.1498.1400264694.1147.help-gnu-emacs@gnu.org>
2014-05-17  9:06         ` Stefan Nobis
2014-05-17  9:10         ` Stefan Nobis
2014-05-16 15:20   ` Alberto Luaces
     [not found]   ` <mailman.1480.1400253690.1147.help-gnu-emacs@gnu.org>
2014-05-16 17:40     ` Emanuel Berg
2014-05-16 20:10       ` Thien-Thi Nguyen
     [not found]       ` <mailman.1503.1400270762.1147.help-gnu-emacs@gnu.org>
2014-05-16 23:00         ` Emanuel Berg
     [not found]   ` <mailman.1474.1400251548.1147.help-gnu-emacs@gnu.org>
2014-05-16 17:50     ` Emanuel Berg
2014-05-15 19:09 Sharon Kimble
2014-05-16  7:38 ` Eric S Fraga
2014-05-16 14:40   ` Sharon Kimble

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bnuxshbe.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --cc=boudiccas@skimble.plus.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.