Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF metadata - authors field #47

Open
dmiddleton opened this issue Jan 30, 2024 · 1 comment
Open

PDF metadata - authors field #47

dmiddleton opened this issue Jan 30, 2024 · 1 comment

Comments

@dmiddleton
Copy link
Collaborator

dmiddleton commented Jan 30, 2024

The templates use \hypersetup{pdfinfo={}} to set the title and author metadata that appears in PDF files. Since v1.28 the author information that is put into the PDF has been less than ideal. The v1.28 changes introduces a more complex format for the \author{} field, to capture author affiliations that are now required as part of the FAR/AEBR Executive Summary. However, the changes to the PDF metadata went unnoticed, at the time, and have been neglected since.

After some experimentation, it appears that fixing up the information passed to pdfinfo from the template will be difficult. A proper fix will probably require another refactoring of the way authors are specified, for example multiple \author[1]{name}{affliiation} fields, and code to process these.

However, a workaround is to post-process the PDF after the LaTeX build. For example, the following line can be included as part of the PDF rule in a makefile (assuming exiftool is available in the build environment):

exiftool -Author="$$(exiftool -s3 -Author $@ | sed 's/given=//g' | sed 's/, family=/ /g' | sed 's/, affiliation=, nametemplates=affiliation//g' | sed 's/ and/,/g')" $@

(adapt for bash scrips by removing the double $ and changing the file specifier). This produces a comma-separated list of authors.

Note that, as written, this modifies the original file rather than producing a separate output file. More importantly, it assumes that the \author field is formatted as per the examples, i.e. no additional spaces etc.

@dmiddleton
Copy link
Collaborator Author

Other things to thing about: ORCID links and XML formats for bibliography data (as there is no mainstream support for affiliation information in BibTeX).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant