summaryrefslogtreecommitdiff
path: root/tex/context/base/publ-imp-aps.mkvi
diff options
context:
space:
mode:
authorContext Git Mirror Bot <phg42.2a@gmail.com>2015-01-05 23:15:04 +0100
committerContext Git Mirror Bot <phg42.2a@gmail.com>2015-01-05 23:15:04 +0100
commitbc608dc7157ffbb10f2901a8eca115d03641f7a2 (patch)
tree9611cb609b96486b3a8257b9d7475d72bb03aff8 /tex/context/base/publ-imp-aps.mkvi
parentf02eadaddef16a34ff989d90f2759bd63340d84d (diff)
downloadcontext-bc608dc7157ffbb10f2901a8eca115d03641f7a2.tar.gz
2015-01-05 22:26:00
Diffstat (limited to 'tex/context/base/publ-imp-aps.mkvi')
-rw-r--r--tex/context/base/publ-imp-aps.mkvi53
1 files changed, 28 insertions, 25 deletions
diff --git a/tex/context/base/publ-imp-aps.mkvi b/tex/context/base/publ-imp-aps.mkvi
index 60fb43ed8..bd07a9a55 100644
--- a/tex/context/base/publ-imp-aps.mkvi
+++ b/tex/context/base/publ-imp-aps.mkvi
@@ -33,8 +33,8 @@
\setupbtxlistvariant
[\c!namesep={,\space},
- \c!lastnamesep={,\nobreakspace\textampersand\space},
- \c!finalnamesep={,\nobreakspace\textampersand\space},
+ \c!lastnamesep={,\space and\space},
+ \c!finalnamesep={,\space and\space},
\c!firstnamesep=\space,
\c!otherstext={\space\btxlabeltext{\currentbtxspecification:others}},
\c!juniorsep=\space,
@@ -49,7 +49,7 @@
\c!etaldisplay=\btxlistvariantparameter\c!etallimit,
%\c!journalconversion=\v!normal,
\c!monthconversion=\v!month,
- \c!authorconversion=short]
+ \c!authorconversion=normalshort]
\definebtxlistvariant
[author]
@@ -123,6 +123,10 @@
\c!finalnamesep={\space\btxlabeltext{\currentbtxspecification:and}\space}, % no comma!
\c!authorconversion=\v!name]
+\setupbtxrendering
+ [sorttype=, % num ?
+ numbering=yes]
+
% Should the following be loaded by default?
%D In order to be able to get journals expanded (or normalized or abbreviated) you need
@@ -360,10 +364,12 @@
\starttexdefinition btx:aps:author
\btxflush{author}
- \btxdoif {collaboration} {
+ \btxdoifelse {collaboration} {
\btxleftparenthesis
\btxflush{collaboration}
- \btxrightparenthesis
+ \btxrightparenthesiscomma
+ } {
+ \btxcomma
}
\stoptexdefinition
@@ -401,7 +407,7 @@
\starttexdefinition btx:aps:editionset
\btxdoifelse {edition} {
- \btxleftparenthesis
+ \btxspace
\doif {\currentbtxcategory} {techreport} {
\btxdoifelse {type} {
\btxflush{Word -> type}
@@ -449,7 +455,7 @@
\btxspace
\btxflush{pages}
}
- \btxrightparenthesisperiod
+ \btxperiod
} {
\doif {\currentbtxcategory} {techreport} {
\btxleftparenthesis
@@ -461,14 +467,12 @@
\starttexdefinition btx:aps:journal-volumeset-year
\btxdoif {journal} {
- \btxcomma
% expandedjournal abbreviatedjournal
\btxflush{expandedjournal -> journal}
% A newspaper may not have a volume but may have a number!
\btxdoifelse {volume} {
- \doif {\btxfoundname{volume}} {volume} {
- \texdefinition{btx:aps:bold}{volume}
- }
+ \btxspace
+ \texdefinition{btx:aps:bold}{volume}
\btxdoif {number} {
\removeunwantedspaces(
\btxflush{number}
@@ -476,11 +480,15 @@
}
} {
\btxdoif {number} {
+ \btxspace
\btxflush{number}
\btxcomma
}
}
- \btxflush{pages}
+ \btxdoif {number} {
+ \btxspace
+ \btxflush{pages}
+ }
\btxleftparenthesis
\btxdoifelse {year} {
\btxflush{year}
@@ -547,9 +555,8 @@
\starttexdefinition btx:aps:note
% grouping could indeed be useful for note.
\btxdoif {note} {
- \btxleftparenthesis
+ \btxspace
{\btxflush{note}}
- \btxrightparenthesis
}
\stoptexdefinition
@@ -636,8 +643,8 @@
\startsetups btx:aps:book
\texdefinition{btx:aps:author}
\texdefinition{btx:aps:title}
- \texdefinition{btx:aps:editionset}
\texdefinition{btx:aps:publisher-wherefrom-year}
+ \texdefinition{btx:aps:editionset}
\texdefinition{btx:aps:url-note-doi}
\stopsetups
@@ -654,8 +661,8 @@
\btxspace
}
\texdefinition{btx:aps:editor-in-}{title}
- \texdefinition{btx:aps:editionset}
\texdefinition{btx:aps:publisher-wherefrom-year}
+ \texdefinition{btx:aps:editionset}
\texdefinition{btx:aps:url-note-doi}
\stopsetups
@@ -669,8 +676,8 @@
\texdefinition{btx:aps:author}
\texdefinition{btx:aps:title}
\texdefinition{btx:aps:editor-in-}{booktitle}
- \texdefinition{btx:aps:editionset}
\texdefinition{btx:aps:publisher-wherefrom-year}
+ \texdefinition{btx:aps:editionset}
\texdefinition{btx:aps:url-note-doi}
\stopsetups
@@ -682,7 +689,6 @@
\startsetups btx:aps:proceedings
\texdefinition{btx:aps:author}
\texdefinition{btx:aps:title}
- \texdefinition{btx:aps:editionset}
\btxdoif {editor} {
\btxdoif {organization} {
\btxspace
@@ -691,6 +697,7 @@
}
}
\texdefinition{btx:aps:publisher-wherefrom-year}
+ \texdefinition{btx:aps:editionset}
\texdefinition{btx:aps:url-note-doi}
\stopsetups
@@ -703,13 +710,13 @@
\texdefinition{btx:aps:author}
\texdefinition{btx:aps:title}
\texdefinition{btx:aps:editor-in-}{booktitle}
- \texdefinition{btx:aps:editionset}
\btxdoif {organization} {
\btxspace
\btxflush{organization}
\btxcomma
}
\texdefinition{btx:aps:publisher-wherefrom-year}
+ \texdefinition{btx:aps:editionset}
\texdefinition{btx:aps:url-note-doi}
\stopsetups
@@ -778,8 +785,8 @@
\startsetups btx:aps:manual
\texdefinition{btx:aps:author}
\texdefinition{btx:aps:title}
- \texdefinition{btx:aps:editionset}
\texdefinition{btx:aps:publisher-wherefrom-year}
+ \texdefinition{btx:aps:editionset}
\texdefinition{btx:aps:url-note-doi}
\stopsetups
@@ -790,8 +797,8 @@
\startsetups btx:aps:techreport
\texdefinition{btx:aps:author}
\texdefinition{btx:aps:title}
- \texdefinition{btx:aps:editionset}
\texdefinition{btx:aps:publisher-wherefrom-year}
+ \texdefinition{btx:aps:editionset}
\texdefinition{btx:aps:url-note-doi}
\stopsetups
@@ -915,10 +922,6 @@
% If all else fails to match:
\startsetups btx:aps:literal
- %\btxleftparenthesis
- \removeunwantedspaces(
- \btxflush{key}
- \btxrightparenthesis
\btxdoif {text} {
\btxflush{text}
}