Skip to content

Commit

Permalink
feat(class): change mark for link to address from letter to Arabic nu…
Browse files Browse the repository at this point in the history
…mber

CEURART uses chracters like a,b,c as superscipts of author names. It now turns out that
GoogleScholar misinterprets such author names.
  • Loading branch information
yamadharma committed Mar 18, 2021
1 parent df0676f commit aab4978
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 39 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ceurart",
"version": "0.3.9",
"version": "0.4.0",
"description": "CEUR-WS proceedings style",
"main": "index.js",
"repository": "git@github.com:yamadharma/ceurart.git",
Expand Down
81 changes: 43 additions & 38 deletions tex/latex/ceurart/ceurart.cls
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
%

\def\RCSfile{ceurart}%
\def\RCSversion{0.3.8}%
\def\RCSdate{2020/10/16}%
\def\RCSversion{0.4.0}%
\def\RCSdate{2021/03/18}%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{\RCSfile}[\RCSdate, \RCSversion: Typesetting articles for CEUR Workshop Proceedings (CEUR-WS.org)]

Expand Down Expand Up @@ -595,7 +595,7 @@
\clist_map_inline:nn { #1 }
{
\seq_put_right:Nn \l_affmk_seq
{ \int_to_alph:n {##1} }
{ \int_to_arabic:n {##1} }
}
}

Expand Down Expand Up @@ -1433,42 +1433,47 @@
\seq_new:N \g_ceur_aff_foot_seq

\NewDocumentCommand \printaddrinfoot { }
{
{ \seq_use:Nn \g_ceur_aff_foot_seq { \par } }
}
{
{ \seq_use:Nn \g_ceur_aff_foot_seq { \par } }
}

\NewDocumentCommand \address { O{} m O{} }
{
\__reset_addr:
\keys_set:nn { ceur / address } { #3 }
\bool_if:NTF \g_ceur_addr_foot_bool
{ \__foot_address:nnn [#1]{#2}[#3] }
{
\seq_gput_right:cn { g_ceur_aff\int_use:N \g_ceur_augr_int _seq }
{ \tl_if_blank:nTF { #1 }
{
\tex_xdef:D \thefootnote{}
{ #2 }
}
{
\tl_if_head_eq_catcode:nNTF { #1 } a
{
\int_gincr:N \g_ceur_aff_int
\tex_xdef:D \@currentlabel
{ \int_to_alph:n { \int_use:N \g_ceur_aff_int } }
\ceurLabel {#1}
\textsuperscript{\itshape\@currentlabel} #2
}
{
\int_gset:Nn \g_ceur_aff_int { #1 }
\tex_xdef:D \@currentlabel
{ \int_to_alph:n { \int_use:N \g_ceur_aff_int } }
\textsuperscript{\itshape\@currentlabel} #2
}
}
}
}
}
{
\__reset_addr:
\keys_set:nn { ceur / address } { #3 }
\bool_if:NTF \g_ceur_addr_foot_bool
{ \__foot_address:nnn [#1]{#2}[#3] }
{
\seq_gput_right:cn { g_ceur_aff\int_use:N \g_ceur_augr_int _seq }
{ \tl_if_blank:nTF { #1 }
{
\tex_xdef:D \thefootnote{}
{ #2 }
}
{
\tl_if_head_eq_catcode:nNTF { #1 } a
{
\int_gincr:N \g_ceur_aff_int
\tex_xdef:D \@currentlabel
%% label format:
%% \int_to_arabic:n
%% \int_to_alph:n
%% \int_to_symbols:nnn
%% \int_to_roman:n
{ \int_to_arabic:n { \int_use:N \g_ceur_aff_int } }
\ceurLabel {#1}
\textsuperscript{\itshape\@currentlabel} #2
}
{
\int_gset:Nn \g_ceur_aff_int { #1 }
\tex_xdef:D \@currentlabel
{ \int_to_arabic:n { \int_use:N \g_ceur_aff_int } }
\textsuperscript{\itshape\@currentlabel} #2
}
}
}
}
}

\cs_new:Npn \__foot_address:nnn [#1]#2[#3]
{
Expand All @@ -1494,7 +1499,7 @@
{ \footnotetext{\textit{\l_ceur_addr_type_tl}: \c_space_token #2} }
}
{
\tex_def:D \thefootnote { \itshape\int_to_alph:n { #1 } }
\tex_def:D \thefootnote { \itshape\int_to_arabic:n { #1 } }
\tl_if_empty:NTF \l_ceur_addr_type_tl
{ \footnotetext{#2} }
{ \footnotetext{\textit{\l_ceur_addr_type_tl}:
Expand Down

0 comments on commit aab4978

Please sign in to comment.