Re: [NTG-context] New bib module

2009-04-01 Thread Taco Hoekwater

Bruce D'Arcus wrote:

Wolfgang Schuster schuster.wolfgang at googlemail.com writes:


Am 31.03.2009 um 09:27 schrieb Taco Hoekwater:


Will this new module also provide BibX support?

Perhaps ;)

On the input side, the new module will load bibliographies from disk
into an internal XML structure and then use lpath queries to fetch
bibliographic data. It will use separate loaders to do so, so in
the end, anything can be plugged in as long as it can be converted
to the internal structure.

Why not just a lua table to save the data?


Yes, I was wondering the same thing. This is typically how the various CSL
implementations work; parse the input data (XML, RDF, BibTeX, etc.) into some
internal structure.


I was't clear enough. internal XML structure actually is a lua
table structure. It just follows a bunch of special rules that
make lpath queries work.

Best wisehes,
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] New bib module

2009-04-01 Thread Hans Hagen

Bruce D'Arcus wrote:

Wolfgang Schuster schuster.wolfgang at googlemail.com writes:


Am 31.03.2009 um 09:27 schrieb Taco Hoekwater:


Will this new module also provide BibX support?

Perhaps ;)

On the input side, the new module will load bibliographies from disk
into an internal XML structure and then use lpath queries to fetch
bibliographic data. It will use separate loaders to do so, so in
the end, anything can be plugged in as long as it can be converted
to the internal structure.

Why not just a lua table to save the data?


Yes, I was wondering the same thing. This is typically how the various CSL
implementations work; parse the input data (XML, RDF, BibTeX, etc.) into some
internal structure.


just because the xml subsystem has some nice filtering and fetching 
built in (kind of xpath); internally the xml tree is of course a table, 
so it's no big deal to directly build that table without having xml, but 
ther ei sno need to invent yet another interface to such a datastructure


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] New bib module

2009-04-01 Thread Bruce D'Arcus
Taco Hoekwater taco at elvenkind.com writes:

 Bruce D'Arcus wrote:
  Wolfgang Schuster schuster.wolfgang at googlemail.com writes:
  
  Am 31.03.2009 um 09:27 schrieb Taco Hoekwater:
 
  Will this new module also provide BibX support?
  Perhaps ;)
 
  On the input side, the new module will load bibliographies from disk
  into an internal XML structure and then use lpath queries to fetch
  bibliographic data. It will use separate loaders to do so, so in
  the end, anything can be plugged in as long as it can be converted
  to the internal structure.
  Why not just a lua table to save the data?
  
  Yes, I was wondering the same thing. This is typically how the various CSL
  implementations work; parse the input data (XML, RDF, BibTeX, etc.) into 
  some
  internal structure.
 
 I was't clear enough. internal XML structure actually is a lua
 table structure. It just follows a bunch of special rules that
 make lpath queries work.

So it's a native Lua mapping of an XML model? E.g. something like, say, element
tree provides for Python?

Does that suggest that the input data is always XML?

Bruce

PS - Frank Bennett has been doing a lot of promising work on a rewrite of
Zotero's javscript-based CSL processor:
http://xbiblio.svn.sourceforge.net/viewvc/xbiblio/citeproc-js/trunk/.

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] New bib module

2009-03-31 Thread Taco Hoekwater


Wolfgang Schuster wrote:
 
 Am 30.03.2009 um 21:52 schrieb Aditya Mahajan:
 
 On Mon, 30 Mar 2009, Hans Hagen wrote:

 this is also the last non-xp version as i'm going to merge the
 cont-xp code into th emain version now

 Currently, the bib module does not work with cont-xp. Taco has said
 that it is easier to redo the bib module in lua than to get it to work
 with xp.
 
 Will this new module also provide BibX support?

Perhaps ;)

On the input side, the new module will load bibliographies from disk
into an internal XML structure and then use lpath queries to fetch
bibliographic data. It will use separate loaders to do so, so in
the end, anything can be plugged in as long as it can be converted
to the internal structure.

