Skip to content

Commit

Permalink
Adds special corresponding author handling for AIP journals [#19]
Browse files Browse the repository at this point in the history
  • Loading branch information
dressedfez committed Dec 11, 2023
1 parent 8601f76 commit f56bdeb
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,4 @@ This is a table of options the template provides based on the [REVTeX 4.2e](http
| `aapm_journal_type` | choice | mph | false | Allows choosing the American Association of Physicists in Medicine journal type. The following choices are available:<ul><li>??? (mph)</li></ul> |
| `sor_journal_type` | choice | jor | false | Allows choosing the Society of Rheology journal type. The following choices are available:<ul><li>Journal of Rheology (jor)</li></ul> |
| `formatting` | choice | onecolumn | false | Allows choosing the type of column formatting (one- or two-column article). The following choices are available:<ul><li>onecolumn</li><li>twocolumn</li></ul> |
| `aip_disable_corresponding_author_after_affiliations` | boolean | true | false | If set to false, the email of the corresponding author of an AIP journal will not be shown after the affiliations. |
16 changes: 16 additions & 0 deletions template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,22 @@
\usepackage{datetime}
[- IMPORTS -]

[#- if options.styling == "aip" #]
[#- if options.aip_disable_corresponding_author_after_affiliations #]
%% Apr 2021: AIP requests that the corresponding
%% email to be moved after the affiliations
\makeatletter
\def\@email#1#2{%
\endgroup
\patchcmd{\titleblock@produce}
{\frontmatter@RRAPformat}
{\frontmatter@RRAPformat{\produce@RRAP{*#1\href{mailto:#2}{#2}}}\frontmatter@RRAPformat}
{}{}
}%
\makeatother
[#- endif -#]
[#- endif -#]

\begin{document}
[#- if options.preprint #]
\preprint{[-options.preprint-]}
Expand Down
6 changes: 6 additions & 0 deletions template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,12 @@ options:
- letterpaper
- a4paper
- a5paper
- id: aip_disable_corresponding_author_after_affiliations
required: false
type: boolean
default: true
description: >-
If set to false, the email of the corresponding author of an AIP journal will not be shown after the affiliations.
files:
- template.tex
- revtex4-2.cls
Expand Down

0 comments on commit f56bdeb

Please sign in to comment.