1

I use pandoc template default.latex and I would like to custom it to obtain a vertical space between author.name and autor.affiliation. I get a skip line when I use \\ so I suppose it's possible to insert code but how ?

$if(author) $\author{$for(author)$$author.name$\\$author.affiliation$$sep$ \and $endfor$} $endif$

1

You can specify the vertical space as an option: \\[2ex]

$if(author)$
\author{$for(author)$$author.name$\\[2ex] $author.affiliation$$sep$ \and $endfor$}
$endif$

Test file:

---
title: The document title
author:
- name: Author One
  affiliation: University of Somewhere
- name: Author Two
  affiliation: University of Nowhere
...

# Test

Lorem...

Output:

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.