Skip to content

Commit a3233da

Browse files
committed
Apply improved naming to bindings
1 parent 7504202 commit a3233da

12 files changed

+69
-68
lines changed

lib/LaTeXML/Package/aas_support.sty.ltxml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ DefMacro('\lx@aas@checkorchid@ Until:, Until:\done', sub {
112112

113113
# \email[]{addr} applies to previous author
114114
# \correspondingauthor{name}
115-
DefMacro('\correspondingauthor{}', '\lx@add@contact[role=correspondent,mark={fuzzy:#1}]{#1}');
115+
DefMacro('\correspondingauthor{}', '\lx@add@contact[role=correspondent,label={fuzzy:#1}]{#1}');
116116

117117
# Various contact information attaches to previous \author
118118
DefMacro('\affiliation{}', '\lx@add@affiliation{#1}');
@@ -121,15 +121,15 @@ DefMacro('\affil', '\affiliation');
121121
DefMacro('\authoraddr{}', '\lx@add@address{#1}');
122122
DefMacro('\email{}', '\lx@add@email{#1}');
123123

124-
# \collaboration{n}{name} applies to previous n authors [can be 0 or all]
125-
# \nocollaboration{n} ???
126-
DefMacro('\collaboration{}{}', '\lx@add@contact[role=collaboration,attach={#1}]{#2}');
127-
DefMacro('\nocollaboration{}', '');
124+
# \collaboration{n}{name} applies to previous authors w/o collab; n is how many to SHOW
125+
# \nocollaboration{n} ditto, but says they are not in a collaboration gruup.
126+
DefMacro('\collaboration{}{}', '\lx@add@contact[role=collaboration,annotate=new]{#2}');
127+
DefMacro('\nocollaboration{}', '\lx@add@contact[role=collaboration,annotate=new]{}');
128128

129129
# Older aas versions: put mark within \author, text will be attached
130-
DefMacro('\altaffilmark{}', '\lx@add@creator@mark[altaffil]{#1}');
131-
DefMacro('\altaffilteext{}{}', '\lx@add@contact[role=altaffiliation,mark=altaffil#1]{#2}');
132-
DefMacro('\authoremail', '\email'); # Obsolete form
130+
DefMacro('\altaffilmark{}', '\lx@request@frontmatter@annotation[altaffil]{#1}');
131+
DefMacro('\altaffiltext{}{}', '\lx@add@contact[role=altaffiliation,label=altaffil#1]{#2}');
132+
DefMacro('\authoremail', '\email'); # Obsolete form
133133

134134
# Redefine to straight email address after document begin.
135135
###AddToMacro(T_CS('\@startsection@hook'), TokenizeInternal('\let\email\@@email'));

lib/LaTeXML/Package/acmart.cls.ltxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ DefConstructor('\Description[]{}', '^^<ltx:note xml:id="#id" class="ltx_nodispla
8787
# Note that \affiliation can apply to all preceding authors without one
8888
DefMacro('\author{}', '\lx@add@creator[role=author]{#1}');
8989
DefMacro('\editor{}', '\lx@add@creator[role=editor]{#1}');
90-
DefMacro('\affiliation{}', '\lx@add@contact[role=affiliation,attach=new]{#1}');
90+
DefMacro('\affiliation{}', '\lx@add@contact[role=affiliation,annotate=new]{#1}');
9191
DefMacro('\additionalaffiliation{}', '\lx@add@contact[role=altaffiliation]{#1}');
9292
DefMacro('\email [] Semiverbatim', '\lx@add@contact[role=email,name={email: }]{#2}');
9393
DefMacro('\orcid{}', '\lx@add@contact[role=orcid, name={OrcID: }]{#1}');

lib/LaTeXML/Package/authblk.sty.ltxml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,16 @@ NewCounter('@affil');
4646
# \author[mark]{name} : REPEATED
4747
# \affil[mark]{affil} : REPEATED, attaches to author with same mark
4848
DefMacro('\author[]{}', sub {
49-
my ($gullet, $mark, $author) = @_;
50-
if ($mark) { # Use mark attachment
51-
Invocation('\lx@add@creator[role=author,mark={#1}]{#2}', $mark, $author); }
49+
my ($gullet, $label, $author) = @_;
50+
if ($label) { # Use label attachment
51+
Invocation('\lx@add@creator[role=author,annotations={#1}]{#2}', $label, $author); }
5252
elsif (grep { $_->defined_as(T_CS('\and')) || $_->defined_as(T_CS('\And')); } $author->unlist) {
5353
Invocation(T_CS('\lx@add@authors'), $author); }
5454
else {
5555
Invocation(T_CS('\lx@add@creator'), undef, $author); } });
5656

5757
DefMacro('\affil[]{}',
58-
'\lx@add@contact[role=affiliation,attach={\ifx.#1.new\else 1\fi},mark={#1}]{#2}');
58+
'\lx@add@contact[role=affiliation,annotate={\ifx.#1.new\else 1\fi},label={#1}]{#2}');
5959

6060
# we shouldn't need these, but if someone is using them low-level
6161
# might as well provide them

lib/LaTeXML/Package/elsart_support_core.sty.ltxml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ DefEnvironment('{frontmatter}', '#body');
3333
# It either should be followed by \affiliation,
3434
# or both should get matching marks
3535
DefMacro('\author[]{}',
36-
'\lx@add@creator[role=author,mark={#1}]{#2}');
36+
'\lx@add@creator[role=author,annotations={#1}]{#2}');
3737

3838
DefMacro('\address[]{}',
39-
'\lx@add@contact[mark={#1},role=address]{#2}');
39+
'\lx@add@contact[label={#1},role=address]{#2}');
4040
DefMacro('\affiliation[]{}',
41-
'\lx@add@contact[mark={#1},role=affiliation]{#2}');
41+
'\lx@add@contact[label={#1},role=affiliation]{#2}');
4242