I have not decided yet how to handle the output (layout) side.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] New bib module

2009-03-31 Thread Hans Hagen

Taco Hoekwater wrote:


Wolfgang Schuster wrote:

Am 30.03.2009 um 21:52 schrieb Aditya Mahajan:


On Mon, 30 Mar 2009, Hans Hagen wrote:


this is also the last non-xp version as i'm going to merge the
cont-xp code into th emain version now

Currently, the bib module does not work with cont-xp. Taco has said
that it is easier to redo the bib module in lua than to get it to work
with xp.

Will this new module also provide BibX support?


Perhaps ;)

On the input side, the new module will load bibliographies from disk
into an internal XML structure and then use lpath queries to fetch
bibliographic data. It will use separate loaders to do so, so in
the end, anything can be plugged in as long as it can be converted
to the internal structure.

I have not decided yet how to handle the output (layout) side.


easiest is to use setups

\startxmlsetups bibtex:somename
  ... fetch this ...
  ... fetch that ...

and then have something

\setupbibtex[setups=bibtex:somename]

with someplace

\xmlsetup{\bibtexparameter{setups}}{#1}

etc etc

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] New bib module

2009-03-31 Thread Wolfgang Schuster


Am 31.03.2009 um 09:27 schrieb Taco Hoekwater:


Will this new module also provide BibX support?


Perhaps ;)

On the input side, the new module will load bibliographies from disk
into an internal XML structure and then use lpath queries to fetch
bibliographic data. It will use separate loaders to do so, so in
the end, anything can be plugged in as long as it can be converted
to the internal structure.


Why not just a lua table to save the data?

Wolfgang

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] New bib module

2009-03-31 Thread Bruce D'Arcus
Wolfgang Schuster schuster.wolfgang at googlemail.com writes:

 Am 31.03.2009 um 09:27 schrieb Taco Hoekwater:
 
  Will this new module also provide BibX support?
 
  Perhaps ;)
 
  On the input side, the new module will load bibliographies from disk
  into an internal XML structure and then use lpath queries to fetch
  bibliographic data. It will use separate loaders to do so, so in
  the end, anything can be plugged in as long as it can be converted
  to the internal structure.
 
 Why not just a lua table to save the data?

Yes, I was wondering the same thing. This is typically how the various CSL
implementations work; parse the input data (XML, RDF, BibTeX, etc.) into some
internal structure.

Bruce

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] New bib module (was: beta)

2009-03-30 Thread Wolfgang Schuster


Am 30.03.2009 um 21:52 schrieb Aditya Mahajan:


On Mon, 30 Mar 2009, Hans Hagen wrote:

this is also the last non-xp version as i'm going to merge the cont- 
xp code into th emain version now


Currently, the bib module does not work with cont-xp. Taco has said  
that it is easier to redo the bib module in lua than to get it to  
work with xp.


Will this new module also provide BibX support?

Wolfgang

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] New bib module (was: beta)

2009-03-30 Thread Wolfgang Schuster


Am 30.03.2009 um 21:52 schrieb Aditya Mahajan:


On Mon, 30 Mar 2009, Hans Hagen wrote:

this is also the last non-xp version as i'm going to merge the cont- 
xp code into th emain version now


Currently, the bib module does not work with cont-xp. Taco has said  
that it is easier to redo the bib module in lua than to get it to  
work with xp.


Will this new module also provide BibX support?

Wolfgang

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] new bib module

2006-11-05 Thread gnwiii
On 11/4/06, Taco Hoekwater [EMAIL PROTECTED] wrote:
 Thomas A. Schmitz wrote:
  On Nov 4, 2006, at 8:28 PM, [EMAIL PROTECTED] wrote:
 
 
 $ texmfstart texexec try-ctx
 [...]
 Completed box being shipped out [1.1]
 Memory usage before: 1751690230; after: 397690074; still
 untouched: 939301
 title   : - References
 )
 ! Incomplete \iffalse; all text was ignored after line 23.
 inserted text
 \fi
 * try-ctx.tex
 emergencyend
 ?
 
 
 
  I got the same error; I think a \fi is missing in line 935?
 

 Absolutely correct, sorry again. Not my best day, this.

 New version uploaded

