quarto-journals / acm

Quarto template for the Association of Computing Machinery
https://quarto-journals.github.io/acm/
MIT License
16 stars 9 forks source link

ORCID is not emitted #15

Closed VladimirAlexiev closed 1 year ago

VladimirAlexiev commented 1 year ago

acm.qmd has this:

author:
  - name: Ben Trovato
    email: trovato@corporation.com
    orcid: 1234-5678-9012

The samples in ACM templates

also show ORCID, eg in sample-authordraft.tex:

\author{Ben Trovato}
\authornote{Both authors contributed equally to this research.}
\email{trovato@corporation.com}
\orcid{1234-5678-9012}

\author{G.K.M. Tobin}
\authornotemark[1]
\email{webmaster@marysville-ohio.com}
\affiliation{%
  \institution{Institute for Clarity in Documentation}
  \streetaddress{P.O. Box 1212}
  \city{Dublin}
  \state{Ohio}
  \country{USA}
  \postcode{43017-6221}
}

It shows as a hyperlink and tooltip over the author name (unfortunately no green "ID" icon): image

But the tex generated by Quarto is missing the ORCID:

  \author{Ben Trovato}
    \author{G.K.M. Tobin}
            \affiliation{%
                  \institution{Institute for Clarity in Documentation}
                          \streetaddress{P.O. Box 1212}
                          \city{Dublin}
                                  \country{USA}
                          \postcode{43017-6221}
              }

Also, the sample https://quarto-journals.github.io/acm/ lacks ORCID.

VladimirAlexiev commented 1 year ago

I guess I need to insert before https://github.com/quarto-journals/acm/blob/main/_extensions/quarto-journals/acm/partials/_acmart_authors.tex#L16

$if(by-author.orcid)$\orcid{$by-author.orcid$}$endif$

@cscheid, does that sound right?

VladimirAlexiev commented 1 year ago

16 fixes this, now the output includes \orcid:

  \author{Ben Trovato}
  \orcid{1234-5678-9012}
    \author{G.K.M. Tobin}

            \affiliation{%

An empty line is inserted for authors without orcid: will this do harm?

cscheid commented 1 year ago

An empty line is inserted for authors without orcid: will this do harm? It probably won't. But in case it does, the way to fix that is to include your template code

$if(by-author.orcid)$\orcid{$by-author.orcid$}$endif$

in an existing line, rather than in a line by itself. Because you put it in a line by itself, now the .tex file includes a line break, independently of whether \orcid gets included.