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$


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

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

Test file:

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

# Test



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.