Now I get (running on linux):

$ texmfstart texexec try-ctx texmfstart.log 21
[EMAIL PROTECTED] bibtex]$ grep bibtex texmfstart.log
publications: file try-ctx.bbl not found, waiting for bibtex
TeXUtil | running bibtex\ try-ctx
sh: bibtex try-ctx: command not found
publications: file try-ctx.bbl not found, waiting for bibtex
publications: file try-ctx.bbl not found, waiting for bibtex
[EMAIL PROTECTED] bibtex]$ bibtex try-ctx
This is BibTeX, Version 0.99c (Web2C 7.5.5)
The top-level auxiliary file: try-ctx.aux
The style file: cont-no.bst
Database file #1: xampl.bib

It seems that linux looks for the program bibtex try-ctx due to the
escaped space.

-- 
George N. White III [EMAIL PROTECTED]
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] new bib module

2006-11-05 Thread Taco Hoekwater
[EMAIL PROTECTED] wrote:
 
 It seems that linux looks for the program bibtex try-ctx due to the
 escaped space.

Never give up, never surrender!

(new release uploaded)

Taco


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] new bib module

2006-11-05 Thread Hans Hagen
Taco Hoekwater wrote:
 Thomas A. Schmitz wrote:
   
 On Nov 4, 2006, at 8:28 PM, [EMAIL PROTECTED] wrote:


 
 $ texmfstart texexec try-ctx
 [...]
 Completed box being shipped out [1.1]
 Memory usage before: 1751690230; after: 397690074; still  
 untouched: 939301
 title   : - References
 )
 ! Incomplete \iffalse; all text was ignored after line 23.
 inserted text
\fi
 * try-ctx.tex
emergencyend
 ?

   
 I got the same error; I think a \fi is missing in line 935?

 

 Absolutely correct, sorry again. Not my best day, this.
   
come on, you're timesharing between luatex dev, metapost dev, context 
dev, company work ... permit yourself some occasional bugs -)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] new bib module

2006-11-05 Thread gnwiii
On 11/5/06, Taco Hoekwater [EMAIL PROTECTED] wrote:
 [EMAIL PROTECTED] wrote:
 
  It seems that linux looks for the program bibtex try-ctx due to the
  escaped space.

 Never give up, never surrender!

 (new release uploaded)

Thanks.  If you haven't had days like that you haven't done enough
programming yet.

I've already tested

\expanded{\installprogram{\@@pbbibtex\ \jobname --
\expanded{\installprogram{\@@pbbibtex\space\jobname

and it works for me with the defaults and with

\setupbibtex[database=xampl,bibtex=bibtex8]

on linux, but it will be a couple weeks before I'm near Win32 long
enough for further tests.

-- 
George N. White III [EMAIL PROTECTED]
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] new bib module

2006-11-04 Thread Taco Hoekwater
Hi,

I just uploaded a new bib module to http://modules.contextgarden.net

Fixes:
* \setuppublications[numbering=short]
* \setuppublications[numbering=bib]
* grid snapping of the publication list
* some spurious spaces

Added:
* \setupbibtex[bibtex=bibtex]

For Matthias: I know this does not quite fix all the problems
you had with short item keys when they are not generated by
\setupbibtex[sort=short], but at least you can have a normal
list of referenced items now.

Cheers, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] new bib module

2006-11-04 Thread Thomas A. Schmitz
Thanks Taco! Right now, I get a 404 error when I try to download.  
Server error?

Best

Thomas

On Nov 4, 2006, at 5:50 PM, Taco Hoekwater wrote:

 Hi,

 I just uploaded a new bib module to http://modules.contextgarden.net

 Fixes:
 * \setuppublications[numbering=short]
 * \setuppublications[numbering=bib]
 * grid snapping of the publication list
 * some spurious spaces

 Added:
 * \setupbibtex[bibtex=bibtex]

 For Matthias: I know this does not quite fix all the problems
 you had with short item keys when they are not generated by
 \setupbibtex[sort=short], but at least you can have a normal
 list of referenced items now.

 Cheers, Taco
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] new bib module

2006-11-04 Thread Taco Hoekwater
Thomas A. Schmitz wrote:
 Thanks Taco! Right now, I get a 404 error when I try to download.  

Sorry, re-uploaded (I gave the wrong revision id). Should be ok now.

Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] new bib module

