Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/src/resources/projects/book/pandoc/title-block.md
12923 views

Beverycarefulaboutwhitespaceinthisdocumentlinebreaksareverymeaningful-- Be very careful about whitespace in this document - line breaks are very meaningful -- and it is very easy to break the layout with poorly considered line breaks

if(subtitle)if(subtitle)subtitlesubtitleendifendif

thereareaffiliations,renderthat-- there are affiliations, render that if(by-affiliation/first)LaTeX\LaTeXfor(by-author)$$if(by-author.url)$byauthor.name.literalby-author.name.literalelseelsebyauthor.name.literalby-author.name.literalendifendifif(byauthor.affiliations/first)if(by-author.affiliations/first) if(byauthor.affiliations/allbutlast)if(by-author.affiliations/allbutlast) (for(byauthor.affiliations/allbutlast)for(by-author.affiliations/allbutlast)if(it.url)if(it.url)it.nameit.nameelseelseit.nameit.nameendifendif, endforendforfor(byauthor.affiliations/last)for(by-author.affiliations/last)if(it.url)if(it.url)it.nameit.nameelseelseit.nameit.nameendifendifendforendfor) elseelse (for(byauthor.affiliations/first)for(by-author.affiliations/first)if(it.url)if(it.url)it.nameit.nameelseelseit.nameit.nameendifendifendforendfor) endifendif endifendif endforendforif(date)if(date)datedateendifendif endifendif Iftherearenoaffiliations,wecanjustoutputauthors-- If there are no affiliations, we can just output authors if(by-affiliation)LaTeX\LaTeXelseif(by-author)LaTeX\LaTeXfor(by-author)LaTeX\LaTeXif(by-author.url)[| [by-author.name.literal](](by-author-url)) elseLaTeX\LaTeXby-author.name.literalLaTeX\LaTeXendif$$endfor$

if(date)if(date)datedateendifendif endifendif

if(abstract)if(abstract)abstractabstractendifendif