* bib + local & global citations
@ 2007-04-17 22:22 Tobias Burnus
2007-04-18 7:01 ` Taco Hoekwater
0 siblings, 1 reply; 4+ messages in thread
From: Tobias Burnus @ 2007-04-17 22:22 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hello,
I use bibl-aps which has references of the form "[1]". I want to have a
global bib index (\placepublications[criterium=all]), but in two
sections I want to have a local bib index
(\placepublications[criterium=section]) too.
The numbers should not be reseted in between. Currently, I get:
\chapter{somewhere}
[1]...[45]
\chapter
\section{local 1}
[1]...[30] % <-- should be 46-76
\placepublication[criterium=section]
[1]...[76] % <-- should be 46-76
\placepublications[criterium=all]
[1]...[76]
Any idea how to do this?
Tobias
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: bib + local & global citations
2007-04-17 22:22 bib + local & global citations Tobias Burnus
@ 2007-04-18 7:01 ` Taco Hoekwater
2007-04-18 22:16 ` Tobias Burnus
0 siblings, 1 reply; 4+ messages in thread
From: Taco Hoekwater @ 2007-04-18 7:01 UTC (permalink / raw)
To: mailing list for ConTeXt users
Tobias Burnus wrote:
>
> \chapter{somewhere}
> [1]...[45]
>
> \chapter
> \section{local 1}
> [1]...[30] % <-- should be 46-76
> \placepublication[criterium=section]
> [1]...[76] % <-- should be 46-76
you need \placepublications[option=continue]
Best, Taco
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: bib + local & global citations
2007-04-18 7:01 ` Taco Hoekwater
@ 2007-04-18 22:16 ` Tobias Burnus
2007-04-19 7:29 ` Taco Hoekwater
0 siblings, 1 reply; 4+ messages in thread
From: Tobias Burnus @ 2007-04-18 22:16 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 418 bytes --]
Taco Hoekwater wrote:
> you need \placepublications[option=continue]
>
Thanks Taco.
Could you update your bib module based on the attached patch, unless
your module already contains all those changes.
I don't know whether
- \c!otherstext={ et al.},
+ \c!otherstext={\ et al.},
is needed, but
- \c!artauthoretaltext={ {\it et al.\/}}]
+ \c!authoretaltext={\ {\it et al.\/}},
is needed.
Tobias
[-- Attachment #2: bib.diff --]
[-- Type: text/x-patch, Size: 2953 bytes --]
--- /usr/share/texmf/tex/context/bib/bibl-aps.tex 2006-11-16 02:02:47.000000000 +0100
+++ bibl-aps.tex 2007-04-18 23:42:21.917086750 +0200
@@ -14,7 +14,7 @@
\setupcite
[author,year]
[\c!andtext={ and },
- \c!otherstext={ et al.},
+ \c!otherstext={\ et al.},
\c!pubsep={, },
\c!lastpubsep={ and },
\c!compress=\v!no,
@@ -25,7 +25,7 @@
\setupcite
[authoryear]
[\c!andtext={ and },
- \c!otherstext={ et al.},
+ \c!otherstext={\ et al.},
\c!pubsep={, },
\c!lastpubsep={ and },
\c!compress=\v!yes,
@@ -36,7 +36,7 @@
\setupcite
[authoryears]
[\c!andtext={ and },
- \c!otherstext={ et al.},
+ \c!otherstext={\ et al.},
\c!pubsep={, },
\c!lastpubsep={ and },
\c!compress=\v!yes,
@@ -47,7 +47,7 @@
\setupcite
[key,serial,authornum,page,short,type,doi,url]
[\c!andtext={ and },
- \c!otherstext={ et al.},
+ \c!otherstext={\ et al.},
\c!pubsep={, },
\c!lastpubsep={ and },
\c!compress=\v!no,
@@ -58,7 +58,7 @@
\setupcite
[num]
[\c!andtext={ and },
- \c!otherstext={ et al.},
+ \c!otherstext={\ et al.},
\c!pubsep={, },
\c!lastpubsep={ and },
\c!compress=\v!yes,
@@ -94,9 +94,9 @@
\c!authoretaldisplay=1,
\c!editoretaldisplay=1,
\c!artauthoretaldisplay=1,
- \c!authoretaltext={ {\it et al.\/}},
- \c!editoretaltext={ {\it et al.\/}},
- \c!artauthoretaltext={ {\it et al.\/}}]
+ \c!authoretaltext={\ {\it et al.\/}},
+ \c!editoretaltext={\ {\it et al.\/}},
+ \c!artauthoretaltext={\ {\it et al.\/}}]
\def\maybeyear#1{}
@@ -438,4 +438,4 @@
\insertNote{\unskip. }{.}{\unskip.}%
}
-\protect
\ No newline at end of file
+\protect
--- /usr/share/texmf/tex/context/bib/t-bib.tex 2006-12-08 12:46:44.000000000 +0100
+++ t-bib.tex 2007-04-19 00:10:08.653251250 +0200
@@ -497,10 +497,15 @@
\processcommacommand[\bibcommandlist]\simplebibdef
+\def\insertdoi#1#2#3%
+ {{\bibdoifelse{\@@pb@doi}%
+ {\edef\ascii{\@EA\detokenize\@EA{\@@pb@doi}}%
+ #1\@EA\gotoDOI{\@@pb@thekey}{\ascii}#2}{#3}}}
+
\def\insertbiburl#1#2#3%
{{\bibdoifelse{\@@pb@biburl}%
{\edef\ascii{\@EA\detokenize\@EA{\@@pb@biburl}}%
- #1\@EA\hyphenatedurl\@EA{\ascii}#2}{#3}}}
+ #1\@EA\gotoURL{\@@pb@thekey}{\ascii}#2}{#3}}}
\def\insertmonth#1#2#3%
{\bibdoifelse{\@@pb@month}%
@@ -1636,7 +1641,9 @@
\def\gotoDOI#1#2%
{\ifbibinteractionelse
- {\useURL[bibfoo#1][http://dx.doi.org/#2]\goto{\url[bibfoo#1]}[url(bibfoo#1)]}
+ {\useURL[bibfooDoi#1][#2]%
+ \useURL[bibfoo#1][http://dx.doi.org/#2]%
+ \goto{\url[bibfooDoi#1]}[url(bibfoo#1)]}
{\hyphenatedurl{#2}}}
\def\bibdoiref[#1]%
@@ -1787,4 +1794,4 @@
\preloadbiblist
-\protect \endinput
\ No newline at end of file
+\protect \endinput
[-- Attachment #3: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: bib + local & global citations
2007-04-18 22:16 ` Tobias Burnus
@ 2007-04-19 7:29 ` Taco Hoekwater
0 siblings, 0 replies; 4+ messages in thread
From: Taco Hoekwater @ 2007-04-19 7:29 UTC (permalink / raw)
To: mailing list for ConTeXt users
Tobias Burnus wrote:
> Taco Hoekwater wrote:
>> you need \placepublications[option=continue]
>>
> Thanks Taco.
>
> Could you update your bib module based on the attached patch, unless
> your module already contains all those changes.
>
> I don't know whether
> - \c!otherstext={ et al.},
> + \c!otherstext={\ et al.},
> is needed, but
> - \c!artauthoretaltext={ {\it et al.\/}}]
> + \c!authoretaltext={\ {\it et al.\/}},
> is needed.
OK, thanks. Does the below patch mean that you fixed the \inserturl
and \insertdoi problems as well?
Taco
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-04-19 7:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-17 22:22 bib + local & global citations Tobias Burnus
2007-04-18 7:01 ` Taco Hoekwater
2007-04-18 22:16 ` Tobias Burnus
2007-04-19 7:29 ` Taco Hoekwater
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).