2006-11-04 Thread gnwiii
On 11/4/06, Taco Hoekwater [EMAIL PROTECTED] wrote:
 Thomas A. Schmitz wrote:
  Thanks Taco! Right now, I get a 404 error when I try to download.

 Sorry, re-uploaded (I gave the wrong revision id). Should be ok now.

I was able to download the new version, but it is failing on the simple
example document from the wiki (I called it try-ctx) -- does it need a
very recent context (I have ConTeXt  ver: 2006.08.08 21:51  fmt:
2006.11.4  int: english  mes: english)?

$ texmfstart texexec try-ctx
[...]
Completed box being shipped out [1.1]
Memory usage before: 1751690230; after: 397690074; still untouched: 939301
title   : - References
)
! Incomplete \iffalse; all text was ignored after line 23.
inserted text
\fi
* try-ctx.tex
emergencyend
?



-- 
George N. White III [EMAIL PROTECTED]
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] new bib module

2006-11-04 Thread Thomas A. Schmitz

On Nov 4, 2006, at 8:28 PM, [EMAIL PROTECTED] wrote:

 $ texmfstart texexec try-ctx
 [...]
 Completed box being shipped out [1.1]
 Memory usage before: 1751690230; after: 397690074; still  
 untouched: 939301
 title   : - References
 )
 ! Incomplete \iffalse; all text was ignored after line 23.
 inserted text
 \fi
 * try-ctx.tex
 emergencyend
 ?


I got the same error; I think a \fi is missing in line 935?

Best

Thomas
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] new bib module

2006-11-04 Thread Taco Hoekwater
Thomas A. Schmitz wrote:
 On Nov 4, 2006, at 8:28 PM, [EMAIL PROTECTED] wrote:
 
 
$ texmfstart texexec try-ctx
[...]
Completed box being shipped out [1.1]
Memory usage before: 1751690230; after: 397690074; still  
untouched: 939301
title   : - References
)
! Incomplete \iffalse; all text was ignored after line 23.
inserted text
\fi
* try-ctx.tex
emergencyend
?

 
 
 I got the same error; I think a \fi is missing in line 935?
 

Absolutely correct, sorry again. Not my best day, this.

New version uploaded

Taco



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] New bib module release

2006-08-04 Thread Taco Hoekwater
Hi all,

I have just uploaded a new version of the bib module to

   http://modules.contextgarden.net/bib

It should become automatically included in the next ConTeXt
release, as always.

New features:

* Added support for configuration of \completepublicationlist,
   using \setuppublicationlist[title=\chapter]
* The module now uses the expansion of \headtext{pubs}, so that
   PDF bookmarks should come out alright.
* A hook is added for support of repeated author suppression in
   the publication list:
 \setuppublicationlist[artauthorcommand=\threeargs]
   (see the manual for a bit more information)
* The bracketed arguments of \artauthor, \author and \editor
   (bbl commands) are now optional.
* Minor updates to the documentation

Happy TeXing,
Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] New bib module release (2006.07.13)

2006-07-18 Thread Taco Hoekwater

Hi Tobias,

Your bugs are a bit bizarre. It is not as hot now as it was
yesterday evening, so  I can think better now.

Tobias Burnus wrote:
 However, I still have some problems (see attached testcase):