4343
# Redefine to account for the label, which we ignore for now!
4444
DefConstructor('\thanks[]{}', "<ltx:note role='thanks'>#2</ltx:note>");
@@ -50,16 +50,16 @@ Let('\collaboration', '\collab');
5050
# These pairs add various contact information to authors.
5151
# The \<XXX>ref forms are used within the \author text to anchor the connection
5252
# the \<XXX>text forms supply the text (& and role) for the contact that will be attached.
53-
DefMacro('\thanksref{}', '\lx@add@creator@mark{thanks:#1}');
54-
DefMacro('\corref{}', '\lx@add@creator@mark{cor:#1}');
55-
DefMacro('\corauthref{}', '\lx@add@creator@mark{corauth:#1}');
56-
DefMacro('\fnref{}', '\lx@add@creator@mark{fn:#1}');
57-
DefMacro('\tnoteref{}', '\lx@add@creator@mark{tnote:#1}'); # Possibly for title, not author?
58-
DefMacro('\thanks[]{}', '\lx@add@contact[mark={thanks:#1},role=thanks]{#2}');
59-
DefMacro('\cortext[]{}', '\lx@add@contact[mark={cor:#1},role=correspondent]{#2}');
60-
DefMacro('\corauth[]{}', '\lx@add@contact[mark={corauth:#1},role=correspondent]{#2}');
61-
DefMacro('\fntext[]{}', '\lx@add@contact[mark={fn:#1},role=note]{#2}');
62-
DefMacro('\tnotetext[]{}', '\lx@add@contact[mark={tnote:#1},role=note]{#2}'); # title note?
53+
DefMacro('\thanksref{}', '\lx@request@frontmatter@annotation{thanks:#1}');
54+
DefMacro('\corref{}', '\lx@request@frontmatter@annotation{cor:#1}');
55+
DefMacro('\corauthref{}', '\lx@request@frontmatter@annotation{corauth:#1}');
56+
DefMacro('\fnref{}', '\lx@request@frontmatter@annotation{fn:#1}');
57+
DefMacro('\tnoteref{}', '\lx@request@frontmatter@annotation{tnote:#1}'); # Possibly for title, not author?
58+
DefMacro('\thanks[]{}', '\lx@add@contact[label={thanks:#1},role=thanks]{#2}');
59+
DefMacro('\cortext[]{}', '\lx@add@contact[label={cor:#1},role=correspondent]{#2}');
60+
DefMacro('\corauth[]{}', '\lx@add@contact[label={corauth:#1},role=correspondent]{#2}');
61+
DefMacro('\fntext[]{}', '\lx@add@contact[label={fn:#1},role=note]{#2}');
62+
DefMacro('\tnotetext[]{}', '\lx@add@contact[label={tnote:#1},role=note]{#2}'); # title note?
6363

6464
DefMacro('\runauthor{}', Tokens());
6565
DefMacro('\runtitle{}', Tokens());

lib/LaTeXML/Package/icml_support.sty.ltxml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,16 @@ DefMacro('\icmlsetsymbol{}{}', '');
3838

3939
DefEnvironment('{icmlauthorlist}', '#body');
4040

