You prepare a manuscript with many co-authors, but as so often have then change the order of authors, add or remove affiliations... spending a lot of time and making errors to manually edit the author affiliation numbers... again and again!
Solution: currently just a simple script, but copy/paste your author and affialiation lists to the text files in this project, run the R code, and copy/paste back the formatted, renumbered and reorderd author and affiliation lists to your manuscript!
Following CRAN packages must be installed in your system
install.packages(c("tidyverse", "here", "r2rtf"))
- Copy/paste to
author_names.txt
the list of author names in the desired order, succeeded with affiliations numbers. Authors should be separated by comma followed by aspace
or by a;
. Multiple affiliations must be separated by,
.
```
Clark1,2, H. Adams3, C. Baker8, E. Davis4,11, T. Evans5, O. Frank6, Y. Ghosh10,K. Hills11,
A. Irwin9, J. Jones7, K. Klein1,12
```
- Copy/paste to
author_affiliations.txt
the list of affiliations, preceded with the number that is used in the authorvlist (see 1) to associate the authors with corresponding affiliations. Each affiliations needs to be on a separated line.
```
1Starlight University
2Quantum Institute of Technology
3Horizon University
```
-
Run through the chunks of the notebook
authorlistR.qmd
in the folderR
-
Formatted output (.rtf files) of the updated author and affiliation lists can be found in the folder
output
, which can be opened in Word and other text editors. Examples:
C.C. Clark1,2, H. Adams 3, E. Davis4,5, BB. Baker1,5,6, Y. Ghosh7,8, T Evans9, F. Frank10, K. Hills5, A. Irwin2, J. Jones11, K. Klein1,3,6,12
1Starlight University
2Quantum Institute of Technology
3Horizon University
Bo Burla, Singapore Lipidomics Incubator, National University of Singapore (lsibjb @ nus.edu.sg)
This code does not check the data you provide and may crash or output wrong data if formatting is not as expected. The author of this script will not accept any responsibility for rejected manuscripts:)
This project is licensed under the MIT License - see the LICENSE.md file for details