Testfile runs fine here: no empty braces except for 'url',
which is correct.

 \cite[doi][Slater1954] % produces [  http://dx.doi.org//1498];
 with superfluous space and DOI-URL not DOI.
 Expected: shows 10.1103/Phys not http://; ...

This would have fixed it:

   \setupcite[doi][interaction=stop]

But my next version makes this automatic by checking the value
of the global interaction mode.

 (The superfluous space disappears when using
 \setupinteraction[state=start].)

There is no superfluous space when I try it, so I cannot reproduce
the problem. Are you sure your local system is loading the right files?

 I have another feature with for \cite[author*][...]: I'd like to limit
 the displayed name to the family name of the first author. Currently, I
 have:   (Firstauthor and Lastauthor,1954) or (Firstauthor et al.,2005),
 however to save space I'd like to have only (Firstauthor,2005). I see
 andtext, otherstext, but miss the authoretallimit, which I would set to one.

My next upload (momentarily) will support:

   \setupcite[author][authoretallimit=1,
  otherstext=]

Just wait five minutes or so

 Does APA really uses several authors for authoryear?

I do not think so (the bib module doesnt)

Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] New bib module release (2006.07.13)

2006-07-18 Thread Tobias Burnus
Hi Taco,

Taco Hoekwater schrieb:
 Your bugs are a bit bizarre.
Fully granted. And (at least with today's t-bib) I cannot reproduce them
anymore ...

 My next upload (momentarily) will support:
\setupcite[author][authoretallimit=1,
   otherstext=]
   
Thanks! It now works as wanted :-)

Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] New bib module release (2006.07.13)

2006-07-17 Thread Tobias Burnus
Hello Taco et al.,

Taco Hoekwater wrote:
 After a fairly long list of betas, I have just uploaded a new
 release of the bibliographic module to contextgarden.net
   
I have two observations and one question.

If I use interactivity,
  \cite[year][myRef]
links to the \placepublications[criterium=all] list.
However, if I use  \cite[authoryear][myRef], it does not.

\cite[doi][Slater1954] shows something like
[Slater195410.1103/PhysRev.94.1498]
rather than 10.1103/PhysRev.94.1498

Has anyone an idea what goes wrong here:
   \def\onlinecite[#1]{\cite[left=,right=][#1]}
[...]
   \onlinecite[myRef] % does not work, shows []
Logfile: publications : warning: cite argument myRef unknown on 109

However, using \cite[left=,right=][myRef]  directly works.

Tobias

PS: This is with ConTeXt 2006.07.14 12:08 and t-bib 2006.07.14
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] New bib module release (2006.07.13)

2006-07-17 Thread Taco Hoekwater

Hi Tobias

Tobias Burnus wrote:
 
 I have two observations and one question.
 
 If I use interactivity,
   \cite[year][myRef]
 links to the \placepublications[criterium=all] list.
 However, if I use  \cite[authoryear][myRef], it does not.

This one is a case of NIY: If you really need interactivity, use

   \setupcite[authoryear][compress=no]

for now. I'll fix this in the next feature release (not impossible,
but needs a fair amount of juggling with \commalist-lists).

 \cite[doi][Slater1954] shows something like
 [Slater195410.1103/PhysRev.94.1498]
 rather than 10.1103/PhysRev.94.1498

This is a bug introduced by the new reference system that I will
fix soon (hopefully tomorrow). If I am not mistaen, \cite[url]
has a related problem.

 Has anyone an idea what goes wrong here:
\def\onlinecite[#1]{\cite[left=,right=][#1]}
 [...]
\onlinecite[myRef] % does not work, shows []
 Logfile: publications : warning: cite argument myRef unknown on 109
 
 However, using \cite[left=,right=][myRef]  directly works.

That maes absolutely no sense at all. Do you have a minimal
file to play with?

Greetings,
Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] New bib module release (2006.07.13)

2006-07-17 Thread Tobias Burnus
Hi Taco,

Taco Hoekwater wrote:
 This one is a case of NIY: If you really need interactivity, use
\setupcite[authoryear][compress=no]
 for now.
That is fine with me, (I think) I won't have one author with several
years thus compression is not important in this case.

 \cite[doi][Slater1954] shows something like
  [Slater195410.1103/PhysRev.94.1498]
  rather than 10.1103/PhysRev.94.1498