41-
# \icmlauthor{author}{marks} One per author; marks used to connect to affiliation
42-
DefMacro('\icmlauthor{}{}', '\lx@add@creator[role=author,mark={#2}]{#1}');
43-
# \icmlaffiliation{mark}{address} provides affiliation for author with same mark
44-
DefMacro('\icmlaffiliation{}{}', '\lx@add@contact[role=affiliation,mark={#1}]{#2}');
45-
DefMacro('\icmladdress[]{}', '\lx@add@contact[role=address,mark={#1}]{#2}'); # deprecated
41+
# \icmlauthor{author}{labels} One per author; labels used to connect to affiliation
42+
DefMacro('\icmlauthor{}{}', '\lx@add@creator[role=author,annotations={#2}]{#1}');
43+
# \icmlaffiliation{label}{address} provides affiliation for author with same label
44+
DefMacro('\icmlaffiliation{}{}', '\lx@add@contact[role=affiliation,label={#1}]{#2}');
45+
DefMacro('\icmladdress[]{}', '\lx@add@contact[role=address,label={#1}]{#2}'); # deprecated
4646

4747
# \icmlcorrespondingauthor{author}{email}
48-
# Attempt to use author as a matching mark to connect to author (should be a fuzzy match?)
49-
DefMacro('\icmlcorrespondingauthor{}{}', '\lx@add@contact[mark={fuzzy:#1},role=email,name={Correspondence to: }]{#2}');
48+
# Attempt to use author name as a matching label to connect to author
49+
# (should be a fuzzy match?)
50+
DefMacro('\icmlcorrespondingauthor{}{}', '\lx@add@contact[label={fuzzy:#1},role=email,name={Correspondence to: }]{#2}');
5051

5152
DefMacro('\printAffiliationsAndNotice{}', '');
5253
DefMacro('\icmlEqualContribution', 'Equal contribution');

lib/LaTeXML/Package/ijcai.sty.ltxml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ DefMacro('\emails{}',
5555
'\lx@clear@frontmatter{ltx:contact}[role=email]'
5656
. '\lx@splitting{\lx@ijcai@email}{,}{#1}');
5757
DefMacro('\lx@ijcai@author{}', '\lx@add@author{#1}');
58-
DefMacro('\lx@ijcai@affiliation{}', '\lx@add@affiliation[markseq=author]{#1}');
59-
DefMacro('\lx@ijcai@email{}', '\lx@add@email[markseq=author]{#1}');
58+
DefMacro('\lx@ijcai@affiliation{}', '\lx@add@affiliation[labelseq=author]{#1}');
59+
DefMacro('\lx@ijcai@email{}', '\lx@add@email[labelseq=author]{#1}');
6060

6161
#**********************************************************************
6262

lib/LaTeXML/Package/inst_support.sty.ltxml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ use LaTeXML::Package;
2525
# so this shouldn't be needed.
2626

2727
# In inst style, the \author (used once for each author)
28-
# gets some "marks" which are used to connect to \affiliation
29-
# (also one per affiliation); the affailiation with the matching mark
28+
# gets some "labels" which are used to connect to \affiliation
29+
# (also one per affiliation); the affailiation with the matching label
3030
# is attached to the author.
3131

3232
# \author[marks]{author}
@@ -35,8 +35,8 @@ DefMacro('\author{}',
3535
. '\lx@splitting{\lx@add@author}{\and\And,}{#1}');
3636
DefMacro('\institute{}',
3737
'\lx@clear@frontmatter{ltx:contact}[role=affiliation]'
38-
. '\lx@splitting{\lx@add@contact[role=affiliation,markseq=affiliation]}{\and\And}{#1}');
39-
DefMacro('\inst{}', '\lx@add@creator@mark[affiliation]{#1}');
38+
. '\lx@splitting{\lx@add@contact[role=affiliation,labelseq=affiliation]}{\and\And}{#1}');
39+
DefMacro('\inst{}', '\lx@request@frontmatter@annotation[affiliation]{#1}');
4040

4141
Let('\at', '\and'); # Actually this is different than \and, but...
4242
Let('\iand', '\and');

lib/LaTeXML/Package/jheppub.sty.ltxml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ RequirePackage('graphicx');
3030

3131
# \author[]{}
3232
# One \author per author followed by \affiliation
33-
# OR both are supplied an optional mark by which the affiliation is attached to author
34-
# optional arg is a mark identifying which affliation belongs
35-
DefMacro('\author[]{}', '\lx@add@creator[role=author,mark={#1}]{#2}');
36-
DefMacro('\affiliation[]{}', '\lx@add@contact[role=affiliation,mark={#1}]{#2}');
33+
# OR both are supplied an optional label by which the affiliation is attached to author
34+
# optional arg is a label identifying which affliation belongs
35+
DefMacro('\author[]{}', '\lx@add@creator[role=author,annotations={#1}]{#2}');
36+
DefMacro('\affiliation[]{}', '\lx@add@contact[role=affiliation,label={#1}]{#2}');
3737
# \note{} appears inside author?
3838
DefMacro('\note{}', '\lx@add@contact[role=note]{#1}');
3939
# The n-th \emailAdd is attached to the n-th author!
40-
DefMacro('\emailAdd Semiverbatim', '\lx@add@contact[role=email,markseq=author]{#1}');
40+
DefMacro('\emailAdd Semiverbatim', '\lx@add@contact[role=email,labelseq=author]{#1}');
4141

