Skip to content

Commit f140c2a

Browse files
DunLugyihui
authored andcommitted
Multiline authoring in IEEE template (#264)
1 parent 4747502 commit f140c2a

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
rticles 0.14
22
---------------------------------------------------------------------
33

4+
- Added a multi-line authoring option in the IEEE template (thanks, @DunLug, #264).
5+
46
- Added the `citation_sorting` YAML option to change the biblatex's sorting option in `ieee_article()` output (thanks, @DunLug, #265).
57

68
rticles 0.13

inst/rmarkdown/templates/ieee_article/resources/template.tex

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,13 +436,29 @@
436436
%% ---- classic IEEETrans wide authors' list ----------------
437437
$if(affiliation.wide)$
438438
\IEEEauthorblockN{
439+
$if(affiliation.author)$
440+
$for(affiliation.author)$
441+
$affiliation.author.name$\IEEEauthorrefmark{$affiliation.author.mark$}$sep$,
442+
$endfor$
443+
$else$
444+
$if(affiliation.author_multiline)$
445+
$for(affiliation.author_multiline)$
446+
$for(affiliation.author_multiline.line)$
447+
$affiliation.author_multiline.line.name$\IEEEauthorrefmark{$affiliation.author_multiline.line.mark$}
448+
$sep$,
449+
$endfor$
450+
$sep$}\IEEEauthorblockN{
451+
$endfor$
452+
$else$
439453
$for(affiliation.institution)$ %% -- beg for/affiliation.institution
440454
$for(affiliation.institution.author)$ %% -- beg for/affiliation.institution.author
441455
$affiliation.institution.author.name$\IEEEauthorrefmark{$affiliation.institution.mark$}
442456
$sep$,
443457
$endfor$ %% -- end for/affiliation.institution.author
444458
$sep$,
445459
$endfor$ %% -- end for/affiliation.institution
460+
$endif$
461+
$endif$
446462
}
447463

448464
$for(affiliation.institution)$ %% -- beg for/affiliation.institution

inst/rmarkdown/templates/ieee_article/skeleton/skeleton.Rmd

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,22 @@ affiliation:
66
institution-columnar: true ## one column per institution (multiple autors eventually)
77
# wide: true ## one column wide author/affiliation fields
88

9+
#author_multiline: ## Put authors in a given order, with multiline possibility. Authors cited in institution are ignored if exists
10+
# - line: ## Create a new author line
11+
# - name: Michael Shell
12+
# mark: 1
13+
# - name: Homer Simpson
14+
# mark: 2
15+
16+
# - name: Roy Batty
17+
# mark: 4
18+
19+
# - line: ## Create a second author line
20+
# - name: Montgomery Scott
21+
# mark: 3
22+
# - name: Eldon Tyrell
23+
# mark: 4
24+
925
institution:
1026
- name: Georgia Institute of Technology
1127
department: School of Electrical and Computer Engineering

0 commit comments

Comments
 (0)