Ups, this is seemingly a bug in my environment file (which I recycled
from 2004). One definition clashes with t-bib.tex's gotoDOI. But there
is nontheless a bug (see below).

 Has anyone an idea what goes wrong here:
\def\onlinecite[#1]{\cite[left=,right=][#1]}
 [...]
\onlinecite[myRef] % does not work, shows []
 Logfile: publications : warning: cite argument myRef unknown on 109
 
Hmm, I don't know why, but this part works now :-/
I should definitely better test.

However, I still have some problems (see attached testcase):

\setuppublications[alternative=apa]

\cite[author][Slater1954] % produces ()

\cite[year][Slater1954] % produces ()

\cite[...][Slater1954]  with ... key, serial, page and type produces
[] (some might be ok, though)

\cite[doi][Slater1954] % produces [  http://dx.doi.org//1498];
with superfluous space and DOI-URL not DOI.
Expected: shows 10.1103/Phys not http://; ...
(The superfluous space disappears when using
\setupinteraction[state=start].)

And using \setuppublications[alternative=aps], I find:

Looks in principle ok, except for the same [doi] as above.

-

I have another feature with for \cite[author*][...]: I'd like to limit
the displayed name to the family name of the first author. Currently, I
have:   (Firstauthor and Lastauthor,1954) or (Firstauthor et al.,2005),
however to save space I'd like to have only (Firstauthor,2005). I see
andtext, otherstext, but miss the authoretallimit, which I would set to one.

Frankly, I have never seen references of the form (Several authors,
year); I do know, however, references of the form several authors
(year). Does APA really uses several authors for authoryear? The name
suggest not, only for authorsyear I would expect it.

If you default to one author for authoryear and author, I'd not mind
to have a authors beside author.

Tobias


mytest.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] New bib module release (2006.07.13)

2006-07-14 Thread Taco Hoekwater


Hans Hagen wrote:
thanks for the new version! I didn't have time to play with your  
latest beta, but the new release appears to have a problem: numbered  
references don't seem to work! I found an older post to the list by  

Hans' comment below this point was right, but in this case it really
didn't work. I've just finished uploading a new version that should
be better.

Cheers, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] New bib module release (2006.07.13)

2006-07-14 Thread Thomas A. Schmitz

On Jul 14, 2006, at 10:19 AM, Taco Hoekwater wrote:

 Hans' comment below this point was right, but in this case it really
 didn't work. I've just finished uploading a new version that should
 be better.

 Cheers, Taco

Of course Hans was right, but the problem persisted. Thanks for the  
new version, Taco, it works beautifully now! I'm still experiencing  
some problems with the structure of my projects (I have split up a  
lengthy book into several components and frontmatter, bodymatter, and  
backmatter: references are OK when I have component foo in the  
backmatter yet disappear when I put the same component into the  
frontmatter or bodymatter block), but you had warned me that the  
module may not work with such projects, and I may simply have to copy  
everything into one big file at the end of the editing process.

Thanks, and best

Thomas
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] New bib module release (2006.07.13)

2006-07-13 Thread Taco Hoekwater
Hi all,

After a fairly long list of betas, I have just uploaded a new
release of the bibliographic module to contextgarden.net

This release fixes three bugs that were still in beta 5:

* removed two incorrect spaces from bibl-num.tex
* reset the interaction style within \type{\cite}, so that
   font  switches from \type{\setupcite} stay in effect
* a guard is added against loading bbl files multiple times

It should be included automatically in the next context release.

Happy TeXing,

Taco

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] New bib module release (2006.07.13)

2006-07-13 Thread Thomas A. Schmitz

On Jul 13, 2006, at 10:47 AM, Taco Hoekwater wrote:

 Hi all,

 After a fairly long list of betas, I have just uploaded a new
 release of the bibliographic module to contextgarden.net

 This release fixes three bugs that were still in beta 5:

 * removed two incorrect spaces from bibl-num.tex
 * reset the interaction style within \type{\cite}, so that
