ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* bibliography basics
@ 2011-04-14 13:20 Hagmann Jörg
  2011-04-14 14:40 ` Wolfgang Schuster
  2011-04-28 14:13 ` Hagmann Jörg
  0 siblings, 2 replies; 10+ messages in thread
From: Hagmann Jörg @ 2011-04-14 13:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users

I haven't used bibliographies before and have a few basic questions.
I am using mkiv, current version: 2011.04.03 22:32.

1. If I interpret the wiki pages correctly, the bib module is not needed for mkiv. On the other hand, examples I found in the archive have "\usemodule[bib]" included, although (I think) they were meant for mkiv, and leaving it out didn't affect the outcome. Question: has \usemodule[bib] no function in mkiv, never?

2. Where can I get documentation? Can Taco's bib-module documentation still be used? (In my experiments in some cases, not in others).

3. The "very basic example" on contextgarden (http://wiki.contextgarden.net/Bibliography_mkiv#Example_of_use) gave numbers in the text and an alphabetic list at the end. I added  "\setuppublications[alternative=apa]". Would that be the way to do it? Please change it if there is something better (according to bibmod-doc, apa should be default).

Thanks, Jörg
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bibliography basics
  2011-04-14 13:20 bibliography basics Hagmann Jörg
@ 2011-04-14 14:40 ` Wolfgang Schuster
  2011-04-29 14:47   ` George N. White III
  2011-04-28 14:13 ` Hagmann Jörg
  1 sibling, 1 reply; 10+ messages in thread
From: Wolfgang Schuster @ 2011-04-14 14:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1095 bytes --]


Am 14.04.2011 um 15:20 schrieb Hagmann Jörg:

> I haven't used bibliographies before and have a few basic questions.
> I am using mkiv, current version: 2011.04.03 22:32.
> 
> 1. If I interpret the wiki pages correctly, the bib module is not needed for mkiv. On the other hand, examples I found in the archive have "\usemodule[bib]" included, although (I think) they were meant for mkiv, and leaving it out didn't affect the outcome. Question: has \usemodule[bib] no function in mkiv, never?

The bibliography code was first a separate module which had been loaded with \usemodule[bib] but a while ago Hans added the code to contexts core. It’s no longer necessary to load a extra module for the functionality and when you have \usemodule[bib] in your document the line produce only a line at the console with the text “skipping obsolete module”.

> 2. Where can I get documentation? Can Taco's bib-module documentation still be used? (In my experiments in some cases, not in others).

The manual is now available at the wiki: http://modules.contextgarden.net/bibman

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 1514 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bibliography basics
  2011-04-14 13:20 bibliography basics Hagmann Jörg
  2011-04-14 14:40 ` Wolfgang Schuster
@ 2011-04-28 14:13 ` Hagmann Jörg
  2011-05-03 12:38   ` Hagmann Jörg
  1 sibling, 1 reply; 10+ messages in thread
From: Hagmann Jörg @ 2011-04-28 14:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thanks, Wolfgang - and a follow-up question:

I have no time for a minimal example - if there is no quick and obvious answer, tell me and I'll prepare one later.
I have numbers in the text and want \invertedshortauthor in the publicationlist. But I get "First Name-Initial-Surname..." no matter what I try.  If I have Name-Year in the text, it comes out the way I want it.

I tried, e.g.:
-----------------
\setupbibtex[database={manuscript}]
\setuppublications[alternative=num,criterium=text,sorttype=cite]

\setuppublicationlist[author={\invertedshortauthor}] %should be default anyway?

\starttext
\placepublications[criterium=text]
\stoptext
-----------------

Thanks, Jörg

On Apr 14, 2011, at 3:20 PM, Hagmann Jörg wrote:

> I haven't used bibliographies before and have a few basic questions.
> I am using mkiv, current version: 2011.04.03 22:32.
> 
> 1. If I interpret the wiki pages correctly, the bib module is not needed for mkiv. On the other hand, examples I found in the archive have "\usemodule[bib]" included, although (I think) they were meant for mkiv, and leaving it out didn't affect the outcome. Question: has \usemodule[bib] no function in mkiv, never?
> 
> 2. Where can I get documentation? Can Taco's bib-module documentation still be used? (In my experiments in some cases, not in others).
> 
> 3. The "very basic example" on contextgarden (http://wiki.contextgarden.net/Bibliography_mkiv#Example_of_use) gave numbers in the text and an alphabetic list at the end. I added  "\setuppublications[alternative=apa]". Would that be the way to do it? Please change it if there is something better (according to bibmod-doc, apa should be default).
> 
> Thanks, Jörg
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

Prof. Jörg Hagmann-Zanolari MD
University of Basel
Department of Biomedicine
Institute of Biochemistry and Genetics
Mattenstrasse 28
CH-4058 Basel
Switzerland
Phone +41 (0)61 267 3565

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bibliography basics
  2011-04-14 14:40 ` Wolfgang Schuster
@ 2011-04-29 14:47   ` George N. White III
  0 siblings, 0 replies; 10+ messages in thread
From: George N. White III @ 2011-04-29 14:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, Apr 14, 2011 at 11:40 AM, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:
>
> Am 14.04.2011 um 15:20 schrieb Hagmann Jörg:
>
> I haven't used bibliographies before and have a few basic questions.
> I am using mkiv, current version: 2011.04.03 22:32.
>
> [...]
>
> 2. Where can I get documentation? Can Taco's bib-module documentation still
> be used? (In my experiments in some cases, not in others).
>
> The manual is now available at the
> wiki: http://modules.contextgarden.net/bibman

In TeX Live 2010, "texdoc bibmod" finds a 284752 byte  bibmod-doc.pdf
that is identical to the one available from the above URL.

-- 
George N. White III <aa056@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bibliography basics
  2011-04-28 14:13 ` Hagmann Jörg
@ 2011-05-03 12:38   ` Hagmann Jörg
  2011-05-04  7:32     ` Taco Hoekwater
  0 siblings, 1 reply; 10+ messages in thread
From: Hagmann Jörg @ 2011-05-03 12:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 324 bytes --]

Using the attached minimal example with biblio.bib, how can I get an alphabetical publication-list with surname-Initials etc. when using numbers in the thext? Shouldn't that be default? It is when using authoryear in the text (comment/uncomment the relevant lines).

mkiv, current version: 2011.04.03 22:32. Mac 10.6.7


[-- Attachment #2: biblio.bib --]
[-- Type: application/octet-stream, Size: 1097 bytes --]

@article{Berrigan:2002p31004,
	Author = {David Berrigan and Susan N Perkins and Diana C Haines and Stephen D Hursting},
	Journal = {Carcinogenesis},
	Month = {May},
	Number = {5},
	Pages = {817--22},
	Title = {Adult-onset calorie restriction and fasting delay spontaneous tumorigenesis in p53-deficient mice},
	Volume = {23},
	Year = {2002}}
@article{freedman2008,
	Author = {Freedman, Neal D and Park, Yikyung and Subar, Amy F and Hollenbeck, Albert R and Leitzmann, Michael F and Schatzkin, Arthur and Abnet, Christian C},
	Journal = {Int J Cancer},
	Month = {May},
	Number = {10},
	Pages = {2330--2336},
	Title = {Fruit and vegetable intake and head and neck cancer risk in a large United States prospective cohort study.},
	Volume = {122},
	Year = {2008}}
@article{Harris:2011p31131,
	Author = {Holly R Harris and Walter C Willett and Kathryn L Terry and Karin B Michels},
	Journal = {J Natl Cancer Inst},
	Month = {Feb},
	Number = {3},
	Pages = {273--8},
	Title = {Body fat distribution and risk of premenopausal breast cancer in the Nurses' Health Study II},
	Volume = {103},
	Year = {2011}}

[-- Attachment #3: minimal-bib.tex --]
[-- Type: application/octet-stream, Size: 763 bytes --]

\setupbibtex[database={biblio}]

%%%%%%% Names in the text, authors surname - initials - etc. in list %%%%

% \setuppublications[alternative=apa,sorttype=bbl]

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%% Numbered citations in text, but the list comes as firstname -
%%%%%%% surname - etc. How can I get surname - initials - etc.?

\setuppublications[alternative=num,criterium=text,sorttype=cite]
\setuppublicationlist[author=\invertedshortauthor] %Has no effect?

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\starttext

One \cite[Harris:2011p31131], two \cite[Berrigan:2002p31004], Three
\cite[freedman2008].


\subject{References}

\placepublications[criterium=text]

\stoptext

[-- Attachment #4: Type: text/plain, Size: 810 bytes --]



Thanks, Jörg

On Apr 28, 2011, at 4:13 PM, Hagmann Jörg wrote:

> Thanks, Wolfgang - and a follow-up question:
> 
> I have no time for a minimal example - if there is no quick and obvious answer, tell me and I'll prepare one later.
> I have numbers in the text and want \invertedshortauthor in the publicationlist. But I get "First Name-Initial-Surname..." no matter what I try.  If I have Name-Year in the text, it comes out the way I want it.
> 
> I tried, e.g.:
> -----------------
> \setupbibtex[database={manuscript}]
> \setuppublications[alternative=num,criterium=text,sorttype=cite]
> 
> \setuppublicationlist[author={\invertedshortauthor}] %should be default anyway?
> 
> \starttext
> \placepublications[criterium=text]
> \stoptext
> -----------------
> 
> Thanks, Jörg
> 


[-- Attachment #5: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bibliography basics
  2011-05-03 12:38   ` Hagmann Jörg
@ 2011-05-04  7:32     ` Taco Hoekwater
  2011-05-05 12:24       ` Hagmann Jörg
  0 siblings, 1 reply; 10+ messages in thread
From: Taco Hoekwater @ 2011-05-04  7:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users



On 05/03/11 14:38, Hagmann Jörg wrote:
> Using the attached minimal example with biblio.bib, how can I get an alphabetical publication-list with surname-Initials etc. when using numbers in the thext? Shouldn't that be default? It is when using authoryear in the text (comment/uncomment the relevant lines).

\setupbibtex[sort=author]

Best wishes,
Taco
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bibliography basics
  2011-05-04  7:32     ` Taco Hoekwater
@ 2011-05-05 12:24       ` Hagmann Jörg
  2011-05-05 14:13         ` Taco Hoekwater
  2011-05-05 14:25         ` Thomas A. Schmitz
  0 siblings, 2 replies; 10+ messages in thread
From: Hagmann Jörg @ 2011-05-05 12:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Taco,

Thanks, but my problem is not sorting, it is the appearance of the references in the list of references.

When using "\setuppublications[alternative=num,criterium=text,sorttype=cite]", I get the sequence "first name-surname- etc." no matter what I say in "setuppublicationlist[author=...]".

When using "\setuppublications[alternative=apa,sorttype=bbl]" , I get "surname-initials-etc." no matter what I say in "setuppublicationlist[author=...]".

How can I control the publicationlist? Probably something trivial.

Thanks, Jörg



On May 4, 2011, at 9:32 AM, Taco Hoekwater wrote:

> 
> 
> On 05/03/11 14:38, Hagmann Jörg wrote:
>> Using the attached minimal example with biblio.bib, how can I get an alphabetical publication-list with surname-Initials etc. when using numbers in the thext? Shouldn't that be default? It is when using authoryear in the text (comment/uncomment the relevant lines).
> 
> \setupbibtex[sort=author]
> 
> Best wishes,
> Taco
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

Prof. Jörg Hagmann-Zanolari MD
University of Basel
Department of Biomedicine
Institute of Biochemistry and Genetics
Mattenstrasse 28
CH-4058 Basel
Switzerland
Phone +41 (0)61 267 3565

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bibliography basics
  2011-05-05 12:24       ` Hagmann Jörg
@ 2011-05-05 14:13         ` Taco Hoekwater
  2011-05-05 14:25         ` Thomas A. Schmitz
  1 sibling, 0 replies; 10+ messages in thread
From: Taco Hoekwater @ 2011-05-05 14:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 05/05/2011 02:24 PM, Hagmann Jörg wrote:
> Hi Taco,
>
> Thanks, but my problem is not sorting, it is the appearance of the references in the list of references.
>
> When using "\setuppublications[alternative=num,criterium=text,sorttype=cite]", I get the sequence "first name-surname- etc." no matter what I say in "setuppublicationlist[author=...]".
>
> When using "\setuppublications[alternative=apa,sorttype=bbl]" , I get "surname-initials-etc." no matter what I say in "setuppublicationlist[author=...]".
>
> How can I control the publicationlist? Probably something trivial.

Not really. The styles like 'num' and 'apa' follow predefined 
requirement by certain publishers, so they do thing in one particular 
way. If you want something else, you have to write a bibl-xxx.tex
file (the existing ones are in tex/context/bib).

Best wishes,
Taco
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bibliography basics
  2011-05-05 12:24       ` Hagmann Jörg
  2011-05-05 14:13         ` Taco Hoekwater
@ 2011-05-05 14:25         ` Thomas A. Schmitz
  2011-05-05 14:34           ` Hagmann Jörg
  1 sibling, 1 reply; 10+ messages in thread
From: Thomas A. Schmitz @ 2011-05-05 14:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On May 5, 2011, at 2:24 PM, Hagmann Jörg wrote:

> Hi Taco,
> 
> Thanks, but my problem is not sorting, it is the appearance of the references in the list of references.
> 
> When using "\setuppublications[alternative=num,criterium=text,sorttype=cite]", I get the sequence "first name-surname- etc." no matter what I say in "setuppublicationlist[author=...]".
> 
> When using "\setuppublications[alternative=apa,sorttype=bbl]" , I get "surname-initials-etc." no matter what I say in "setuppublicationlist[author=...]".
> 
> How can I control the publicationlist? Probably something trivial.
> 
> Thanks, Jörg

Have you seen the examples on p. 4-5 of the documentation of Taco's module? I don't have time to look at your examples, I can just give you code snippets from what I use, and it works:

\def\myinvertedauthor#1#2#3#4#5%
   {#3\bibalternative{surnamesep}%
    \bibdoif{#4}{#4\unskip}%
    \bibdoifelse{#2}{\bibalternative{vonsep}#2\unskip}{\unskip}%
    \bibdoifelse{#5}{\bibalternative{juniorsep}#5\unskip}{\unskip}%
}

\setuppublicationlist
   [width=24pt,
    artauthor=\myinvertedauthor,
    editor=\myinvertedauthor,
    author=\myinvertedauthor]

HTH

Thomas
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: bibliography basics
  2011-05-05 14:25         ` Thomas A. Schmitz
@ 2011-05-05 14:34           ` Hagmann Jörg
  0 siblings, 0 replies; 10+ messages in thread
From: Hagmann Jörg @ 2011-05-05 14:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Taco and Thomas,

Thank you very much for both the explanations and the solution.

Jörg

On May 5, 2011, at 4:25 PM, Thomas A. Schmitz wrote:

> 
> On May 5, 2011, at 2:24 PM, Hagmann Jörg wrote:
> 
>> Hi Taco,
>> 
>> Thanks, but my problem is not sorting, it is the appearance of the references in the list of references.
>> 
>> When using "\setuppublications[alternative=num,criterium=text,sorttype=cite]", I get the sequence "first name-surname- etc." no matter what I say in "setuppublicationlist[author=...]".
>> 
>> When using "\setuppublications[alternative=apa,sorttype=bbl]" , I get "surname-initials-etc." no matter what I say in "setuppublicationlist[author=...]".
>> 
>> How can I control the publicationlist? Probably something trivial.
>> 
>> Thanks, Jörg
> 
> Have you seen the examples on p. 4-5 of the documentation of Taco's module? I don't have time to look at your examples, I can just give you code snippets from what I use, and it works:
> 
> \def\myinvertedauthor#1#2#3#4#5%
>   {#3\bibalternative{surnamesep}%
>    \bibdoif{#4}{#4\unskip}%
>    \bibdoifelse{#2}{\bibalternative{vonsep}#2\unskip}{\unskip}%
>    \bibdoifelse{#5}{\bibalternative{juniorsep}#5\unskip}{\unskip}%
> }
> 
> \setuppublicationlist
>   [width=24pt,
>    artauthor=\myinvertedauthor,
>    editor=\myinvertedauthor,
>    author=\myinvertedauthor]
> 
> HTH
> 
> Thomas
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-05-05 14:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-14 13:20 bibliography basics Hagmann Jörg
2011-04-14 14:40 ` Wolfgang Schuster
2011-04-29 14:47   ` George N. White III
2011-04-28 14:13 ` Hagmann Jörg
2011-05-03 12:38   ` Hagmann Jörg
2011-05-04  7:32     ` Taco Hoekwater
2011-05-05 12:24       ` Hagmann Jörg
2011-05-05 14:13         ` Taco Hoekwater
2011-05-05 14:25         ` Thomas A. Schmitz
2011-05-05 14:34           ` Hagmann Jörg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).