* changing from \cite{1} to \cite{MacRae,2002} @ 2014-05-15 19:09 Sharon Kimble 2014-05-16 7:38 ` Eric S Fraga 0 siblings, 1 reply; 17+ messages in thread From: Sharon Kimble @ 2014-05-15 19:09 UTC (permalink / raw) To: help-gnu-emacs [-- Attachment #1: Type: text/plain, Size: 1441 bytes --] 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". At present - ╭──── │\usepackage[backend=biber,style=verbose,style=number]{biblatex} ╰──── What I want to use - ╭──── │\usepackage[backend=biber,style=verbose,style=authoryear]{biblatex} ╰──── And it appears in the bibtex database as --8<---------------cut here---------------start------------->8--- @Article{1, author = {MacRae K. Pattison J.}, title = {Home chemotherapy.}, journaltitle = {Nursing Times}, year = {2002}, key = {1}, volume = {98}, number = {35}, pages = {34-35}, } --8<---------------cut here---------------end--------------->8--- In the document it shows as ╭──── │ as a means of changing themselves \cite{1} ╰──── What I want to do is to end up with a citation like ╭──── │ as a means of changing themselves \cite{MacRae,2002} ╰──── How can I do it programmatically please? I.E. from the command-line? I have 26 entries in my bibtex database so I want to do it before it gets too big and unmanageable. Thanks Sharon. -- A taste of linux = http://www.sharons.org.uk my git repo = https://bitbucket.org/boudiccas/dots TGmeds = http://www.tgmeds.org.uk Debian testing, Fluxbox 1.3.5, emacs 24.3.91.1 [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 818 bytes --] ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: changing from \cite{1} to \cite{MacRae,2002} 2014-05-15 19:09 changing from \cite{1} to \cite{MacRae,2002} Sharon Kimble @ 2014-05-16 7:38 ` Eric S Fraga 2014-05-16 14:40 ` Sharon Kimble 0 siblings, 1 reply; 17+ messages in thread From: Eric S Fraga @ 2014-05-16 7:38 UTC (permalink / raw) To: help-gnu-emacs On Thursday, 15 May 2014 at 20:09, Sharon Kimble wrote: > 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". > At present - > ╭──── > │\usepackage[backend=biber,style=verbose,style=number]{biblatex} > ╰──── > > What I want to use - > ╭──── > │\usepackage[backend=biber,style=verbose,style=authoryear]{biblatex} > ╰──── Does this work? If not, what happens? The actual text inside the {} for the cite command has nothing to do with the form of output generated for the bibliography. It is simply used by biber to find the citation you want to cite. The format of the reference is controlled by the style. -- : Eric S Fraga, GnuPG: 0xFFFCF67D : in Emacs 24.3.1 + Ma Gnus v0.12 + evil evil-git-cc1cc7e : BBDB version 3.0.50 (2013-11-16 11:30:49 -0600) ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: changing from \cite{1} to \cite{MacRae,2002} 2014-05-16 7:38 ` Eric S Fraga @ 2014-05-16 14:40 ` Sharon Kimble 0 siblings, 0 replies; 17+ messages in thread From: Sharon Kimble @ 2014-05-16 14:40 UTC (permalink / raw) To: Eric S Fraga; +Cc: help-gnu-emacs [-- Attachment #1: Type: text/plain, Size: 3861 bytes --] Eric S Fraga <e.fraga@ucl.ac.uk> writes: > On Thursday, 15 May 2014 at 20:09, Sharon Kimble wrote: >> 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". >> At present - >> ╭──── >> │\usepackage[backend=biber,style=verbose,style=number]{biblatex} >> ╰──── >> >> What I want to use - >> ╭──── >> │\usepackage[backend=biber,style=verbose,style=authoryear]{biblatex} >> ╰──── > > Does this work? If not, what happens? > > The actual text inside the {} for the cite command has nothing to do > with the form of output generated for the bibliography. It is simply > used by biber to find the citation you want to cite. The format of the > reference is controlled by the style. After spending many hours on the bibliography I've got some semblance of order for it. ╭──── │\usepackage[backend=biber,style=alphabetic]{biblatex} % this works ╰──── gives this in the text body ╭──── │This is despite research dating back 50 years which first proved the link between smoking and lung cancer [A54]. ╰──── From this source --8<---------------cut here---------------start------------->8--- @Article{21, author = {Doll R Hill A.}, title = {The mortality of doctors in relation to their smoking habits; a preliminary report}, journaltitle = {British Medical Journal}, year = {1954}, key = {21}, number = {4877}, pages = {1451-1455}, } --8<---------------cut here---------------end--------------->8--- If I run "biber uh2014" I get this --8<---------------cut here---------------start------------->8--- INFO - Logfile is 'uh2014.blg' INFO - Reading 'uh2014.bcf' INFO - Found 25 citekeys in bib section 0 INFO - Processing section 0 INFO - Looking for bibtex format file 'uh2014.bib' for section 0 INFO - Decoding LaTeX character macros into UTF-8 INFO - Found BibTeX data source 'uh2014.bib' INFO - Overriding locale 'en_GB.UTF-8' default tailoring 'variable = shifted' with 'variable = non-ignorable' INFO - Sorting 'entry' list 'anyt' keys INFO - No sort tailoring available for locale 'en_GB.UTF-8' INFO - Writing 'uh2014.bbl' with encoding 'UTF-8' INFO - Output to uh2014.bbl --8<---------------cut here---------------end--------------->8--- I'm using this bash script to build my pdf --8<---------------cut here---------------start------------->8--- #!/bin/bash set -e #set -x #variables filename="uh2014" ############# xelatex $filename biber $filename biber $filename xelatex $filename biber $filename xelatex $filename makeindex $filename makeindex $filename xelatex $filename makeglossaries $filename xelatex $filename xelatex $filename --8<---------------cut here---------------end--------------->8--- and it is producing the output seen earlier in this mail. So, how do I get a more worthwhile output, meaning with "author/editor, year" please? I've tried --8<---------------cut here---------------start------------->8--- % \usepackage[backend=biber,style=biblatex-chicago]{biblatex} % \usepackage[backend=bibtex,style=harvard]{biblatex} --8<---------------cut here---------------end--------------->8--- and in each case it says that it can't find the relevant .sty, although if I go to /usr/share/texlive/texmf-dist/tex/latex/biblatex-chicago I can plainly see "biblatex-chicago.sty". I think that there is something wrong in my work-flow, but I don't know what it is, so if somebody can help it would be much appreciated. Thanks Sharon. -- A taste of linux = http://www.sharons.org.uk my git repo = https://bitbucket.org/boudiccas/dots TGmeds = http://www.tgmeds.org.uk Debian testing, Fluxbox 1.3.5, emacs 24.3.91.1 [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 818 bytes --] ^ permalink raw reply [flat|nested] 17+ messages in thread
[parent not found: <mailman.1413.1400181010.1147.help-gnu-emacs@gnu.org>]
* Re: changing from \cite{1} to \cite{MacRae,2002} [not found] <mailman.1413.1400181010.1147.help-gnu-emacs@gnu.org> @ 2014-05-16 1:45 ` Emanuel Berg 2014-05-16 14:45 ` Sharon Kimble ` (3 more replies) 0 siblings, 4 replies; 17+ messages in thread From: Emanuel Berg @ 2014-05-16 1:45 UTC (permalink / raw) To: help-gnu-emacs 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! 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. Also, check out comp.text.tex. Good luck! [1] http://user.it.uu.se/~embe8573/latex/degree/ -- underground experts united: http://user.it.uu.se/~embe8573 ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: changing from \cite{1} to \cite{MacRae,2002} 2014-05-16 1:45 ` Emanuel Berg @ 2014-05-16 14:45 ` Sharon Kimble 2014-05-16 16:21 ` Rasmus 2014-05-16 15:20 ` Alberto Luaces ` (2 subsequent siblings) 3 siblings, 1 reply; 17+ messages in thread From: Sharon Kimble @ 2014-05-16 14:45 UTC (permalink / raw) To: help-gnu-emacs [-- Attachment #1: Type: text/plain, Size: 1843 bytes --] 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". > > Also, check out comp.text.tex. I'll certainly see if its on gmane, thanks for this. > > Good luck! > > [1] http://user.it.uu.se/~embe8573/latex/degree/ Sharon. -- A taste of linux = http://www.sharons.org.uk my git repo = https://bitbucket.org/boudiccas/dots TGmeds = http://www.tgmeds.org.uk Debian testing, Fluxbox 1.3.5, emacs 24.3.91.1 [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 818 bytes --] ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: changing from \cite{1} to \cite{MacRae,2002} 2014-05-16 14:45 ` Sharon Kimble @ 2014-05-16 16:21 ` Rasmus 2014-05-16 18:24 ` Sharon Kimble [not found] ` <mailman.1498.1400264694.1147.help-gnu-emacs@gnu.org> 0 siblings, 2 replies; 17+ messages in thread From: Rasmus @ 2014-05-16 16:21 UTC (permalink / raw) To: help-gnu-emacs 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} —Rasmus -- I hear there's rumors on the, uh, Internets. . . ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: changing from \cite{1} to \cite{MacRae,2002} 2014-05-16 16:21 ` Rasmus @ 2014-05-16 18:24 ` Sharon Kimble 2014-05-16 18:35 ` Rasmus [not found] ` <mailman.1498.1400264694.1147.help-gnu-emacs@gnu.org> 1 sibling, 1 reply; 17+ messages in thread From: Sharon Kimble @ 2014-05-16 18:24 UTC (permalink / raw) To: Rasmus; +Cc: help-gnu-emacs [-- Attachment #1: Type: text/plain, Size: 3132 bytes --] 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. --8<---------------cut here---------------start------------->8--- \addbibresource{uh2014.bib} \bibliography{uh2014} --8<---------------cut here---------------end--------------->8--- This is part of "uh2014.bib" --8<---------------cut here---------------start------------->8--- @Article{MacRae2002, author = {MacRae K. Pattison J.}, title = {Home chemotherapy.}, journaltitle = {Nursing Times}, year = {2002}, key = {MacRae2002}, volume = {98}, number = {35}, pages = {34-35}, } --8<---------------cut here---------------end--------------->8--- 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? Thanks Sharon. -- A taste of linux = http://www.sharons.org.uk my git repo = https://bitbucket.org/boudiccas/dots TGmeds = http://www.tgmeds.org.uk Debian testing, Fluxbox 1.3.5, emacs 24.3.91.1 [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 818 bytes --] ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: changing from \cite{1} to \cite{MacRae,2002} 2014-05-16 18:24 ` Sharon Kimble @ 2014-05-16 18:35 ` Rasmus 2014-05-17 9:00 ` Sharon Kimble 0 siblings, 1 reply; 17+ messages in thread From: Rasmus @ 2014-05-16 18:35 UTC (permalink / raw) To: boudiccas; +Cc: help-gnu-emacs 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. . . ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: changing from \cite{1} to \cite{MacRae,2002} 2014-05-16 18:35 ` Rasmus @ 2014-05-17 9:00 ` Sharon Kimble 2014-05-17 17:02 ` Rasmus 0 siblings, 1 reply; 17+ messages in thread From: Sharon Kimble @ 2014-05-17 9:00 UTC (permalink / raw) To: Rasmus; +Cc: help-gnu-emacs [-- Attachment #1: Type: text/plain, Size: 4607 bytes --] 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? And in the references section it displays as --8<---------------cut here---------------start------------->8--- MacRae, K., and J. Pattison. 2002. “Home chemotherapy.” Nursing Times 98 (35): 34– 35. --8<---------------cut here---------------end--------------->8--- 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? 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 -- A taste of linux = http://www.sharons.org.uk my git repo = https://bitbucket.org/boudiccas/dots TGmeds = http://www.tgmeds.org.uk Debian testing, Fluxbox 1.3.5, emacs 24.3.91.1 [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 818 bytes --] ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: changing from \cite{1} to \cite{MacRae,2002} 2014-05-17 9:00 ` Sharon Kimble @ 2014-05-17 17:02 ` Rasmus 0 siblings, 0 replies; 17+ messages in thread From: Rasmus @ 2014-05-17 17:02 UTC (permalink / raw) To: boudiccas; +Cc: help-gnu-emacs 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? ^ permalink raw reply [flat|nested] 17+ messages in thread
[parent not found: <mailman.1498.1400264694.1147.help-gnu-emacs@gnu.org>]
* Re: changing from \cite{1} to \cite{MacRae,2002} [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 1 sibling, 0 replies; 17+ messages in thread From: Stefan Nobis @ 2014-05-17 9:06 UTC (permalink / raw) To: help-gnu-emacs Sharon Kimble <boudiccas@skimble.plus.com> writes: > Thanks for this, using your "\usepackage" above, but which do I use > for the bib database? I think you misunderstand the cite command. When you type "\cite{foo}" in your TeX source, the text inside the cite command (here: foo; called the bibtex-key or cite-key) is just an arbitrary text that is solely used to find the matching entry in the BIB-file and has nothing to do with how the citation is formatted in the resulting document. The cite-key is the first part in each entry in the BIB-file, so in this example > @Article{MacRae2002, > author = {MacRae K. Pattison J.}, > title = {Home chemotherapy.}, > journaltitle = {Nursing Times}, > year = {2002}, > key = {MacRae2002}, > volume = {98}, > number = {35}, > pages = {34-35}, > } the cite-key is MacRae2002. Besides the field key inside the entry is a sort-key and has nothing to do with the cite-key to find this entry and is solely used to sort this entry in the bibliography list (only needed if you want to manually influence the sorting). The presentation of the citation (what will be printed in the place of "\cite{foo}") is controlled by the citation style (see biblatex reference). So if you choose a numeric citation style, even \cite{foo} will generate a number like "[123]", if you choose an author-year citation style something like "First Author, 2014" will be generated for \cite{foo}. If you absolutley must use the cite-key in the generated document you can achieve this with biblatex in the following way (see also http://tex.stackexchange.com/questions/8428/use-bibtex-key-as-the-cite-key): --8<---------------cut here---------------start------------->8--- \usepackage[style=alphabetic,sorting=debug]{biblatex} \DeclareFieldFormat{labelalpha}{\thefield{entrykey}} \DeclareFieldFormat{extraalpha}{} --8<---------------cut here---------------end--------------->8--- The option "sorting=debug" sorts based on the cite-key (instead of the default sorting sequence). The default citation style is set to alphabetic, but the two DeclareFieldFormat commands change the generated text, so that instead of something based on author and year the pure cite-key will show up. -- Stefan. ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: changing from \cite{1} to \cite{MacRae,2002} [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 1 sibling, 0 replies; 17+ messages in thread From: Stefan Nobis @ 2014-05-17 9:10 UTC (permalink / raw) To: help-gnu-emacs Sharon Kimble <boudiccas@skimble.plus.com> writes: > Thanks for this, using your "\usepackage" above, but which do I use > for the bib database? I think you misunderstand the cite command. When you type "\cite{foo}" in your TeX source, the text inside the cite command (here: foo; called the bibtex-key or cite-key) is just an arbitrary text that is solely used to find the matching entry in the BIB-file and has nothing to do with how the citation is formatted in the resulting document. The cite-key is the first part in each entry in the BIB-file, so in this example > @Article{MacRae2002, > author = {MacRae K. Pattison J.}, > title = {Home chemotherapy.}, > journaltitle = {Nursing Times}, > year = {2002}, > key = {MacRae2002}, > volume = {98}, > number = {35}, > pages = {34-35}, > } the cite-key is MacRae2002. Besides the field key inside the entry is a sort-key and has nothing to do with the cite-key to find this entry and is solely used to sort this entry in the bibliography list (only needed if you want to manually influence the sorting). The presentation of the citation (what will be printed in the place of "\cite{foo}") is controlled by the citation style (see biblatex reference). So if you choose a numeric citation style, even \cite{foo} will generate a number like "[123]", if you choose an author-year citation style something like "First Author, 2014" will be generated for \cite{foo}. If you absolutley must use the cite-key in the generated document you can achieve this with biblatex in the following way (see also http://tex.stackexchange.com/questions/8428/use-bibtex-key-as-the-cite-key): --8<---------------cut here---------------start------------->8--- \usepackage[style=alphabetic,sorting=debug]{biblatex} \DeclareFieldFormat{labelalpha}{\thefield{entrykey}} \DeclareFieldFormat{extraalpha}{} --8<---------------cut here---------------end--------------->8--- The option "sorting=debug" sorts based on the cite-key (instead of the default sorting sequence). The default citation style is set to alphabetic, but the two DeclareFieldFormat commands change the generated text, so that instead of something based on author and year the pure cite-key will show up. By the way: Maybe you should have a look at newsgroup comp.text.tex or at http://tex.stackexchange.com/. There are questions about TeX/LaTeX more appropriate. Crosspost & Followup-To: comp.text.tex -- Stefan. ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: changing from \cite{1} to \cite{MacRae,2002} 2014-05-16 1:45 ` Emanuel Berg 2014-05-16 14:45 ` Sharon Kimble @ 2014-05-16 15:20 ` Alberto Luaces [not found] ` <mailman.1480.1400253690.1147.help-gnu-emacs@gnu.org> [not found] ` <mailman.1474.1400251548.1147.help-gnu-emacs@gnu.org> 3 siblings, 0 replies; 17+ messages in thread From: Alberto Luaces @ 2014-05-16 15:20 UTC (permalink / raw) To: help-gnu-emacs Emanuel Berg writes: > 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! I had no problems rendering it — gnus here as well. Maybe it is a problem with your unicode font/settings... -- Alberto ^ permalink raw reply [flat|nested] 17+ messages in thread
[parent not found: <mailman.1480.1400253690.1147.help-gnu-emacs@gnu.org>]
* Re: changing from \cite{1} to \cite{MacRae,2002} [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> 0 siblings, 2 replies; 17+ messages in thread From: Emanuel Berg @ 2014-05-16 17:40 UTC (permalink / raw) To: help-gnu-emacs Alberto Luaces <aluaces@udc.es> writes: >> 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! > > I had no problems rendering it — gnus here as well. > Maybe it is a problem with your unicode > font/settings... On `C-u g', which presents the message with none (or a minimum) of preceding processing, I see several sequences that looks like this: =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 Here is what it looks like "in action" [1]. Do you know how to fix that? I'm on GNU Emacs 24.3.1, on a Linux tty; on Linux debian 3.2.0-4-amd64 #1 SMP Debian 3.2.57-3 x86_64 GNU/Linux; and the LC stuff are en_US.utf8. [1] http://user.it.uu.se/~embe8573/pimgs/Sharon-chaos.png -- underground experts united: http://user.it.uu.se/~embe8573 ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: changing from \cite{1} to \cite{MacRae,2002} 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> 1 sibling, 0 replies; 17+ messages in thread From: Thien-Thi Nguyen @ 2014-05-16 20:10 UTC (permalink / raw) To: help-gnu-emacs [-- Attachment #1: Type: text/plain, Size: 484 bytes --] () Emanuel Berg <embe8573@student.uu.se> () Fri, 16 May 2014 19:40:18 +0200 [...] and the LC stuff are en_US.utf8. Maybe my system is weird, but i see "en_US.UTF-8" in /usr/share/i18n/SUPPORTED and not "en_US.utf8". Could that be the problem? -- Thien-Thi Nguyen GPG key: 4C807502 (if you're human and you know it) read my lisp: (responsep (questions 'technical) (not (via 'mailing-list))) => nil [-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --] ^ permalink raw reply [flat|nested] 17+ messages in thread
[parent not found: <mailman.1503.1400270762.1147.help-gnu-emacs@gnu.org>]
* Re: changing from \cite{1} to \cite{MacRae,2002} [not found] ` <mailman.1503.1400270762.1147.help-gnu-emacs@gnu.org> @ 2014-05-16 23:00 ` Emanuel Berg 0 siblings, 0 replies; 17+ messages in thread From: Emanuel Berg @ 2014-05-16 23:00 UTC (permalink / raw) To: help-gnu-emacs Thien-Thi Nguyen <ttn@gnu.org> writes: > Maybe my system is weird, but i see "en_US.UTF-8" in > /usr/share/i18n/SUPPORTED and not "en_US.utf8". > Could that be the problem? That could be *a* problem :) But: =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 "works" (well), only the auto-fill messes it up! The --8<---------------cut here---------------start------------->8--- doesn't work, but that doesn't look like a UTF-8 thing, does it? -- underground experts united: http://user.it.uu.se/~embe8573 ^ permalink raw reply [flat|nested] 17+ messages in thread
[parent not found: <mailman.1474.1400251548.1147.help-gnu-emacs@gnu.org>]
* Re: changing from \cite{1} to \cite{MacRae,2002} [not found] ` <mailman.1474.1400251548.1147.help-gnu-emacs@gnu.org> @ 2014-05-16 17:50 ` Emanuel Berg 0 siblings, 0 replies; 17+ messages in thread From: Emanuel Berg @ 2014-05-16 17:50 UTC (permalink / raw) To: help-gnu-emacs Sharon Kimble <boudiccas@skimble.plus.com> writes: > Wrong! I don't know of any "man" called Sharon! :) The specialist doesn't make silly mistakes like that. Here, "man" refers to "hu*man*" - just think of it, otherwise you wouldn't even be allowed to read the man pages. Mano a mano! > 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". OK, but in principle, it should be the same. Also, the [1] is the scientific standard these days in my part of the world, at least. And as you saw in the example I provided, it can carry surplus information - pages, as in the example - but: how to add what you seek (by default) I don't know, but keep digging because that is something that is 100% possible to automatize with minimal effort and it should already be implemented, no doubt. -- underground experts united: http://user.it.uu.se/~embe8573 ^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2014-05-17 17:02 UTC | newest] Thread overview: 17+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-05-15 19:09 changing from \cite{1} to \cite{MacRae,2002} Sharon Kimble 2014-05-16 7:38 ` Eric S Fraga 2014-05-16 14:40 ` Sharon Kimble [not found] <mailman.1413.1400181010.1147.help-gnu-emacs@gnu.org> 2014-05-16 1:45 ` 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 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
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.