font  switches from \type{\setupcite} stay in effect
 * a guard is added against loading bbl files multiple times

 It should be included automatically in the next context release.

 Happy TeXing,

 Taco


Hi Taco,

thanks for the new version! I didn't have time to play with your  
latest beta, but the new release appears to have a problem: numbered  
references don't seem to work! I found an older post to the list by  
Marten and I can confirm that it doesn't work. Here's a minimal test  
file:

%%%

\usemodule[bib]

\setuppublications[refcommand=num,
numbering=yes
]

\startpublication[k=austinhow,t=book,
a={{Austin}},y=1975a,
n=12,s=Aus75a]
\author[]{John~Langshaw}[J.~L.]{}{Austin}
\pubyear{1975\maybeyear{a}}
\title{How To Do Things with Words}
\city{Cambridge, MA}
\pubname{Harvard University Press}
\edition{2}
\stoppublication

\starttext

As can be seen in \cite[austinhow].

\page

\placepublications

\stoptext

%%%

If I change refcommand to author or other values, it works; with num  
I get

publications: warning: cite argument austinhow unknown on 108
references  : unknown reference [][0]

in my log file. Sorry, I don't know when this problem cropped up, but  
I know that this used to work...

Best

Thomas
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] New bib module release (2006.07.13)

2006-07-13 Thread Hans Hagen
Thomas A. Schmitz wrote:
 On Jul 13, 2006, at 10:47 AM, Taco Hoekwater wrote:

   
 Hi all,

 After a fairly long list of betas, I have just uploaded a new
 release of the bibliographic module to contextgarden.net

 This release fixes three bugs that were still in beta 5:

 * removed two incorrect spaces from bibl-num.tex
 * reset the interaction style within \type{\cite}, so that
font  switches from \type{\setupcite} stay in effect
 * a guard is added against loading bbl files multiple times

 It should be included automatically in the next context release.

 Happy TeXing,

 Taco

 

 Hi Taco,

 thanks for the new version! I didn't have time to play with your  
 latest beta, but the new release appears to have a problem: numbered  
 references don't seem to work! I found an older post to the list by  
 Marten and I can confirm that it doesn't work. Here's a minimal test  
 file:

 %%%

 \usemodule[bib]

 \setuppublications[refcommand=num,
 numbering=yes
   
numbering=yesspace
 ]
   
numbering=yes]

numbering=yes%
]

numbering=yes,
]

is correct 

Hans 


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] New bib module beta

2005-11-23 Thread Taco Hoekwater

Hi,

I've created a new beta of the bib module, and uploaded it to my
server. You can get it here:

  http://tex.aanhet.net/bib/m-bib-beta-20051123.zip

News compared to the previous beta:

* 2 new styles:
  - bibl-num.tex: c.f. plain.bst
  - bibl-ams.tex: AMS style (from Giuseppe)
* fix the hash marks bug
* fix the vertical spacing issues in the bib list
* add interaction to \cite[url]
* allow a defaulted \setupcite
* renamed citation type 'number' to 'serial'
* better definition of \inverted...author
* don't reset [numbercommand] in \setuppublications by default
* don't disable other \setuppublications keys if alternative=
  is present also (removes the need for doubling the \setup command)
* drop the \sanitizeaccents for \cite (making accents work again)
* added \nocite and \cite[none]

Bugs that are still present:

* internal links (\crossref field) are broken (workaround:
  \nocite[crossref-ed entry])
* items with missing years will break the compressed form of
  \cite[authoryear] and \cite[authoryears]
* there is no interaction yet for most types of cite (but \cite[url]
  should work, as well as \cite[num] when compression is turned off)

Hope I didn't forget to mention anything. It's not quite there yet,
but it is slowly getting there.

Cheers, Taco



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] New bib module beta

2005-11-23 Thread Tobias Burnus

Hi,

Taco Hoekwater wrote:

I've created a new beta of the bib module, and uploaded it to my
server.

Great.

* add interaction to \cite[url]

How about adding alike for DOI (see below), not much tested.
Maybe the shown DOI should be put though the URL hyphenation algorithm 
as they can be quite long?

