diff options
author | Yan Pashkovsky <Yanpas@users.noreply.github.com> | 2018-05-09 19:48:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-09 19:48:34 +0300 |
commit | a337685fe0ab9c63b9456f27787bbe4f0d785a94 (patch) | |
tree | e9fc4dfc0802f8acd97f06a8cc8d7c89b5a988ab /data/templates | |
parent | 8e9973b9f761262b6871206f741ac3f2a25aa6bb (diff) | |
parent | 5f33d2e0cd9f19566904c93be04f586de811dd75 (diff) | |
download | pandoc-a337685fe0ab9c63b9456f27787bbe4f0d785a94.tar.gz |
Merge branch 'master' into groff_reader
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/default.context | 9 | ||||
-rw-r--r-- | data/templates/default.html5 | 2 | ||||
-rw-r--r-- | data/templates/default.latex | 18 | ||||
-rw-r--r-- | data/templates/default.ms | 5 | ||||
-rw-r--r-- | data/templates/default.revealjs | 5 |
5 files changed, 30 insertions, 9 deletions
diff --git a/data/templates/default.context b/data/templates/default.context index 56f4e9cf7..879269394 100644 --- a/data/templates/default.context +++ b/data/templates/default.context @@ -38,6 +38,13 @@ $endif$ $if(pagenumbering)$ \setuppagenumbering[$for(pagenumbering)$$pagenumbering$$sep$,$endfor$] $endif$ +$if(pdfa)$ +% attempt to generate PDF/A +\setupbackend + [format=PDF/A-1b:2005, + intent=sRGB IEC61966-2.1, + profile=sRGB.icc] +$endif$ % use microtypography \definefontfeature[default][default][script=latn, protrusion=quality, expansion=quality, itlc=yes, textitalics=yes, onum=yes, pnum=yes] @@ -47,7 +54,7 @@ $endif$ \setupbodyfontenvironment[default][em=italic] % use italic as em, not slanted -\definefallbackfamily[mainface][rm][DejaVu Serif][preset=range:greek, force=yes] +\definefallbackfamily[mainface][rm][CMU Serif][preset=range:greek, force=yes] \definefontfamily[mainface][rm][$if(mainfont)$$mainfont$$else$Latin Modern Roman$endif$] \definefontfamily[mainface][mm][$if(mathfont)$$mathfont$$else$Latin Modern Math$endif$] \definefontfamily[mainface][ss][$if(sansfont)$$sansfont$$else$Latin Modern Sans$endif$] diff --git a/data/templates/default.html5 b/data/templates/default.html5 index 5c484f376..9c15107c0 100644 --- a/data/templates/default.html5 +++ b/data/templates/default.html5 @@ -29,7 +29,7 @@ $highlighting-css$ </style> $endif$ $for(css)$ - <link rel="stylesheet" href="$css$"> + <link rel="stylesheet" href="$css$" /> $endfor$ $if(math)$ $math$ diff --git a/data/templates/default.latex b/data/templates/default.latex index c36bf8576..31093374f 100644 --- a/data/templates/default.latex +++ b/data/templates/default.latex @@ -2,14 +2,24 @@ \PassOptionsToPackage{hyphens}{url} $if(colorlinks)$ \PassOptionsToPackage{dvipsnames,svgnames*,x11names*}{xcolor} -$endif$ -% +$endif$$if(dir)$$if(latex-dir-rtl)$ +\PassOptionsToPackage{RTLdocument}{bidi} +$endif$$endif$% \documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$paper,$endif$$if(beamer)$ignorenonframetext,$if(handout)$handout,$endif$$if(aspectratio)$aspectratio=$aspectratio$,$endif$$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$} $if(beamer)$ +$if(background-image)$ +\usebackgroundtemplate{% +\includegraphics[width=\paperwidth]{$background-image$}% +} +$endif$ +\usepackage{pgfpages} \setbeamertemplate{caption}[numbered] \setbeamertemplate{caption label separator}{: } \setbeamercolor{caption name}{fg=normal text.fg} \beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$endif$ +$for(beameroption)$ +\setbeameroption{$beameroption$} +$endfor$ $endif$ $if(beamerarticle)$ \usepackage{beamerarticle} % needs to be loaded first @@ -287,11 +297,7 @@ $endif$ $if(dir)$ \ifxetex % load bidi as late as possible as it modifies e.g. graphicx - $if(latex-dir-rtl)$ - \usepackage[RTLdocument]{bidi} - $else$ \usepackage{bidi} - $endif$ \fi \ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex \TeXXeTstate=1 diff --git a/data/templates/default.ms b/data/templates/default.ms index f4204338a..02bbc626a 100644 --- a/data/templates/default.ms +++ b/data/templates/default.ms @@ -90,7 +90,10 @@ $for(author)$ $author$ $endfor$ $if(date)$ -.ND "$date$" +.AU +.sp 0.5 +.ft R +$date$ $endif$ $if(abstract)$ .AB diff --git a/data/templates/default.revealjs b/data/templates/default.revealjs index 65ab09049..6f847e23a 100644 --- a/data/templates/default.revealjs +++ b/data/templates/default.revealjs @@ -197,6 +197,11 @@ $endif$ $if(parallaxBackgroundImage)$ // Parallax background image parallaxBackgroundImage: '$parallaxBackgroundImage$', // e.g. "'https://s3.amazonaws.com/hakim-static/reveal-js/reveal-parallax-1.jpg'" +$else$ +$if(background-image)$ + // Parallax background image + parallaxBackgroundImage: '$background-image$', // e.g. "'https://s3.amazonaws.com/hakim-static/reveal-js/reveal-parallax-1.jpg'" +$endif$ $endif$ $if(parallaxBackgroundSize)$ // Parallax background size |