summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-07-21 21:16:20 +0200
committerJonas Smedegaard <dr@jones.dk>2017-07-21 21:16:20 +0200
commit6b1e5e225962abf14c819c6ae78c0ec3d8045a2e (patch)
tree873f2e06554cb17fb5039f4350a9599ccdcafc9a /data
parent7fe4b25fb94c68365833c68c93477f97bdbe3a50 (diff)
New upstream version 1.19.2.1~dfsg
Diffstat (limited to 'data')
-rw-r--r--data/sample.lua4
-rw-r--r--data/templates/default.beamer15
-rw-r--r--data/templates/default.docbook57
-rw-r--r--data/templates/default.latex17
4 files changed, 27 insertions, 16 deletions
diff --git a/data/sample.lua b/data/sample.lua
index e23154a96..1e3a08731 100644
--- a/data/sample.lua
+++ b/data/sample.lua
@@ -173,6 +173,8 @@ end
function RawInline(format, str)
if format == "html" then
return str
+ else
+ return ''
end
end
@@ -321,6 +323,8 @@ end
function RawBlock(format, str)
if format == "html" then
return str
+ else
+ return ''
end
end
diff --git a/data/templates/default.beamer b/data/templates/default.beamer
index 1dcc77e4e..680a4121d 100644
--- a/data/templates/default.beamer
+++ b/data/templates/default.beamer
@@ -97,6 +97,9 @@ $for(bibliography)$
\addbibresource{$bibliography$}
$endfor$
$endif$
+$if(verbatim-in-note)$
+\usepackage{fancyvrb}
+$endif$
\hypersetup{
$if(title-meta)$
pdftitle={$title-meta$},
@@ -105,7 +108,7 @@ $if(author-meta)$
pdfauthor={$author-meta$},
$endif$
$if(keywords)$
- pdfkeywords={$for(keywords)$$keywords$$sep$; $endfor$},
+ pdfkeywords={$for(keywords)$$keywords$$sep$, $endfor$},
$endif$
$if(colorlinks)$
colorlinks=true,
@@ -116,6 +119,10 @@ $else$
pdfborder={0 0 0},
$endif$
breaklinks=true}
+\urlstyle{same} % don't use monospace font for urls
+$if(verbatim-in-note)$
+\VerbatimFootnotes % allows verbatim text in footnotes
+$endif$
$if(listings)$
\usepackage{listings}
$endif$
@@ -125,10 +132,6 @@ $endif$
$if(highlighting-macros)$
$highlighting-macros$
$endif$
-$if(verbatim-in-note)$
-\usepackage{fancyvrb}
-\VerbatimFootnotes % allows verbatim text in footnotes
-$endif$
$if(tables)$
\usepackage{longtable,booktabs}
\usepackage{caption}
@@ -189,7 +192,7 @@ $endif$
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
$if(numbersections)$
-\setcounter{secnumdepth}{5}
+\setcounter{secnumdepth}{$if(secnumdepth)$$secnumdepth$$else$5$endif$}
$else$
\setcounter{secnumdepth}{0}
$endif$
diff --git a/data/templates/default.docbook5 b/data/templates/default.docbook5
index b3a0b6def..415ccf9c3 100644
--- a/data/templates/default.docbook5
+++ b/data/templates/default.docbook5
@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE article>
+<article
+ xmlns="http://docbook.org/ns/docbook" version="5.0"
$if(mathml)$
-<article xmlns="http://docbook.org/ns/docbook" version="5.0">
-$else$
-<article xmlns="http://docbook.org/ns/docbook" version="5.0">
+ xmlns:mml="http://www.w3.org/1998/Math/MathML"
$endif$
+ xmlns:xlink="http://www.w3.org/1999/xlink" >
<info>
<title>$title$</title>
$if(author)$
diff --git a/data/templates/default.latex b/data/templates/default.latex
index 3b80d3cdc..128f79d8d 100644
--- a/data/templates/default.latex
+++ b/data/templates/default.latex
@@ -54,11 +54,12 @@ $endif$
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
% use microtype if available
\IfFileExists{microtype.sty}{%
-\usepackage{microtype}
+\usepackage[$for(microtypeoptions)$$microtypeoptions$$sep$,$endfor$]{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
-$if(geometry)$
-\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
+\PassOptionsToPackage{hyphens}{url} % url is loaded by hyperref
+$if(verbatim-in-note)$
+\usepackage{fancyvrb}
$endif$
\usepackage[unicode=true]{hyperref}
$if(colorlinks)$
@@ -84,6 +85,12 @@ $else$
$endif$
breaklinks=true}
\urlstyle{same} % don't use monospace font for urls
+$if(verbatim-in-note)$
+\VerbatimFootnotes % allows verbatim text in footnotes
+$endif$
+$if(geometry)$
+\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
+$endif$
$if(lang)$
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
\usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
@@ -117,10 +124,6 @@ $endif$
$if(highlighting-macros)$
$highlighting-macros$
$endif$
-$if(verbatim-in-note)$
-\usepackage{fancyvrb}
-\VerbatimFootnotes % allows verbatim text in footnotes
-$endif$
$if(tables)$
\usepackage{longtable,booktabs}
% Fix footnotes in tables (requires footnote package)