(In any case I'd like to see the DOIs in sans serif and not in \tt.)
Examples for DOIs:
 10.1103/PhysRevLett.95.196404
 10.1016/j.physb.2004.11.012
 10.1021/ic020653b S0020-1669(02)00653-5
URL = http://dx.doi.org/ + doi

Tobias

diff -ur f/t-bib.tex t/t-bib.tex
--- f/t-bib.tex 2005-11-23 13:20:20.0 +0100
+++ t/t-bib.tex 2005-11-23 15:06:54.501153250 +0100
@@ -1228,9 +1228,11 @@
   \firstreftrue\processcommalist[#1]\dobibdoiref
   \bibalternative\v!right}

+\def\gotoDOI#1{\useURL[bibfoo][http://dx.doi.org/#1]\goto{#1}[url(bibfoo)]}
+
\def\dobibdoiref#1%
  {\addthisref{#1}\refsep
-   \doifbibreferencefoundelse{#1}{\getvalue{pbdo-#1}}{??}}
+   
\doifbibreferencefoundelse{#1}{\expanded{\gotoDOI{\getvalue{pbdo-#1{??}}


\def\biburlref[#1]%
  {\bibalternative\v!left
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] New bib module beta

2005-11-23 Thread Giuseppe Bilotta
Wednesday, November 23, 2005 Taco Hoekwater wrote:

 Hi,

 I've created a new beta of the bib module, and uploaded it to my
 server. You can get it here:

http://tex.aanhet.net/bib/m-bib-beta-20051123.zip

- bibl-ams.tex: AMS style (from Giuseppe)

 * renamed citation type 'number' to 'serial'

Except in bibl-ams :)

-- 
Giuseppe Oblomov Bilotta

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] New bib module beta

2005-11-23 Thread Giuseppe Bilotta
Wednesday, November 23, 2005 Taco Hoekwater wrote:

 Hi,

 I've created a new beta of the bib module, and uploaded it to my
 server. You can get it here:

http://tex.aanhet.net/bib/m-bib-beta-20051123.zip


\setupheadtext[it][\biblistname=Bibliografia]

-- 
Giuseppe Oblomov Bilotta


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] New bib module beta

2005-11-23 Thread Giuseppe Bilotta
Wednesday, November 23, 2005 Taco Hoekwater wrote:

 Hi,

 I've created a new beta of the bib module, and uploaded it to my
 server. You can get it here:

http://tex.aanhet.net/bib/m-bib-beta-20051123.zip

Hm. criterium=all doesn't seem to work anymore, regardless
of whether I place it in \setuppublications or
\placepublications.

Also, I'm using alternative=ams and the numbers past 10
stick to the text. I also notice that they are left-aligned,
and not right-aligned. How can I fix these things?

-- 
Giuseppe Oblomov Bilotta

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] New bib module beta 2

2005-11-23 Thread Taco Hoekwater

Hi,

There is a new beta, again:

  http://tex.aanhet.net/bib/m-bib-beta-20051123b.zip

Tobias Burnus wrote:


How about adding alike for DOI (see below), not much tested.


patch applied, so \cite[doi] should be interactive now


Giuseppe Bilotta wrote:

\setupheadtext[it][\biblistname=Bibliografia]


added.

Giuseppe Bilotta wrote:

* renamed citation type 'number' to 'serial'


Except in bibl-ams :)


fixed.

Giuseppe Bilotta wrote:


Hm. criterium=all doesn't seem to work anymore, regardless
of whether I place it in \setuppublications or
\placepublications.


Yup, I broke it. It should be in \setuppublications, btw.


Also, I'm using alternative=ams and the numbers past 10
stick to the text. I also notice that they are left-aligned,
and not right-aligned. How can I fix these things?


Right-align only worked when autohang=yes. I've made
bibl-ams.tex turn autohang on now, but I have also made
the alignment work after

  \setuppublicationlist[width=36pt]

(the module checks whether width= is set, and if so, it typesets
the labelbox within the specified width)


Greetings, Taco


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context