* Adapting m-bib layout (was: Where the m-bib and m-math?)
@ 2000-06-01 11:56 Berend de Boer
2000-06-01 12:33 ` Mr. Wang Lei
0 siblings, 1 reply; 7+ messages in thread
From: Berend de Boer @ 2000-06-01 11:56 UTC (permalink / raw)
Cc: 'Mr. Wang Lei '
> How can I set the correct parameters in the
> \setuppublications can do the job I wanted? could you give me a hand?
> Thanks in advance.
Here a sample, it works only for article entries, and probably not for all
variants of them, but you should get the idea:
--------------------------------------
% interface=en
\usemodule[bib]
\setuppublications
[database=ref,
sort=author,
left={[},
right={]},
numbering=yes]
\unprotect
% change bibl-apa defaults
\setuppublicationparameters
[refcommand=\bibnumref,
\c!links={[},
\c!rechts={]},
author=\normalauthor,
artauthor=\normalauthor]
% typeset an article entry
\setuppublicationlayout[article]{%
\insertartauthors{}{}{\insertthekey{}{ }{}}%
\insertarttitle{, \bgroup}{\egroup}{}%
\insertjournal{, \bgroup \it}{\egroup}{}%
\insertpubyear{. }{}{}%
{\insertcrossref{In }{}{}}%
\insertvolume
{, (}
{)\insertpages{:}{.}{.}}
{\insertpages{, pages }{.}{.}}%
\insertnote{ }{.}{}%
}
\protect
\starttext
This \cite[mp1943].
\completepublications
\stoptext
--------------------------------------
I didn't yet figure out how to do the numbering in front of every
publication, but maybe Taco is feeling better by now?
Groetjes,
Berend. (-:
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Adapting m-bib layout (was: Where the m-bib and m-math?)
2000-06-01 11:56 Adapting m-bib layout (was: Where the m-bib and m-math?) Berend de Boer
@ 2000-06-01 12:33 ` Mr. Wang Lei
2000-06-01 14:04 ` Berend de Boer
0 siblings, 1 reply; 7+ messages in thread
From: Mr. Wang Lei @ 2000-06-01 12:33 UTC (permalink / raw)
Cc: ntg-context
On Thu, 1 Jun 2000, Berend de Boer wrote:
Thanks. I have already do the same things. But inspired
by your suggestion, I use
\setuppublications
[numbercommand=\MyNumber]
\def\MyNumber#1{[#1]}
please the number in a pair of []. Beside this, how to
let context use another style file? for example, I write
a new file bibl-num.tex and let context use this file
other than the bibl-apa.tex to format the bibitems.
Regards,
Wang
------------------------------------------------------------------------
Mr. Wang Lei Phone: 86-10-62616670
Email: lwang@amath8.amt.ac.cn
Institute of Applied Mathematics leiwang@btamail.net.cn
Chinese Academy of Science Address: P.O.Box 2734, Beijing, 100080
------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Adapting m-bib layout (was: Where the m-bib and m-math?)
2000-06-01 12:33 ` Mr. Wang Lei
@ 2000-06-01 14:04 ` Berend de Boer
2000-06-02 2:14 ` Mr. Wang Lei
0 siblings, 1 reply; 7+ messages in thread
From: Berend de Boer @ 2000-06-01 14:04 UTC (permalink / raw)
> please the number in a pair of []. Beside this, how to
> let context use another style file? for example, I write
> a new file bibl-num.tex and let context use this file
> other than the bibl-apa.tex to format the bibitems.
If you write a new complete bibl-xxx.tex file, would you post it here or
make it available?
The trick is the variant entry:
\setuppublications
[variant=xxx]
will (should, not tested :-) ) read bibl-xxx.tex.
Groetjes,
Berend. (-:
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Adapting m-bib layout (was: Where the m-bib and m-math?)
2000-06-01 14:04 ` Berend de Boer
@ 2000-06-02 2:14 ` Mr. Wang Lei
2000-06-02 6:56 ` Hans Hagen
0 siblings, 1 reply; 7+ messages in thread
From: Mr. Wang Lei @ 2000-06-02 2:14 UTC (permalink / raw)
Cc: ntg-context
On Thu, 1 Jun 2000, Berend de Boer wrote:
> If you write a new complete bibl-xxx.tex file, would you post it here or
> make it available?
Not a new complete one. I just change something in the bibl-apa.tex.
put them to a new file so that it can not be confuse with the
system bibl-apa.tex.
change the parameters to give number ref.
\setuppublicationparameters [
pubsep={, },
lastpubsep={ and },
authorsep={, },
editorsep={, },
refcommand=\bibnumref,
\c!links={[},
\c!rechts={]},
namesep={, },
firstnamesep={, },
lastnamesep={ and }]
move the year after the title in article and the end in book.
\setuppublicationlayout[article]{%
\insertartauthors{}{, }{\insertthekey{}{ }{}}%
\insertarttitle{\bgroup }{\egroup. }{}%
\insertjournal{\bgroup \it}{\egroup }
{\insertcrossref{In }{}{}}%
\insertpubyear{ }{}{\unskip.}% <------ move to here, so as the book.
\insertvolume
{, }
{\insertissue{(}{)}{}\insertpages{, }{.}{.}}
{\insertpages{, pp. }{.}{.}}%
\insertnote{ }{.}{}%
}
I am new to learn tex and context. these change are vary
trival and may not enough to construct a robust bib style.
> The trick is the variant entry:
>
> \setuppublications
> [variant=xxx]
>
> will (should, not tested :-) ) read bibl-xxx.tex.
>
Thanks. It works.
Wang
------------------------------------------------------------------------
Mr. Wang Lei Phone: 86-10-62616670
Email: lwang@amath8.amt.ac.cn
Institute of Applied Mathematics leiwang@btamail.net.cn
Chinese Academy of Science Address: P.O.Box 2734, Beijing, 100080
------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Adapting m-bib layout (was: Where the m-bib and m-math?)
2000-06-02 2:14 ` Mr. Wang Lei
@ 2000-06-02 6:56 ` Hans Hagen
0 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2000-06-02 6:56 UTC (permalink / raw)
Cc: Berend de Boer, ntg-context
At 10:14 AM 6/2/2000 +0800, Mr. Wang Lei wrote:
>> If you write a new complete bibl-xxx.tex file, would you post it here or
>> make it available?
>
>Not a new complete one. I just change something in the bibl-apa.tex.
>put them to a new file so that it can not be confuse with the
>system bibl-apa.tex.
If all of you cooperate in making bibl-*** files that conform formal
publisher specs, they can move into the distribution. I'll clean up the
biblio stuff later [adding all kind of hyperstuff. In order to do so, I
also need examples (not now, later).
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.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Adapting m-bib layout (was: Where the m-bib and m-math?)
@ 2000-06-01 13:43 Peter Jander
2000-06-02 1:55 ` Mr. Wang Lei
0 siblings, 1 reply; 7+ messages in thread
From: Peter Jander @ 2000-06-01 13:43 UTC (permalink / raw)
From: "Berend de Boer" <<berend@pobox.com>
<color><param>FF00,0000,0000</param>> I didn't yet figure out how to do the numbering in front of every
> publication, but maybe Taco is feeling better by now?
>
</color>I did this some time ago. I think (I can't check since I am using
another computer now) it was
\setuppublications[<color><param>0100,0100,0100</param>\c!nummercommando</color>=<color><param>0100,0100,0100</param>\numberwithbrackets]
If this doesn't work you may need to change it in the M-bib.tex file,
right at the end where these defaults are set.
</color>Hope this helps,
Peter
<nofill>
Peter Jander Tel ++44 (0)23 8059 2194
Optoelectronics Research Centre Fax ++44 (0)23 8059 3142
University of Southampton
Southampton SO17 1BJ
United Kingdom
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Adapting m-bib layout (was: Where the m-bib and m-math?)
2000-06-01 13:43 Peter Jander
@ 2000-06-02 1:55 ` Mr. Wang Lei
0 siblings, 0 replies; 7+ messages in thread
From: Mr. Wang Lei @ 2000-06-02 1:55 UTC (permalink / raw)
Cc: ntg-context
On Thu, 1 Jun 2000, Peter Jander wrote:
> I did this some time ago. I think (I can't check since I am using
> another computer now) it was
>
> \setuppublications[\c!nummercommando=\numberwithbrackets]
>
> If this doesn't work you may need to change it in the M-bib.tex file,
> right at the end where these defaults are set.
>
Thanks. it works well.
------------------------------------------------------------------------
Mr. Wang Lei Phone: 86-10-62616670
Email: lwang@amath8.amt.ac.cn
Institute of Applied Mathematics leiwang@btamail.net.cn
Chinese Academy of Science Address: P.O.Box 2734, Beijing, 100080
------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2000-06-02 6:56 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-01 11:56 Adapting m-bib layout (was: Where the m-bib and m-math?) Berend de Boer
2000-06-01 12:33 ` Mr. Wang Lei
2000-06-01 14:04 ` Berend de Boer
2000-06-02 2:14 ` Mr. Wang Lei
2000-06-02 6:56 ` Hans Hagen
2000-06-01 13:43 Peter Jander
2000-06-02 1:55 ` Mr. Wang Lei
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).