Skip to content

Commit

Permalink
Merge pull request #1066 from AmpersandTarski/feature/upgradePandoc
Browse files Browse the repository at this point in the history
Feature/upgrade pandoc
  • Loading branch information
hanjoosten authored Apr 4, 2020
2 parents ae367a2 + 325384e commit 6075d36
Show file tree
Hide file tree
Showing 119 changed files with 3,775 additions and 3,767 deletions.
1 change: 1 addition & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* [Issue #1056](https://github.com/AmpersandTarski/Ampersand/issues/#1056) Bugfix in .xlsx parser
* [Issue #1054](https://github.com/AmpersandTarski/Ampersand/issues/#1054) Ampersand daemon now also reports type errors
* [Issue #1063](https://github.com/AmpersandTarski/Ampersand/issues/#1063) Return violations of invariants with standard check
* [Issue #735](https://github.com/AmpersandTarski/Ampersand/issues/735) Upgrade to pandoc 2.9.

## v3.17.4 (13 september 2019)

Expand Down
237 changes: 138 additions & 99 deletions Setup.hs

Large diffs are not rendered by default.

49 changes: 0 additions & 49 deletions outputTemplates/README.markdown

This file was deleted.

38 changes: 30 additions & 8 deletions outputTemplates/default.context
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ $endif$
% make chapter, section bookmarks visible when opening document
\placebookmarks[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][chapter, section]
\setupinteractionscreen[option=bookmark]
\setuptagging[state=start]

$if(papersize)$
\setuppapersize[$for(papersize)$$papersize$$sep$,$endfor$]
Expand All @@ -37,14 +36,18 @@ $if(layout)$
$endif$
$if(pagenumbering)$
\setuppagenumbering[$for(pagenumbering)$$pagenumbering$$sep$,$endfor$]
$else$
\setuppagenumbering[location={footer,middle}]
$endif$
$if(pdfa)$
% attempt to generate PDF/A
\setupbackend
[format=PDF/A-1b:2005,
intent=sRGB IEC61966-2.1,
profile=sRGB.icc]
[format=PDF/A-$pdfa$,
profile={$if(pdfaiccprofile)$$for(pdfaiccprofile)$$pdfaiccprofile$$sep$,$endfor$$else$sRGB.icc$endif$},
intent=$if(pdfaintent)$$pdfaintent$$else$sRGB IEC61966-2.1$endif$]
$endif$
\setupbackend[export=yes]
\setupstructure[state=start,method=auto]

% use microtypography
\definefontfeature[default][default][script=latn, protrusion=quality, expansion=quality, itlc=yes, textitalics=yes, onum=yes, pnum=yes]
Expand Down Expand Up @@ -104,25 +107,44 @@ $endif$
\setupxtable[body][]
\setupxtable[foot][bottomframe=on]

$if(csl-refs)$
\definemeasure[cslhangindent][1.5em]
\definenarrower[hangingreferences][left=\measure{cslhangindent}]
\definestartstop [cslreferences] [
$if(csl-hanging-indent)$
before={%
\starthangingreferences[left]
\setupindenting[-\leftskip,yes,first]
\doindentation
},
after=\stophangingreferences,
$endif$
]
$endif$
$if(includesource)$
$for(sourcefile)$
\attachment[file=$curdir$/$sourcefile$,method=hidden]
$endfor$
$endif$
$for(header-includes)$
$header-includes$
$endfor$

\starttext
$if(title)$
\startalignment[middle]
{\tfd $title$}
{\tfd\setupinterlinespace $title$}
$if(subtitle)$
\smallskip
{\tfa $subtitle$}
{\tfa\setupinterlinespace $subtitle$}
$endif$
$if(author)$
\smallskip
{\tfa $for(author)$$author$$sep$\crlf $endfor$}
{\tfa\setupinterlinespace $for(author)$$author$$sep$\crlf $endfor$}
$endif$
$if(date)$
\smallskip
{\tfa $date$}
{\tfa\setupinterlinespace $date$}
$endif$
\bigskip
\stopalignment
Expand Down
6 changes: 3 additions & 3 deletions outputTemplates/default.docbook4
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ $if(date)$
$endif$
</articleinfo>
$for(include-before)$
$include-before$
$include-before$
$endfor$
$body$
$body$
$for(include-after)$
$include-after$
$include-after$
$endfor$
</article>
6 changes: 3 additions & 3 deletions outputTemplates/default.docbook5
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ $if(date)$
$endif$
</info>
$for(include-before)$
$include-before$
$include-before$
$endfor$
$body$
$body$
$for(include-after)$
$include-after$
$include-after$
$endfor$
</article>
13 changes: 1 addition & 12 deletions outputTemplates/default.dzslides
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,8 @@ $if(keywords)$
$endif$
<title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
$if(quotes)$
q { quotes: "“" "”" "‘" "’"; }
$endif$
</style>
$if(highlighting-css)$
<style>
$highlighting-css$
$styles.html()$
</style>
$endif$
$if(css)$
$for(css)$
<link rel="stylesheet" href="$css$">
Expand Down
17 changes: 8 additions & 9 deletions outputTemplates/default.epub2
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,6 @@
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
<title>$pagetitle$</title>
<style type="text/css">
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
$if(quotes)$
q { quotes: "“" "”" "‘" "’"; }
$endif$
</style>
$if(highlighting-css)$
<style type="text/css">
$highlighting-css$
Expand Down Expand Up @@ -55,6 +46,13 @@ $if(rights)$
<div class="rights">$rights$</div>
$endif$
$else$
$if(coverpage)$
<div id="cover-image">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="100%" height="100%" viewBox="0 0 $cover-image-width$ $cover-image-height$" preserveAspectRatio="none">
<image width="$cover-image-width$" height="$cover-image-height$" xlink:href="../media/$cover-image$" />
</svg>
</div>
$else$
$for(include-before)$
$include-before$
$endfor$
Expand All @@ -63,6 +61,7 @@ $for(include-after)$
$include-after$
$endfor$
$endif$
$endif$
</body>
</html>

19 changes: 9 additions & 10 deletions outputTemplates/default.epub3
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,13 @@
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<title>$pagetitle$</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
$if(quotes)$
q { quotes: "“" "”" "‘" "’"; }
$endif$
</style>
$if(highlighting-css)$
<style>
$highlighting-css$
</style>
$endif$
$for(css)$
<link rel="stylesheet" href="$css$" />
<link rel="stylesheet" type="text/css" href="$css$" />
$endfor$
$for(header-includes)$
$header-includes$
Expand Down Expand Up @@ -56,6 +47,13 @@ $if(rights)$
$endif$
</section>
$else$
$if(coverpage)$
<div id="cover-image">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="100%" height="100%" viewBox="0 0 $cover-image-width$ $cover-image-height$" preserveAspectRatio="none">
<image width="$cover-image-width$" height="$cover-image-height$" xlink:href="../media/$cover-image$" />
</svg>
</div>
$else$
$for(include-before)$
$include-before$
$endfor$
Expand All @@ -64,6 +62,7 @@ $for(include-after)$
$include-after$
$endfor$
$endif$
$endif$
</body>
</html>

16 changes: 4 additions & 12 deletions outputTemplates/default.html4
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,8 @@ $if(keywords)$
$endif$
<title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
<style type="text/css">
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
$if(quotes)$
q { quotes: "“" "”" "‘" "’"; }
$endif$
</style>
$if(highlighting-css)$
<style type="text/css">
$highlighting-css$
$styles.html()$
</style>
$endif$
$for(css)$
<link rel="stylesheet" href="$css$" type="text/css" />
$endfor$
Expand Down Expand Up @@ -58,6 +47,9 @@ $endif$
$endif$
$if(toc)$
<div id="$idprefix$TOC">
$if(toc-title)$
<h2 id="$idprefix$toc-title">$toc-title$</h2>
$endif$
$table-of-contents$
</div>
$endif$
Expand Down
16 changes: 4 additions & 12 deletions outputTemplates/default.html5
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,8 @@ $if(keywords)$
$endif$
<title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
$if(quotes)$
q { quotes: "“" "”" "‘" "’"; }
$endif$
</style>
$if(highlighting-css)$
<style>
$highlighting-css$
$styles.html()$
</style>
$endif$
$for(css)$
<link rel="stylesheet" href="$css$" />
$endfor$
Expand Down Expand Up @@ -61,6 +50,9 @@ $endif$
$endif$
$if(toc)$
<nav id="$idprefix$TOC" role="doc-toc">
$if(toc-title)$
<h2 id="$idprefix$toc-title">$toc-title$</h2>
$endif$
$table-of-contents$
</nav>
$endif$
Expand Down
4 changes: 2 additions & 2 deletions outputTemplates/default.icml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Document DOMVersion="8.0" Self="pandoc_doc">
<RootCharacterStyleGroup Self="pandoc_character_styles">
<CharacterStyle Self="$$ID/NormalCharacterStyle" Name="Default" />
$charStyles$
$charStyles$
</RootCharacterStyleGroup>
<RootParagraphStyleGroup Self="pandoc_paragraph_styles">
<ParagraphStyle Self="$$ID/NormalParagraphStyle" Name="$$ID/NormalParagraphStyle"
Expand All @@ -20,7 +20,7 @@
</TabList>
</Properties>
</ParagraphStyle>
$parStyles$
$parStyles$
</RootParagraphStyleGroup>
<RootTableStyleGroup Self="pandoc_table_styles">
<TableStyle Self="TableStyle/Table" Name="Table" />
Expand Down
Loading

0 comments on commit 6075d36

Please sign in to comment.