4242
DefMacro('\keywordname', '\textbf{Keywords}');
4343
DefMacro('\keywords{}', '\lx@add@keywords[name={\keywordname}]{#1}');

lib/LaTeXML/Package/llncs.cls.ltxml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,17 @@ DefMacro('\emailname', 'E-mail');
3737
DefMacro('\mailname', '\textit{Correspondence to}:');
3838

3939
# Single \author, with multiple authors separated by \and
40-
# \inst{marks} can be used within each author to identify which affiliations apply
40+
# \inst{labels} can be used within each author to identify which affiliations apply
4141
DefMacro('\author{}',
4242
'\lx@clear@creators[role=author]'
4343
. '\lx@splitting{\lx@add@author}{\and\And,}{#1}');
4444
# Single \institute, with multiple institutions serapated by \and
45-
# The n-th institution is attached to the author which has that n in its \inst marks.
45+
# The n-th institution is attached to the author which has that n in its \inst labels.
4646
DefMacro('\institute{}',
4747
'\lx@clear@frontmatter{ltx:contact}[role=affiliation]'
4848
. '\lx@splitting{\lx@llncs@affiliation}{\and}{#1}');
49-
DefMacro('\lx@llncs@affiliation{}', '\lx@add@affiliation[markseq={affiliation}]{#1}');
50-
DefMacro('\inst{}', '\lx@add@creator@mark[affiliation]{#1}');
49+
DefMacro('\lx@llncs@affiliation{}', '\lx@add@affiliation[labelseq={affiliation}]{#1}');
50+
DefMacro('\inst{}', '\lx@request@frontmatter@annotation[affiliation]{#1}');
5151
# \orcidID should be used within each author in \author
5252
DefMacro('\orcidID{}', '\lx@add@orcid{#1}');
5353
# \email, \url,\mail should be within an institute in \institute!!

lib/LaTeXML/Package/quantumarticle.cls.ltxml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,24 @@ RequirePackage('bbm');
2525
RequirePackage('xcolor');
2626

2727
# Note: This seems similar to revtex4; should we just require revtex4_support ?
28-
# \author[mark]{name} One \author per author
29-
# If mark given, the corresponding affiliation from \affil is attached
28+
# \author[labels]{name} One \author per author
29+
# If label given, the corresponding affiliation from \affil is attached
3030
# otherwise, \author should be followed by \affiliation
31-
DefMacro('\author[]{}', '\lx@add@creator[role=author,mark={#1}]{#2}');
32-
DefMacro('\affiliation{}', '\lx@add@contact[attach=new,role=affiliation]{#1}');
31+
DefMacro('\author[]{}', '\lx@add@creator[role=author,annotations={#1}]{#2}');
32+
DefMacro('\affiliation{}', '\lx@add@contact[annotate=new,role=affiliation]{#1}');
3333
DefMacro('\affil[]{}',
34-
'\lx@add@contact[role=affiliation,attach={\ifx.#1.new\else 1\fi},mark={#1}]{#2}');
34+
'\lx@add@contact[role=affiliation,annotate={\ifx.#1.new\else 1\fi},label={#1}]{#2}');
3535
# \address provides address for previous \author
36-
DefMacro('\address{}', '\lx@add@contact[attach=new,role=address]{#1}');
36+
DefMacro('\address{}', '\lx@add@contact[annotate=new,role=address]{#1}');
3737
# These add contacts to most recent author
38-
# The optional arguments here are a sort of prefix to the footnote (NOT marks!)
38+
# The optional arguments here are a sort of prefix to the footnote (NOT label!)
3939
DefMacro('\email[] Semiverbatim', '\lx@add@contact[role=email,name={#1}]{#2}');
4040
DefMacro('\homepage[] Semiverbatim', '\lx@add@contact[role=url,name={#1}]{#2}');
4141
DefMacro('\thanks[]{}', '\lx@add@contact[role=thanks,name={#1}]{#2}');
4242
DefMacro('\orcid[]{}', '\lx@add@contact[role=orcid,name={#1}]{#2}');
4343

4444
DefMacro('\collaboration{}', '\author{#1}');
45-
DefMacro('\altaffiliation[]{}', '\lx@add@contact[attach=new,role=affiliation,name={#1}]{#2}');
45+
DefMacro('\altaffiliation[]{}', '\lx@add@contact[annotate=new,role=affiliation,name={#1}]{#2}');
4646
# some elsearticle style commands?
4747
DefMacro('\ead[]{}', '\email{#1}'); # Strictly if #1=url, should be homepage.
4848

0 commit comments

Comments
 (0)